/* "Modern" city template: full-viewport heroes on a parallax layer, sections
   that reveal as you scroll (App.js — Motion), one wide display face
   (Unbounded, Cyrillic-ready for Bulgarian sites) over Manrope for body copy.

   Tailwind's browser build is still loaded (blocks/head.html) because the
   HTML built server-side — hotel pills, review badge, star/category pill
   navs, POI/district/selection sections, booking widget, lang switcher —
   carries Tailwind utility classes. Everything in this file is unlayered,
   so it beats those utilities wherever a rule below targets the same
   element: the selectors under "server-rendered sections" deliberately hook
   onto the generator's markup (post/generatewebsitecity.php,
   utils/WebsiteContentHelpers.php) and must follow it if it changes. */

:root {
    --ink: #0b1220;
    --ink-2: #334155;
    --muted: #64748b;
    --sand: #f6f3ee;
    --line: #e8e6e1;
    --main-soft: color-mix(in srgb, var(--main-color) 10%, #fff);
    --main-deep: color-mix(in srgb, var(--main-color) 65%, #000);
    --main-hover: color-mix(in srgb, var(--main-color) 85%, #000);
    --radius: 1.5rem;
    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* color utilities expected by the server-rendered HTML */
.bg-main-color { background-color: var(--main-color); }
.bg-main-color-light { background-color: var(--main-soft); }
.text-main-color { color: var(--main-color); }
.hover\:bg-main-color-hover:hover { background-color: var(--main-hover); }
.hover\:border-main-color:hover { border-color: var(--main-color); }
.hover\:text-main-color:hover { color: var(--main-color); }

/* = BASE ================================================================ */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.container { width: 100%; max-width: 64rem; margin-inline: auto; padding-inline: 1rem; }
.container--narrow { max-width: 46rem; }
.prose p { color: var(--ink-2); line-height: 1.75; }
.prose p + p { margin-top: 1em; }
.lead > p, p.text-lg { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .95rem; padding: .85rem 1.4rem; border-radius: 999px; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--main-color); color: #fff; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--main-color) 75%, transparent); }
.btn-primary:hover { background: var(--main-hover); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); width: 100%; }
.btn-outline:hover { border-color: var(--ink); }

/* = MOTION ============================================================== */
/* hero copy slides up on load; everything tagged .reveal (or a child of a
   .stagger group) slides up when it enters the viewport. `translate` rather
   than `transform` so the hover transforms below compose with it. The
   "js" class is set in blocks/head.html: without JS nothing is hidden. */
.rise { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

html.js .reveal,
html.js .stagger > * { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.in,
html.js .stagger > *.in { opacity: 1; translate: 0 0; }

#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--main-color); z-index: 70; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rise, html.js .reveal, html.js .stagger > * { animation: none; transition: none; opacity: 1; transform: none; translate: 0 0; }
    .hero-scroll span { animation: none; }
}

/* = NAVBAR ============================================================== */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; color: #fff; transition: background-color .35s, box-shadow .35s, color .35s; }
.nav-inner { max-width: 64rem; margin-inline: auto; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: inherit; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-link { display: none; font-size: .9rem; font-weight: 600; color: inherit; opacity: .85; transition: opacity .2s; }
.nav-link:hover { opacity: 1; }
.nav-fav { position: relative; display: inline-flex; font-size: 1.15rem; color: inherit; transition: transform .25s var(--ease); }
.nav-fav:hover { transform: scale(1.12); }
#navbar-bookmark-count { position: absolute; top: -.45rem; right: -.6rem; background: var(--main-color); color: #fff; font-size: 10px; line-height: 1; padding: .25rem .4rem; border-radius: 999px; }
.nav.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav .lang-switcher button { color: inherit; }
.nav .lang-switcher button:hover { background: rgba(255, 255, 255, .15); }
.nav.is-scrolled .lang-switcher button:hover { background: #f1f5f9; }
.nav .lang-switcher .absolute { border-radius: .9rem; overflow: hidden; margin-top: .4rem; }
@media (min-width: 768px) {
    .nav-brand { font-size: 1.1rem; }
}
/* four section links (hotels, categories, selections, discover): only from
   960px, below that they'd crowd the brand in longer languages (de, bg) */
@media (min-width: 960px) {
    .nav-link { display: inline; }
}

/* = HERO ================================================================ */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--main-deep); color: #fff; isolation: isolate; }
.hero--home { min-height: 100vh; min-height: 100svh; }
.hero--page { min-height: 58vh; min-height: 58svh; }
.hero--hotel { min-height: 72vh; min-height: 72svh; }
/* the photo lives on its own layer, oversized so App.js can parallax it */
.hero-media { position: absolute; inset: -12% 0 0 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
/* relative to this stylesheet (public/css/), so ../../ = the site root where
   generatewebsitecity.php copies the city cover */
.hero--city .hero-media { background-image: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .6)), url('../../cover.jpg'); }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 32, .4) 0%, rgba(11, 18, 32, .05) 35%, rgba(11, 18, 32, .6) 100%); }
.hero-veil--strong { background: linear-gradient(180deg, rgba(11, 18, 32, .55) 0%, rgba(11, 18, 32, .2) 35%, rgba(11, 18, 32, .8) 100%); }
.hero-inner { max-width: 64rem; width: 100%; margin-inline: auto; padding: 8rem 1rem 4rem; will-change: transform, opacity; }
.hero--home .hero-inner { padding-bottom: 7.5rem; }
.hero-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .9; display: flex; align-items: center; gap: .75rem; }
.hero-kicker::before { content: ''; width: 2.5rem; height: 2px; background: currentColor; opacity: .7; flex: none; }
.hero-title { font-size: clamp(2.75rem, 9vw, 7rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; margin: .75rem 0 1rem; text-wrap: balance; overflow-wrap: anywhere; }
.hero--page .hero-title, .hero--hotel .hero-title { font-size: clamp(1.9rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .5rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40rem; opacity: .92; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
.hero-stat { display: inline-flex; align-items: baseline; gap: .4rem; font-weight: 600; opacity: .95; margin-left: .25rem; }
.hero-stat .count { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.hero-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; opacity: .85; margin-bottom: 1.25rem; }
.hero-back:hover { opacity: 1; }
.hero-address { margin-top: 1rem; display: flex; gap: .5rem; align-items: center; opacity: .9; font-size: .95rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: 1.6rem; height: 2.6rem; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; display: none; justify-content: center; padding-top: .4rem; }
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scrollhint 1.8s infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 768px) {
    .hero-scroll { display: flex; }
    /* the booking widget (.book-float, right after the hero) floats 5rem up
       over the hero's bottom edge: keep the scroll hint and the Unsplash
       credit (hero_credit_html: .absolute.bottom-2) clear of it */
    .hero--home:has(~ .book-float form) .hero-inner { padding-bottom: 9.5rem; }
    .hero--home:has(~ .book-float form) .hero-scroll { bottom: 6rem; }
    .hero--home:has(~ .book-float form) > .absolute.bottom-2 { bottom: 5.75rem; }
}
/* breadcrumb / stars / pills (server-rendered) sitting on the hotel hero */
.hero .breadcrumb nav, .hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.hero .breadcrumb a:hover { color: #fff; }
.hero .breadcrumb span { color: #fff; }
.hero .breadcrumb i { color: rgba(255, 255, 255, .5); }
.hero .stars > div { color: #fbbf24; font-size: 1rem; letter-spacing: .12em; }
.hero .pills span { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* = SECTIONS ============================================================ */
.section { padding-block: 4.5rem; }
/* breadcrumb under the hero of listing / POI / selection pages: the section
   right after it gives up part of its top padding so the two read as one */
.breadcrumb-bar { padding-top: 1.25rem; }
.breadcrumb-bar + .section { padding-top: 2.5rem; }
.section--sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 2.25rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--main-color); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; max-width: 26ch; text-wrap: balance; }
.section-sub { color: var(--muted); max-width: 52ch; margin-top: .75rem; }
.section-sub p { margin: 0; color: inherit; }
@media (min-width: 1024px) {
    .section { padding-block: 6.5rem; }
}

/* booking widget (renderBookWidget) floats up over the hero's bottom edge;
   its own wrapper already pulls it up by 2rem (-mt-8) */
.book-float { position: relative; z-index: 10; margin-top: -3rem; }
.book-float:not(:has(form)) { margin-top: 0; }
#book-widget-form { border-radius: 1.25rem; box-shadow: 0 30px 60px -25px rgba(11, 18, 32, .35), 0 0 0 1px var(--line); padding: 1rem; }
#book-widget-form input { border-radius: .85rem; border: 1px solid var(--line); padding: .8rem .9rem; font-family: inherit; }
#book-widget-form input:focus { outline: 2px solid var(--main-color); outline-offset: 1px; }
#book-widget-form button { border-radius: 999px; padding: .85rem 1.5rem; }

/* about */
.about-grid { display: grid; gap: 2.5rem; }
.about-text { margin-top: 1.5rem; }
.city-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .6rem; aspect-ratio: 4 / 3; }
.city-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 1rem; }
.city-gallery img:first-child { border-radius: 1.25rem; }
.city-gallery:not(:has(img)) { display: none; }
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* star-class + category pill navs (server-rendered: wrapper .pt-10.pb-4,
   h2.text-lg, a.rounded-full) */
.filters { background: var(--sand); padding-block: 1rem 2.5rem; }
.filters:not(:has(a)) { display: none; }
.filters > div { padding-top: 1.75rem; padding-bottom: 0; }
.filters h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.filters a { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: .55rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.filters a:hover { background: var(--main-color); border-color: var(--main-color); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 20px -14px var(--main-color); }
.filters a span { color: inherit; opacity: .55; font-weight: 500; }

/* = HOTEL CARDS ========================================================= */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(11, 18, 32, .25); transition: box-shadow .35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 30px 50px -28px rgba(11, 18, 32, .4); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--main-soft); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img { transform: scale(1.06); }
.card-badge { position: absolute; top: .85rem; right: .85rem; }
.card-badge > div { position: static; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.card-fav { position: absolute; top: .85rem; left: .85rem; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); transition: transform .25s var(--ease); }
.card-fav:hover { transform: scale(1.08); }
.card-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-stars { color: #f59e0b; font-size: .8rem; letter-spacing: .1em; min-height: 1em; }
.card-stars > div { color: inherit; font-size: inherit; }
.card-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; }
.card-meta i { color: var(--main-color); }
.card-excerpt { font-size: .85rem; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cta { margin-top: auto; padding-top: .75rem; font-size: .85rem; font-weight: 700; color: var(--main-color); display: inline-flex; align-items: center; gap: .4rem; }
.card-cta i { transition: transform .3s var(--ease); }
.card:hover .card-cta i { transform: translateX(4px); }
.favorites-empty { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 3rem 1.5rem; color: var(--muted); }
.favorites-empty i { display: block; font-size: 2rem; margin-bottom: .75rem; color: var(--main-color); }
.see-all { display: flex; justify-content: center; margin-top: 2.5rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* = IMAGE TILES (POI, districts, selections) ============================ */
.tile { position: relative; display: block; border-radius: 1.25rem; overflow: hidden; background: var(--main-deep); color: #fff; aspect-ratio: 4 / 3; isolation: isolate; }
.tile--tall { aspect-ratio: 3 / 4; }
.tile--wide { aspect-ratio: 16 / 10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 18, 32, .88) 0%, rgba(11, 18, 32, .3) 55%, rgba(11, 18, 32, 0) 100%); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.tile-title { font-weight: 700; font-size: 1rem; line-height: 1.25; display: flex; gap: .4rem; align-items: baseline; }
.tile--tall .tile-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; display: block; }
.tile-text { font-size: .8rem; opacity: .85; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-cta { font-size: .8rem; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; margin-top: .4rem; }
.tile-cta i { transition: transform .3s var(--ease); }
.tile:hover .tile-cta i { transform: translateX(4px); }

/* = SERVER-RENDERED SECTIONS ============================================ */
/* POI category tiles (poi_categories_nav: a > i + div + div, links to #poi-<category>) */
.poi-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.poi-nav > a { display: block; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem 1rem; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.poi-nav > a:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -24px rgba(11, 18, 32, .35); }
.poi-nav > a > i { font-size: 1.6rem; color: var(--main-color); display: block; margin-bottom: .5rem; }
#discover:not(:has(.poi-nav > *)) { display: none; }
@media (min-width: 640px) { .poi-nav { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .poi-nav { grid-template-columns: repeat(5, 1fr); } }
/* POI sections (renderPoiSections: h3 + .grid of poicard tiles) */
.poi-sections h3 { font-size: 1.15rem; font-weight: 600; margin: 2.5rem 0 1.25rem; }
.poi-sections h3 span { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.poi-sections .grid { gap: 1rem; }
/* districts / selections / useful links: one wrapper (.py-12 or .py-8) with
   a heading and a .grid, see renderLongtailSection / renderExternalLinksSection
   and the districts block in generatewebsitecity.php */
.gen h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 2.25rem; max-width: 26ch; text-wrap: balance; }
.gen .grid { gap: 1.25rem; }
.gen .py-12 { padding-block: 4.5rem; }
.districts .border-y { border: 0; }
.links .py-8 { padding-block: 3.5rem; }
.links .text-xs.uppercase { color: var(--main-color); margin-bottom: 1.25rem; }
.links .grid a { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.1rem; transition: transform .25s var(--ease), box-shadow .25s; }
.links .grid a:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -24px rgba(11, 18, 32, .35); }
.links .grid a .font-semibold { display: block; margin-bottom: .2rem; }
@media (min-width: 1024px) {
    .gen .py-12 { padding-block: 6.5rem; }
}

/* = HOTEL PAGE ========================================================== */
.hotel-layout { display: grid; gap: 2.5rem; }
.hotel-main { min-width: 0; }
.hotel-main h2 { font-size: 1.2rem; font-weight: 600; margin: 2.25rem 0 .9rem; }
.hotel-main > .prose { margin-top: 1.5rem; }
.hotel-aside { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -35px rgba(11, 18, 32, .35); display: flex; flex-direction: column; gap: 1rem; }
.hotel-aside a.block { border-radius: 999px; padding: .95rem 1.25rem; font-weight: 700; }
#hotel-map { height: 22rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 2.5rem; z-index: 0; }
@media (min-width: 1024px) {
    .hotel-layout { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; }
    .hotel-aside { position: sticky; top: 5.5rem; }
}

[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-family: var(--font-body); font-weight: 400; font-size: .75rem; line-height: 1.3; white-space: normal; width: max-content; max-width: 220px; padding: 6px 10px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 50; pointer-events: none; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; }

/* = LIST PAGES / LONGTAIL ============================================== */
.search { position: relative; width: 100%; }
.search i { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .8rem 1rem .8rem 2.6rem; font: inherit; font-size: .9rem; }
.search input:focus { outline: 2px solid var(--main-color); outline-offset: 1px; }
.lead:has(p) { margin-bottom: 2.5rem; }
.longtail-grid { display: grid; gap: 2.5rem; }
.longtail-poster { width: 100%; max-width: 20rem; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -35px rgba(11, 18, 32, .5); margin-inline: auto; }
@media (min-width: 640px) { .search { width: 18rem; } }
@media (min-width: 768px) {
    .longtail-grid { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; }
    .longtail-poster { margin-inline: 0; }
}

/* = FOOTER ============================================================== */
.footer { background: var(--ink); color: #cbd5e1; }
.footer-inner { max-width: 64rem; margin-inline: auto; padding: 4.5rem 1rem 2.5rem; }
.footer-brand { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer-tagline { font-size: .95rem; color: #94a3b8; }
.footer-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.footer h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1rem; font-weight: 700; }
.footer-list { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer a { color: #cbd5e1; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .85rem; margin-top: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .78rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
/* partners column (renderPartnerLinksSection) only exists when the website
   has partner links: the grid gets a 4th column just in that case */
.footer-partners h4 { color: #94a3b8; }
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid:has(.footer-partners) { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
