/* cities.css — a city's page (cities/_entry.html) and the list of cities (cities.html). The city is the key that joins
   Expato's lists: every section of a city's page is a list of its own collection narrowed to «Город = {{Города}}»
   («Города» holds every spelling the lists use — «Харлеммермер (Хофддорп), Хофддорп»), and a section with nothing in
   it is not drawn. Loaded after styles.css, whose tokens it uses. */
.cy { padding-bottom: 96px; }
.cy-hero { padding-top: 32px; }
.cy-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mut); transition: color .2s; }
.cy-back:hover { color: var(--acc); }
.cy-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cy-kick { margin: 36px 0 0; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
/* The one move of the page: the city's name, as large as the screen lets it be. */
.cy-name { margin: 8px 0 0; font-size: clamp(40px, 12.5vw, 184px); font-weight: 500; line-height: .9; letter-spacing: -.055em; color: var(--txt); overflow-wrap: break-word; }
.cy-lead { margin: 24px 0 0; max-width: 620px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--txt2); }

/* The city's photograph: wide under its name — a band on a laptop, nearly square on a phone — its credit beneath. */
.cy-photo { margin: 32px 0 0; }
.cy-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--s2); }
.cy-photo figcaption { margin-top: 10px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--mut); }
@media (min-width: 720px) {
  .cy-photo img { aspect-ratio: 21 / 9; border-radius: 24px; }
}
/* The contents: the page's sections as one line of links down to them; a section with nothing in this city is not
   in it (the page's script hides its link). On a phone the line scrolls sideways. */
.cy-toc { display: flex; gap: 8px; margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(var(--ink), .16); border-bottom: 1px solid rgba(var(--ink), .1); overflow-x: auto; scrollbar-width: none; }
.cy-toc::-webkit-scrollbar { display: none; }
.cy-toc a { flex: none; padding: 8px 14px; border: 1px solid rgba(var(--ink), .14); border-radius: 999px; font-size: 14px; color: var(--txt2); transition: border-color .2s, color .2s; }
.cy-toc a:hover { border-color: var(--acc); color: var(--acc); }
.cy-toc a[hidden] { display: none; }
/* How many there are in the city: the section shows the first of them, the number says how many wait behind. */
.cy-toc b { margin-left: 8px; font: 500 12px var(--mono); color: var(--mut); }
.cy-toc a:hover b { color: inherit; }

/* A section: a heading and the way to the whole list at its right; empty, it is not there at all. */
.cy-sec { margin-top: 80px; scroll-margin-top: calc(var(--top-h, 65px) + 16px); }
.cy-sec:not(:has(.cy-item)) { display: none; }
.cy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(var(--ink), .16); }
.cy-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; color: var(--txt); }
.cy-head a { font-size: 15px; font-weight: 500; color: var(--acc); }
.cy-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cy-h3 { margin: 0 0 4px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }

/* The week: a timetable — the day large at the left, the event at its right; two columns on a laptop. */
.cy-rows { margin: 0; padding: 0; list-style: none; }
.cy-rows .cy-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid rgba(var(--ink), .1); color: var(--txt); }
.cy-d b { display: block; font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.cy-d i { display: block; margin-top: 4px; font: 500 11px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.cy-t small { display: block; font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--acc); }
.cy-t small span:empty { display: none; }
.cy-t small span:not(:empty) ~ span:not(:empty)::before { content: " · "; }
.cy-t b { display: block; margin-top: 6px; font-size: 19px; font-weight: 400; line-height: 1.25; letter-spacing: -.015em; transition: color .2s; }
.cy-t > span { display: block; margin-top: 4px; font-size: 14px; color: var(--mut); }
.cy-rows .cy-item:hover b { color: var(--acc); }
@media (min-width: 900px) {
  .cy-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
}

/* Pictures in a row: festivals, museums, routes. */
.cy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 24px; }
.cy-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--txt); }
.cy-pic { display: block; aspect-ratio: 4 / 5; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: var(--s2); }
.cy-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cy-card:hover .cy-pic img { transform: scale(1.03); }
.cy-card small { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.cy-card b { font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; transition: color .2s; }
.cy-card:hover b { color: var(--acc); }
.cy-note { font-size: 15px; line-height: 1.45; color: var(--txt2); }
@media (min-width: 720px) {
  .cy-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (min-width: 1100px) {
  .cy-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cy-card b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cy-pic img { transition: none; }
}

/* The library: the city's card for the library — what a pass costs, Dutch, DigiD — inked, the one dark block. */
.cy-lib { display: grid; gap: 28px; margin-top: 24px; padding: 28px 24px; border-radius: 24px; background: var(--txt); color: var(--bg); }
.cy-lib h3 { margin: 6px 0 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.cy-lib .cy-h3 { color: inherit; opacity: .6; }
.cy-lib p { margin: 14px 0 0; font-size: 17px; line-height: 1.5; opacity: .82; }
.cy-lib dl { display: grid; gap: 16px; margin: 0; }
.cy-lib dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.cy-lib dd { margin: 4px 0 0; font-size: 16px; line-height: 1.4; }
.cy-lib dd small { display: block; margin-top: 2px; font-size: 14px; opacity: .7; }
.cy-lib-go { display: inline-flex; margin-top: 22px; padding: 12px 18px; border-radius: 999px; background: var(--bg); color: var(--txt); font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.cy-lib-go:hover { background: var(--acc); color: #FFFFFF; }
:root.dark .cy-lib-go:hover { color: #0F0F10; }
@media (min-width: 900px) {
  .cy-lib { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; padding: 48px; }
  .cy-lib dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-content: start; }
}

/* Lines: schools, weekend schools, universities side by side; libraries; hospitals. */
.cy-cols { display: grid; gap: 36px; margin-top: 24px; }
.cy-cols > div:not(:has(.cy-item)) { display: none; }
@media (min-width: 900px) {
  .cy-cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 48px; }
}
.cy-line { display: block; padding: 14px 0; border-bottom: 1px solid rgba(var(--ink), .1); color: var(--txt); }
.cy-line b { display: block; font-size: 17px; font-weight: 500; line-height: 1.3; transition: color .2s; }
.cy-line small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--mut); }
a.cy-line:hover b { color: var(--acc); }

/* When ill: the duty post with its number large — the one thing to find at night — and the hospitals by it. */
.cy-post { margin-bottom: 12px; padding: 20px 22px; border-radius: 18px; background: var(--s1); }
.cy-post a { color: var(--txt); }
.cy-post > a b { display: block; font-size: 17px; font-weight: 500; transition: color .2s; }
.cy-post > a:hover b { color: var(--acc); }
.cy-tel { display: inline-block; margin-top: 10px; font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; }
.cy-post .cy-tel { color: #C8303F; }
:root.dark .cy-post .cy-tel { color: #FF6B75; }
.cy-post small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.cy-112 { margin: 28px 0 0; font-size: 16px; line-height: 1.5; color: var(--txt2); }
.cy-112 a { font-weight: 500; color: var(--acc); }

/* The list of cities: each a name in large type and its province, in the order Expato's readers live. */
.cy-all { display: grid; grid-template-columns: 1fr; margin-top: 40px; border-top: 1px solid rgba(var(--ink), .16); }
.cy-all a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(var(--ink), .1); color: var(--txt); }
.cy-all b { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; transition: color .2s; }
.cy-all small { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); text-align: right; }
.cy-all a:hover b { color: var(--acc); }
@media (min-width: 900px) {
  .cy-all { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
}

/* «Всё о городе» on the pages of what is in it — an event, a museum, a school. */
.cy-link { margin: 40px 0 0; }
.cy-link a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(var(--ink), .16); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--txt); transition: border-color .2s, color .2s; }
.cy-link a:hover { border-color: var(--acc); color: var(--acc); }
