/* soukromeskolky.cz on pohocms's base theme: the custom properties of base.css, then the site's own colours and parts.
   The look is the one the owner approved on 2026-12-02 (plans/refresh.md). */

:root {
    --font-body: "Figtree", system-ui, sans-serif;
    --font-heading: var(--font-body);
    --line-height: 1.6;
    --text: #1e1933;
    --background: #fff;
    --surface: #fff;
    --accent: #403098;
    --accent-strong: #312478;
    --accent-soft: #efebfc;
    --on-accent: #fff;
    --muted: #5e5873;
    --eyebrow: #bf5012;
    --line: #f3e2cf;
    --rule: #f17a04;
    --field-border: #8a7e9e;
    --focus: #bf5012;
    --radius: .5rem;
    --width: 75rem;
    --text-width: 46rem;
    --lead: var(--text);
    --info: var(--accent);
    --info-soft: var(--accent-soft);
    --tip: #26744f;
    --tip-soft: #e8f3ec;
    --warning: #bf5012;
    --warning-soft: #fff3e6;
    --important: #cc1100;
    --important-soft: #fceae7;

    /* The site's own colours. The bright orange only decorates: white text on it has 2.8:1, so
       the orange buttons take --cta (4.8:1). */
    --orange: #f17a04;
    --orange-text: #e16c0a;
    --cta: #bf5012;
    --cta-strong: #a3440f;
    --violet-light: #b19feb;
    --violet-line: #ddd5f6;
    --violet-night: #261b61;
    --beige: #fff7ee;
    --beige-pale: #fffdfb;
    --beige-line: #f8ddbd;
    --beige-strong: #f5cfa0;
    --tag: #fdf0e2;
    --brown: #7b3a1b;
    --brown-strong: #5a2b17;
    --shadow: 0 1px 3px rgb(159 103 17 / .12), 0 12px 28px -18px rgb(159 103 17 / .45);
    --pill: 999px;
    --touch: 2.75rem;

    /* One colour per type, for its labels and map pins. White text has 4.5:1 or more on each;
       the yellow takes dark text. */
    --type-jazykove-skolky: #cc1100;
    --type-montessori-skolky: #2e74bf;
    --type-lesni-skolky: #26744f;
    --type-waldorfske-skolky: #c44c1f;
    --type-umelecke-skolky: #dea300;
    --type-soukrome-jesle: #c82ba0;
    --type-detske-skupiny: #7b3a1b;
    --type-soukrome-skolky: #403098;
}

/* Text */
body { font-size: 1.0625rem; overflow-wrap: break-word; }
main { padding-block: 0 2rem; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -.025em; margin: .25rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -.015em; margin: 2.5rem 0 .8rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
a:hover { color: var(--accent-strong); }
.title-accent { color: var(--orange-text); }
.lead, .md-lead { font-size: 1.2rem; line-height: 1.55; }
.small { font-size: .9rem; }
.eyebrow { color: var(--eyebrow); font-weight: 800; letter-spacing: .1em; }
.markdown ul { padding-left: 1.2rem; }
.markdown li { margin-bottom: .35rem; }
.markdown li::marker { color: var(--orange); }
.markdown h2 { margin-top: 2rem; }

/* Header */
.site-header { display: block; padding: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: 5.5rem; }
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { width: 16.5rem; height: auto; }
.site-header .menu { display: flex; flex-wrap: wrap; gap: .25rem; width: auto; margin-left: auto; }
.site-header .menu a { display: inline-flex; align-items: center; min-height: var(--touch); padding: .4rem .85rem; border-radius: var(--pill); color: var(--text); font-weight: 700; text-decoration: none; }
.site-header .menu a:hover { color: var(--accent); background: var(--accent-soft); }
.site-header .menu a[aria-current=page] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.site-header .menu .menu-add { display: none; }
.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: var(--touch); margin-left: auto; padding: .4rem 1rem; border: 0; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded=true] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded=true] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded=true] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 72rem) {
    .site-header-inner { gap: 1rem; }
    .brand img { width: 13.5rem; }
    .site-header .menu { gap: 0; }
    .site-header .menu a { padding-inline: .65rem; }
}
@media (max-width: 62rem) {
    .site-header-inner { flex-wrap: wrap; min-height: 4.5rem; padding-block: .6rem; }
    .brand img { width: 13.5rem; }
    .js .nav-toggle { display: inline-flex; }
    .js .site-header .menu { display: none; }
    .site-header .menu { width: 100%; flex-direction: column; gap: 0; margin: 0 0 .75rem; }
    .js .site-header.is-open .menu { display: flex; }
    .site-header .menu a { border-radius: var(--radius); }
    .site-header .menu a[aria-current=page] { box-shadow: inset 4px 0 0 var(--orange); }
    .site-header .menu .menu-add { display: inline-flex; justify-content: center; margin-top: .5rem; border-radius: var(--pill); background: var(--cta); color: #fff; }
    .site-header .menu .menu-add:hover { background: var(--cta-strong); color: #fff; }
    .site-header .btn-add { display: none; }
}
@media (max-width: 30rem) { .brand img { width: 8.5rem; } }

/* The band at the top of a page: breadcrumbs and the heading */
.page-head { padding-block: 1.25rem 2rem; border-bottom: 1px solid var(--line); background: var(--beige); }
.page-head h1 { margin-bottom: .5rem; }
.page-head .lead { max-width: 46rem; margin: 0; color: var(--muted); }
.breadcrumbs { gap: .25rem .5rem; margin: 0 0 1rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current=page] { color: var(--text); }
/* On touch screens a crumb is 44 px high to tap; the negative margin keeps the lines as they are */
@media (pointer: coarse) { .breadcrumbs a { padding-block: calc((var(--touch) - 1lh) / 2); margin-block: calc((1lh - var(--touch)) / 2); } }

/* Buttons. The base's Markdown buttons and the forms' button look the same. */
.btn, .md-button, .pohocms-form button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: var(--touch); padding: .55rem 1.35rem; border: 1px solid transparent; border-radius: var(--pill); font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary, .md-button, .pohocms-form button { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .md-button:hover, .pohocms-form button:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-strong); color: #fff; }
.btn-outline, .md-button-secondary { background: var(--surface); border-color: var(--violet-line); color: var(--accent); }
.btn-outline:hover, .md-button-secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-quiet { background: var(--surface); border-color: var(--beige-strong); color: var(--brown); }
.btn-quiet:hover { background: var(--beige); border-color: var(--beige-strong); color: var(--brown-strong); }
.btn-plus::before { content: "+"; font-size: 1.3em; font-weight: 800; line-height: .8; }
.btn img { width: 1.15em; height: 1.15em; }
.btn .count { display: inline-grid; place-items: center; min-width: 2rem; margin-right: -.6rem; padding: .2rem .55rem; border-radius: var(--pill); background: #fff; color: var(--text); font-size: .9em; font-weight: 800; }
.btn-outline .count, .btn-quiet .count { background: var(--accent-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 1rem; }
.link-more { font-weight: 700; text-decoration: none; }
.link-more::after { content: " →"; }

/* Tags of places, labels of types, chips for filters */
.tags { gap: .4rem; margin: 0 0 1rem; }
.tags a, .tags span { display: inline-flex; align-items: center; padding: .3rem .7rem; border: 0; border-radius: .4rem; background: var(--tag); color: var(--brown); font-size: .875rem; line-height: 1.3; text-decoration: none; }
.tags a:hover { background: var(--beige-line); color: var(--brown-strong); }
.type-labels { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.type-label { display: inline-block; padding: .2rem .5rem; border-radius: .3rem; background: var(--type, var(--type-soukrome-skolky)); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.type-jazykove-skolky { --type: var(--type-jazykove-skolky); }
.type-montessori-skolky { --type: var(--type-montessori-skolky); }
.type-lesni-skolky { --type: var(--type-lesni-skolky); }
.type-waldorfske-skolky { --type: var(--type-waldorfske-skolky); }
.type-umelecke-skolky { --type: var(--type-umelecke-skolky); }
.type-label.type-umelecke-skolky { color: var(--text); }
.type-soukrome-jesle { --type: var(--type-soukrome-jesle); }
.type-detske-skupiny { --type: var(--type-detske-skupiny); }
.type-soukrome-skolky { --type: var(--type-soukrome-skolky); }
.chips { display: flex; gap: .5rem; margin: 0 0 1rem; padding: .2rem .1rem .6rem; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .25rem .85rem; border: 1px solid var(--violet-line); border-radius: var(--pill); background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
/* A count sits in its own small pill, so that "Praha 10" with 5 schools never reads as "Praha 105" */
.chips .count, .type-tile-title .count { display: inline-grid; place-items: center; min-width: 1.6rem; padding: 0 .4rem; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: .8em; font-weight: 700; line-height: 1.6; }
.chips .count { margin-right: -.35rem; }
.chips a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips a[aria-current=page] .count { background: var(--surface); color: var(--accent); }
.chips .dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--type); }
/* A long list of places shows the six with the most schools, the whole place and the current one;
   a button at its end shows the rest. Phones, whose rows slide sideways, and a page without the
   script show them all. */
.chips-toggle { display: none; }
.chips-toggle button { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .25rem .85rem; border: 1px dashed var(--violet-light); border-radius: var(--pill); background: transparent; color: var(--accent); font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.chips-toggle button:hover { border-style: solid; border-color: var(--accent); }
/* Chips are 36 px high for a mouse (the owner, 2026-12-02: smaller), 44 px on touch screens */
@media (pointer: coarse) { .chips a, .chips-toggle button { min-height: var(--touch); } }
@media (min-width: 40.01rem) {
    .js .chips:not(.is-open) > .is-more { display: none; }
    .js .chips-toggle { display: block; }
}
@media (pointer: coarse) { .tags a { min-height: var(--touch); padding-inline: .9rem; } }

/* A school in a listing: the whole card is one link */
.school-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1.5rem; margin: 1.5rem 0 2.5rem; padding: 0; list-style: none; }
.school-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.school-card:hover { transform: translateY(-2px); box-shadow: 0 1px 3px rgb(159 103 17 / .14), 0 18px 34px -18px rgb(159 103 17 / .6); }
.school-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.school-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--beige); }
.school-card-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.school-card .type-labels { position: absolute; top: .75rem; left: .75rem; right: .75rem; }
.school-card-logo { position: absolute; left: 1rem; bottom: 0; width: 7.5rem; height: auto; aspect-ratio: 21 / 11; padding: .2rem; border-radius: .5rem; background: #fff; box-shadow: 0 2px 10px rgb(30 25 51 / .14); object-fit: contain; transform: translateY(45%); }
.school-card-body { display: flex; flex: 1; flex-direction: column; padding: 2.5rem 1.25rem 1.25rem; }
.school-card-title { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.3; }
.school-card-title a { color: var(--accent); text-decoration: none; }
.school-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.school-card-title a:focus-visible { outline: none; }
.school-card:hover .school-card-title a { text-decoration: underline; }
.place { display: flex; align-items: center; gap: .4rem; margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.place::before { content: ""; flex: 0 0 auto; width: .8rem; height: 1.05rem; background: url("../img/map-pin.svg") center / contain no-repeat; }
.school-card-text { display: -webkit-box; margin: 0 0 1rem; overflow: hidden; font-size: .95rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
.school-card-more { margin: auto 0 0; color: var(--accent); font-weight: 700; }
.school-card-more::after { content: " →"; }
.school-card.is-inactive .school-card-photo { filter: grayscale(1); opacity: .75; }
.school-card.is-inactive .school-card-title a { color: var(--muted); }
.inactive-label { display: inline-block; margin: 0 0 .6rem; padding: .15rem .5rem; border-radius: .3rem; background: var(--beige); color: var(--muted); font-size: .8rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .school-card, .school-card:hover { transition: none; transform: none; } }
/* TOP, the paid first place in the lists (proposed 2026-12-02): a white badge at the photo's
   bottom right, across from the logo and apart from the type labels. Above a list that holds a
   TOP school, a line says that the place is paid and links to "Jak řadíme školky", as the consumer
   protection act asks (annex 1, letter k; § 5a (4)); the template prints it only then. */
.top-badge { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--violet-line); border-radius: var(--pill); background: var(--surface); color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.3; white-space: nowrap; }
.school-card-media .top-badge { position: absolute; right: .75rem; bottom: .75rem; border-color: transparent; box-shadow: 0 2px 10px rgb(30 25 51 / .14); }
.list-note { margin: 0 0 1.25rem; color: var(--muted); font-size: .95rem; }
.results-bar + .list-note { margin-top: -.5rem; }
.list-note .top-badge { vertical-align: .1em; }
.list-note + .school-list { margin-top: 0; }

/* A profile's contacts, links and transport */
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .35rem; overflow-wrap: anywhere; }
.icon-list img { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.stops li { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) auto; align-items: start; gap: .5rem; margin-bottom: .45rem; }
.stop-kinds { display: inline-flex; gap: .2rem; }
.stop-kinds img { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.stop-distance { color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.external::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .35em; background: currentColor; -webkit-mask: url("../img/outside.svg") center / contain no-repeat; mask: url("../img/outside.svg") center / contain no-repeat; }

/* The map, loaded from Mapy.com only after a click */
.map-teaser { position: relative; display: grid; place-items: center; align-content: center; gap: .6rem; min-height: 16rem; margin: 1.5rem 0; padding: 2rem 1rem; overflow: hidden; border: 1px solid var(--beige-line); border-radius: .75rem; background-color: #f6f1ea; background-image: linear-gradient(90deg, rgb(255 255 255 / .7) 2px, transparent 2px), linear-gradient(rgb(255 255 255 / .7) 2px, transparent 2px), linear-gradient(35deg, transparent 47%, rgb(255 255 255 / .95) 47%, rgb(255 255 255 / .95) 53%, transparent 53%); background-size: 3rem 3rem, 3rem 3rem, 100% 100%; text-align: center; }
.map-teaser-pin { width: 2.4rem; height: auto; filter: drop-shadow(0 4px 6px rgb(30 25 51 / .25)); }
.map-teaser p { margin: 0; color: var(--muted); font-size: .9rem; }
.no-js .map-teaser :is(button, p) { display: none; }

/* A school in a compact list: the nearest schools below a profile and on thin listings, the
   selection on the home page */
.school-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .75rem 1.5rem; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.school-mini { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .6rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); }
.school-mini:hover { border-color: var(--beige-strong); background: var(--beige-pale); }
.school-mini:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.school-mini img { width: 5.5rem; height: 4.1rem; border-radius: .5rem; object-fit: cover; }
.school-mini-title { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.3; }
.school-mini-title a { color: var(--accent); text-decoration: none; }
.school-mini-title a::after { content: ""; position: absolute; inset: 0; }
.school-mini-title a:focus-visible { outline: none; }
.school-mini-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .35rem; color: var(--muted); font-size: .88rem; }
.school-mini .type-labels .type-label { font-size: .7rem; }
.distance { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Notices: an inactive profile */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: start; margin: 1.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--beige-strong); border-radius: .75rem; background: var(--beige); }
.notice > img { width: 2.75rem; height: auto; }
.notice-title { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 800; }
.notice p { margin-bottom: .8rem; }
.notice .button-row { margin: 0; }
@media (max-width: 30rem) { .notice { grid-template-columns: 1fr; padding: 1.1rem 1rem; } }

/* Markdown's boxes from the base */
.md-box { border-radius: 0 var(--radius) var(--radius) 0; }

/* Forms (pohocms's markup) */
.pohocms-form { gap: 1.1rem; max-width: 36rem; }
.pohocms-form-field > label { font-weight: 700; }
/* The asterisk of a required field; a checkbox's own text is a span too and keeps the text colour */
.pohocms-form-field label span[aria-hidden="true"] { color: var(--important); }
.pohocms-form input[type=text], .pohocms-form input[type=email], .pohocms-form input[type=tel], .pohocms-form textarea, .pohocms-form select { min-height: var(--touch); padding: .6rem .8rem; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.pohocms-form input:hover, .pohocms-form textarea:hover, .pohocms-form select:hover { border-color: var(--accent); }
.pohocms-form :is(input, textarea, select):focus-visible { border-color: var(--accent); }
.pohocms-form-help { color: var(--muted); font-size: .9rem; opacity: 1; }
.pohocms-form-error { color: var(--important); font-size: .9rem; font-weight: 700; }
.pohocms-form .is-invalid :is(input, textarea, select) { border: 2px solid var(--important); }
.pohocms-form-check { align-items: flex-start; }
.pohocms-form-check input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--accent); }
@media (pointer: coarse) {
    .pohocms-form-check { align-items: center; min-height: var(--touch); }
    .pohocms-form-check input { margin-top: 0; }
}
.pohocms-form button { justify-self: start; padding-inline: 1.8rem; }
.pohocms-form-notice { border-left-color: var(--important); border-radius: 0 var(--radius) var(--radius) 0; background: var(--important-soft); }
.pohocms-form-sent { border-left-color: var(--tip); border-radius: 0 var(--radius) var(--radius) 0; background: var(--tip-soft); }

/* Pagination */
.pagination { gap: .4rem; margin: 1.5rem 0; }
.pagination a { display: inline-grid; place-items: center; min-width: var(--touch); min-height: var(--touch); padding: .4rem .9rem; border: 1px solid var(--violet-line); border-radius: var(--pill); color: var(--accent); font-weight: 700; }
.pagination a:hover { background: var(--accent-soft); }
.pagination [aria-current=page] { border-color: var(--accent); }

/* Footer */
.site-footer { margin-top: 4rem; padding: 3rem 0 1.5rem; border: 0; background: var(--violet-night); color: #e9e4fb; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--beige-strong); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-brand img { width: 15rem; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 20rem; color: #d4ccf5; }
.site-footer h2 { margin: .2rem 0 .8rem; color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .2rem; }
.site-footer li a { display: inline-block; padding-block: .25rem; }
@media (pointer: coarse) { .site-footer li a { display: inline-flex; align-items: center; min-height: var(--touch); padding-block: 0; } .site-footer li { margin: 0; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .15); color: #c9c0ef; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

/* The home page: the introduction, then bands of sections */
.hero { padding-block: 2.5rem 3rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--beige-pale) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem 3rem; }
.hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; }
.hero h1 a { color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.hero h1 a:hover { text-decoration-thickness: .1em; }
.hero h1 .title-link-orange { color: var(--orange-text); }
.hero h1 .title-link-violet { color: #5a49b4; }
.hero .lead { max-width: 34rem; margin-bottom: 0; }
.hero-art { justify-self: end; width: 100%; max-width: 26rem; height: auto; }
@media (max-width: 58rem) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-inline: auto; }
    .hero-art { order: 1; justify-self: center; max-width: 15rem; }
}
@media (max-width: 37.5rem) {
    .hero { padding-block: 1.75rem 2rem; }
    .hero-art { max-width: 13rem; }
}

/* The places under the introduction: Prague, Brno and the rest of the country, each with its parts
   or regions, so that a parent reaches Praha 6 or Žabovřesky in one click (seo.md section 8). Side
   by side on wide screens, one under another below, the parts in one sliding row on phones as in
   the catalog. */
.place-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.place-card { display: flex; flex-direction: column; align-items: center; padding: 1rem 1.25rem 1.25rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.place-card-art { width: 10rem; height: auto; margin-bottom: .5rem; }
.place-card > .btn { margin-bottom: 1rem; }
.place-card .chips { flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; overflow: visible; }
.place-card .chips a { padding-inline: .8rem; }
@media (max-width: 64rem) {
    .place-cards { grid-template-columns: minmax(0, 1fr); }
    .place-card { display: grid; grid-template-columns: 10rem minmax(0, 1fr); grid-template-areas: "art btn" "art chips"; align-items: start; justify-items: start; gap: .9rem 1.5rem; padding: 1.25rem 1.5rem; text-align: left; }
    .place-card-art { grid-area: art; align-self: center; width: 100%; margin: 0; }
    .place-card > .btn { grid-area: btn; margin: 0; }
    .place-card .chips { grid-area: chips; justify-content: flex-start; }
}
@media (max-width: 40rem) {
    .place-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "btn" "chips"; justify-items: stretch; gap: .75rem; padding: .9rem 0 .6rem .9rem; }
    .place-card-art { display: none; }
    .place-card > .btn { justify-content: space-between; margin-right: .9rem; }
    .place-card .chips { flex-wrap: nowrap; padding: 0 .9rem .35rem 0; overflow-x: auto; }
}
.home-section, .band { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
:is(.home-section, .band).is-beige { border-block: 1px solid var(--line); background: var(--beige); }
/* A page that ends with a band meets the footer without a strip of its own: a beige band without a
   white one, a white band without doubling its space */
main:has(> .band:last-child) { padding-bottom: 0; }
main:has(> .band:last-child) + .site-footer { margin-top: 0; }
.section-head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { margin: 0 0 .6rem; }
.section-head p { margin: 0; color: var(--muted); }
.section-more { margin: 2rem 0 0; text-align: center; }
.home-section .school-list, .home-section .school-mini-list { margin: 0; }

/* The types of schools, with the old illustrations */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.type-tile { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1.25rem 1.25rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.type-tile img { width: 8.5rem; height: auto; margin-bottom: .75rem; }
.type-tile-title { margin: 0 0 .5rem; font-size: 1.15rem; }
.type-tile-title a { color: var(--text); text-decoration: none; }
.type-tile-title a::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; background: var(--type); vertical-align: .1em; }
.type-tile-title a:hover { color: var(--accent); text-decoration: underline; }
.type-tile-title .count { margin-left: .3rem; font-size: .75em; vertical-align: .1em; }
.type-tile p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.type-tile .link-more { margin-top: auto; font-size: .95rem; }
@media (max-width: 36rem) {
    .type-tile { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; gap: 0 1rem; padding: 1rem; text-align: left; }
    .type-tile img { grid-row: span 3; width: 4.5rem; margin: 0; }
    .type-tile p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; margin-bottom: .5rem; }
}
@media (pointer: coarse) {
    .type-tile-title { margin-bottom: .25rem; }
    .type-tile-title a, .link-more, .link-down { display: inline-block; padding-block: calc((var(--touch) - 1lh) / 2); }
}

/* The map of all schools on the home page: pins in the types' colours under the button */
.map-teaser.is-wide { min-height: 22rem; }
.map-teaser-pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.map-teaser-pins img { position: absolute; width: 1.5rem; height: auto; filter: drop-shadow(0 2px 3px rgb(30 25 51 / .2)); }
.map-teaser > :not(.map-teaser-pins) { position: relative; z-index: 1; }
.map-teaser.is-wide p { padding: .15rem .75rem; border-radius: 1rem; background: rgb(255 255 255 / .9); }

/* Articles in a listing */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.article-list.is-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); max-width: 60rem; margin-inline: auto; }
.article-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); }
.article-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.4rem 1.4rem; }
.article-card-title { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.article-card-title a { color: var(--accent); text-decoration: none; }
.article-card-title a::after { content: ""; position: absolute; inset: 0; }
.article-card-title a:focus-visible { outline: none; }
.article-card:hover .article-card-title a { text-decoration: underline; }
.article-card p { display: -webkit-box; margin: 0 0 1rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.article-card-more { margin: auto 0 0 !important; color: var(--accent); font-weight: 700; }
.article-card-more::after { content: " →"; }

/* The catalog: a place, or a type in a place. The band holds the heading and the filters, which
   are links to other listings (each a page of its own); the list takes the full width below. */
.catalog-head { padding-block: 1.25rem 1.75rem; }
.catalog-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text art" "filters filters"; align-items: end; gap: 0 2.5rem; }
.catalog-head-text { grid-area: text; }
.catalog-head-text .lead { font-size: 1.1rem; }
.catalog-head-more { margin: .75rem 0 0; }
@media (pointer: coarse) { .catalog-head-more { margin-top: .25rem; } }
.catalog-head-art { grid-area: art; width: 15rem; height: auto; margin-bottom: .25rem; }
.catalog-head-art.is-type { width: 11rem; }
.filters { grid-area: filters; display: grid; margin-top: 1.5rem; padding: .5rem 1.25rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); }
.filter-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: start; gap: 0 1rem; padding-block: .5rem; }
.filter-row + .filter-row { border-top: 1px solid var(--line); }
.filter-label { margin: 0; padding-top: .4rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
@media (pointer: coarse) { .filter-label { padding-top: .65rem; } }
.filter-row .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
/* On a tablet the label goes above its row, so that the chips take the full width */
@media (max-width: 48rem) {
    .catalog-head-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "filters"; }
    .catalog-head-art { display: none; }
    .filter-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    .filter-label { padding-top: 0; }
}
@media (max-width: 40rem) {
    .filters { padding: .25rem 0 .25rem .9rem; }
    .filter-row .chips { flex-wrap: nowrap; padding: 0 .9rem .35rem 0; overflow-x: auto; }
}

/* The list's heading, with the way to the map */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 2rem 0 1.25rem; }
.results-bar h2 { margin: 0; font-size: 1.35rem; }
.results-bar + .school-list { margin-top: 0; }
:is(.place, .school-mini-meta) .distance::before { content: "·"; margin-right: .4rem; color: var(--muted); font-weight: 400; }

/* The catalog's entry (Celá ČR), where the menu's "Katalog školek" leads: a directory of places and
   types without school cards. Each row is one link with its count in grey at the right end, so
   that "Praha 10" and its 5 schools never read as one number. */
.dir-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 3rem 3.5rem; margin-top: 2.5rem; }
.dir-place h2 { margin: 0 0 .75rem; }
.dir-all { margin: -.25rem 0 1.5rem; color: var(--muted); }
.dir-label { margin: 1.75rem 0 .3rem; }
.dir-list { margin: 0; padding: 0; list-style: none; }
.dir-list li { break-inside: avoid; }
:is(.dir-list, .dir-region) a { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-block: .4rem; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.35; text-decoration: none; }
:is(.dir-list, .dir-region) a:hover .dir-name { text-decoration: underline; }
.dir-count { color: var(--muted); font-size: .9rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.dir-name .dot { display: inline-block; width: .6rem; height: .6rem; margin-right: .55rem; border-radius: 50%; background: var(--type); vertical-align: .05em; }
.dir-list.is-cols { columns: 2; column-gap: 1.75rem; }
/* Prague's and Brno's map above their parts: the schools' pins at their real places, in the
   proportions of the city, and the button at the foot, where it covers none of them */
.map-teaser.is-city { min-height: 0; aspect-ratio: 7 / 5; align-content: end; margin: 0; padding: 1rem; }
.map-teaser.is-city .map-teaser-pins img { width: 1.1rem; transform: translate(-50%, -100%); }
/* A region is a bolder row, its towns under it */
.dir-group { break-inside: avoid; }
.dir-group + .dir-group { margin-top: 1.25rem; }
.dir-region { margin: 0; font-size: 1.05rem; }
.dir-region a { color: var(--text); font-weight: 800; }
/* A tablet or a small laptop: Prague and Brno side by side, the other regions under them across
   the width, so that names such as "Praha-východ" keep to one line */
@media (max-width: 64rem) {
    .dir-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dir-place:last-child { grid-column: 1 / -1; }
    .dir-regions { columns: 2; column-gap: 3.5rem; }
    .dir-regions .dir-group { margin: 0 0 1.5rem; }
}
@media (max-width: 40rem) {
    .dir-places { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .dir-regions { columns: auto; }
}
@media (pointer: coarse) { :is(.dir-list, .dir-region) a { align-items: center; min-height: var(--touch); padding-block: 0; } }

/* A list of school cards is laid out by its count, which the template turns into a class (the
   owner, 2026-12-02): one school lies on a wide card (.is-one); two and four stand in pairs, on a
   wide screen each card on its side (.in-pairs); three, five and more stand in threes, the photo
   on top (.in-threes). A row never holds more than two or three; narrower screens take fewer.
   The caps count with the list's gap of 1.5rem. The single card lies on its side from 38rem, so
   that it never stands alone beside an empty half. */
.school-list.is-one { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
.school-list.in-pairs { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(17.5rem, (100% - 1.5rem) / 2)), 1fr)); }
.school-list.in-threes { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(17.5rem, (100% - 3rem) / 3)), 1fr)); }
@media (min-width: 38rem) {
    .is-one .school-card { flex-direction: row; }
    .is-one .school-card-media { flex: 0 0 42%; min-width: 0; }
    .is-one .school-card-logo { bottom: 1rem; transform: none; }
    .is-one .school-card-body { justify-content: center; padding: 1.5rem 1.75rem; }
    .is-one .school-card-title { font-size: 1.25rem; }
    .is-one .school-card-more { margin-top: 0; }
}
@media (min-width: 48rem) {
    .is-one .school-card-media { flex-basis: 46%; }
    .is-one .school-card-body { padding: 1.75rem 2rem; }
    .is-one .school-card-title { font-size: 1.4rem; }
    .is-one .school-card-text { -webkit-line-clamp: 6; line-clamp: 6; }
}
@media (min-width: 72rem) {
    .in-pairs .school-card { flex-direction: row; }
    .in-pairs .school-card-media { flex: 0 0 42%; min-width: 0; aspect-ratio: auto; }
    .in-pairs .school-card-logo { bottom: 1rem; transform: none; }
    .in-pairs .school-card-body { justify-content: center; padding: 1.5rem 1.75rem; }
    .in-pairs .school-card-title { font-size: 1.25rem; }
    .in-pairs .school-card-text { -webkit-line-clamp: 4; line-clamp: 4; }
    .in-pairs .school-card-more { margin-top: 0; }
}

/* The parts below the list, below a profile, and below an article or a page */
.catalog-section, .profile-section, .page-section { margin-top: 3rem; }
/* The whole of Praha and Brno: the map above the list (the owner, 2026-12-04) */
.catalog-section.is-first { margin-top: 2rem; }
.catalog-section.is-first .map-teaser { margin: 0; }
/* A map that loads by itself (js/site.js) has its size from the start, so that nothing moves under the reader. */
.map-teaser.is-now.is-wide { height: clamp(20rem, 50vh, 27rem); min-height: 0; }
@media (min-width: 48rem) { .map-teaser.is-now.is-wide { height: clamp(27rem, 50vh, 32rem); } } /* the whole of Praha one zoom closer */
.map-teaser.is-now > [hidden] { display: none; }
:is(.catalog-section, .profile-section, .page-section) > h2 { margin: 0 0 .4rem; }
.section-note { max-width: var(--text-width); margin: 0 0 1.25rem; color: var(--muted); }
:is(.catalog-section, .profile-section, .page-section) :is(.school-list, .school-mini-list, .article-list) { margin: 0; }
.chips.is-wrap { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }

/* An invitation for the schools themselves */
.add-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.5rem; margin: 3rem 0 0; padding: 1.25rem 1.75rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--beige); }
.add-band img { width: 3.5rem; height: auto; }
.add-band p { margin: 0; }
.add-band strong { display: block; margin-bottom: .15rem; font-size: 1.1rem; }
@media (max-width: 40rem) {
    .add-band { grid-template-columns: auto minmax(0, 1fr); padding: 1.1rem 1rem; }
    .add-band .btn { grid-column: 1 / -1; }
}

/* The profile of a school (refresh.md, item 4), without the left column. The band holds the name,
   the types and the place, then the photos with the main contacts beside them, so that a parent
   sees at once what the school is and how to reach it. The text follows, with the school's
   position and transport beside it, in view while reading on wide screens. On phones: the name,
   three quick buttons (call, e-mail, web), the photos sliding sideways, then the contacts. */
.profile-head { padding-block: 1.25rem 2.5rem; }
.profile-title { margin: 0 0 1.5rem; }
.profile-title.has-logo { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo name" "logo meta"; align-items: center; gap: 0 1.5rem; }
.profile-logo { grid-area: logo; display: block; width: 9rem; height: auto; aspect-ratio: 21 / 11; padding: .3rem; border-radius: .6rem; background: #fff; box-shadow: 0 2px 10px rgb(30 25 51 / .1); object-fit: contain; }
.profile-title h1 { grid-area: name; align-self: end; margin: 0 0 .5rem; }
.profile-meta { grid-area: meta; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.profile-meta .type-label { font-size: .8rem; }
.profile-meta :is(.place, .inactive-label) { margin: 0; }
.profile-meta .inactive-label { padding: .2rem .6rem; border: 1px solid var(--beige-strong); background: var(--surface); font-size: .85rem; }
.profile-title:last-child { margin-bottom: 0; }
.profile-quick { display: none; }
/* All the headings of a profile but its name are dark violet (the owner, 2026-12-03) */
:is(.profile-card, .profile-aside, .profile-text, .profile-section, .profile-inactive) h2 { color: var(--accent-strong); }

/* The photos: one large and two small; each opens over the page */
.profile-top { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; align-items: stretch; gap: 1.5rem 3rem; }
/* Stretched both ways: as high as the contacts beside, never wider than its column (with the
   ratio alone, a taller row would widen it) */
.profile-gallery { place-self: stretch; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .5rem; aspect-ratio: 16 / 9; margin: 0; padding: 0; overflow: hidden; border-radius: .75rem; list-style: none; }
.profile-gallery li { overflow: hidden; background: var(--beige-line); }
.profile-gallery li:first-child { grid-row: 1 / -1; }
/* A photo alone fills the whole width, two are of the same size */
.profile-gallery li:only-child { grid-column: 1 / -1; flex-basis: 100%; }
.profile-gallery:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-gallery li:nth-child(2):last-child { grid-row: 1 / -1; }
.profile-gallery a { display: block; height: 100%; }
.profile-gallery a:focus-visible { outline-offset: -4px; }
.profile-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.profile-gallery a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .profile-gallery img { transition: none; } .profile-gallery a:hover img { transform: none; } }

/* The main contacts beside the photos; the buttons lead to the school's own pages */
.profile-card { display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); }
.profile-card h2 { margin: 0 0 .9rem; font-size: 1.15rem; }
.profile-contacts li { margin-bottom: .55rem; }
.profile-contacts li:last-child { margin-bottom: 0; }
.profile-card .button-row { margin: auto 0 0; padding-top: 1.25rem; }
.profile-card .button-row .btn { flex: 1 1 auto; padding-inline: 1rem; }
@media (pointer: coarse) {
    .profile-contacts li { align-items: center; margin: 0; }
    .profile-contacts li.is-address { align-items: flex-start; margin-bottom: .25rem; }
    .profile-contacts li > img { margin-top: 0; }
    .profile-contacts li.is-address > img { margin-top: .15rem; }
    .profile-contacts a:not(.link-down) { display: inline-flex; align-items: center; min-height: var(--touch); }
}

/* The text, with the position and transport beside it */
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; grid-template-rows: auto 1fr; grid-template-areas: "intro aside" "text aside"; align-items: start; gap: 0 3rem; margin-top: 2.5rem; }
.profile-intro { grid-area: intro; max-width: var(--text-width); font-size: 1.15rem; }
.profile-text { grid-area: text; max-width: var(--text-width); }
/* A photo that stands alone in the text goes across its whole width (the owner, 2026-12-04), a nearly square one cut to
   four to three. A small picture, such as a certificate, grows one and a half times at most, where the browser can read
   its width. The link is a block: its margins are lost in those of a paragraph with the photo only, and keep a text in
   the same paragraph away from the photo. */
.profile-text img { display: block; width: 100%; max-width: calc(attr(width px, 46rem) * 1.5); height: auto; max-height: 34.5rem; object-fit: cover; border-radius: .75rem; }
.profile-text p:not(:has(> a + a > img)) > a:has(> img) { display: block; margin-block: .75rem; }
.profile-aside { grid-area: aside; padding: 1.25rem 1.25rem .6rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--beige-pale); }
.profile-aside h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.profile-aside h3 { margin: 1.25rem 0 .6rem; font-size: 1.05rem; }
.profile-aside .map-teaser { min-height: 12rem; margin: 0 0 1rem; }
.profile-address { display: flex; align-items: flex-start; gap: .6rem; margin: 0; }
.profile-address img { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
@media (min-width: 60.01rem) and (min-height: 44rem) { .profile-aside { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; scrollbar-width: thin; } }
/* The school's social networks end the box, as rows with an icon like the contacts; the card
   shows the first two of them too */
.social-list li { margin-bottom: .45rem; }
@media (pointer: coarse) {
    .social-list li { align-items: center; margin: 0; }
    .social-list li > img { margin-top: 0; }
    .social-list a { display: inline-flex; align-items: center; min-height: var(--touch); }
}
/* A school with more contacts than its main one (the owner, 2026-12-02): the card shows the main
   contact and "Všechny kontakty ↓" on a line of its own (the owner, 2026-12-03), under the name or,
   without one, under the e-mail. The box lists them all, the main one first, a person's phone and
   e-mail under the name. */
.is-person .link-down { display: block; width: fit-content; }
.icon-list > .is-more { padding-left: 1.85rem; break-before: avoid; }
.people-list { margin: 0; padding: 0; list-style: none; }
.people-list > li + li { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--beige-line); }
.people-list .icon-list li { margin-bottom: .3rem; }
.people-list .icon-list li:last-child { margin-bottom: 0; }
@media (pointer: coarse) {
    .people-list .icon-list li { align-items: center; margin: 0; }
    .people-list .icon-list li.is-person { align-items: flex-start; margin-bottom: .2rem; }
    .people-list .icon-list li > img { margin-top: 0; }
    .people-list .icon-list li.is-person > img { margin-top: .15rem; }
    .people-list a { display: inline-flex; align-items: center; min-height: var(--touch); }
    .profile-contacts li.is-person { align-items: flex-start; }
    .profile-contacts li.is-person > img { margin-top: .15rem; }
}
/* "Mapa a doprava" and "Všechny kontakty" in the card lead down to the box, which lights up for a
   moment. Both aim at the box itself: a jump to a heading inside the box, which sticks and
   scrolls inside on wide screens, would carry the page deep into the text. */
.link-down { font-weight: 700; }
.link-down::after { content: "↓"; display: inline-block; margin-left: .3em; }
.profile-aside { scroll-margin-top: 1.5rem; }
.profile-aside:target { animation: target-flash 2.2s ease-out; }
@keyframes target-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--violet-light); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* The fields only some schools have: a contact person's role under the name, the founder under
   the text */
.person-role { display: block; color: var(--muted); font-size: .88rem; }
.profile-founder { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
/* A paragraph of images only, such as a gallery of the old site, becomes a grid of squares, each
   opening over the page */
.markdown p:has(> a + a > img), .markdown p:has(> img + img) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, calc(50% - .25rem)), 1fr)); gap: .5rem; }
.markdown p:has(> a + a > img) > a { display: block; overflow: hidden; border-radius: .75rem; }
.markdown :is(p:has(> a + a > img), p:has(> img + img)) img { width: 100%; max-width: none; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
/* An upright photo that stands alone does not go across the text: the text flows around it (the owner, 2026-12-04). It is
   cut to three to four and opens whole over the page. Headings, lists and paragraphs flow, all else starts below it, and
   where none of them follows, the photo stands at the left edge. A phone has no room for a text beside it. The class comes
   from the module (Photos). */
.markdown > p > .is-upright > img { width: 100%; max-height: none; aspect-ratio: 3 / 4; object-fit: cover; }
.markdown > :not(h2, h3, h4, ul, ol, p:not(:has(img))), .markdown::after { clear: both; }
.markdown::after { content: ""; display: block; }
@media (min-width: 40.01rem) {
    .markdown > p > .is-upright { float: right; width: 42%; margin: .35rem 0 1rem 1.75rem; }
    .markdown > p:is(:has(+ p img), :not(:has(+ :is(h2, h3, h4, ul, ol, p)))) > .is-upright { float: left; margin-inline: 0 1.75rem; }
}

/* An inactive profile: the notice, and the contacts as the old site shows them */
.profile-inactive { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; gap: 1.5rem 3rem; margin-top: 2rem; }
.profile-inactive .notice { margin: 0; }

/* The first part below a profile's text stands further from it than the chapters of the text from
   each other, so that it does not read as one more of them (the owner, 2026-12-04) */
.profile-body + .profile-section { margin-top: 5rem; }
@media (max-width: 40rem) { .profile-body + .profile-section { margin-top: 4rem; } }

@media (max-width: 72rem) {
    :is(.profile-top, .profile-body, .profile-inactive) { grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 2.5rem; }
}
@media (max-width: 60rem) {
    .profile-top, .profile-inactive { grid-template-columns: minmax(0, 1fr); }
    .profile-contacts { columns: 2; column-gap: 2rem; }
    .profile-contacts li { break-inside: avoid; }
    .profile-card .button-row .btn { flex: 0 1 auto; }
    .profile-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "aside" "text"; }
    .profile-aside { max-width: var(--text-width); margin: .5rem 0 1rem; }
}
@media (max-width: 40rem) {
    .profile-head { padding-bottom: 1.75rem; }
    .profile-title.has-logo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "name" "meta"; }
    .profile-logo { width: 7.5rem; margin-bottom: 1rem; }
    .profile-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: -.25rem 0 1.25rem; padding: 0; list-style: none; }
    .profile-quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 3.75rem; padding: .5rem .25rem; border: 1px solid var(--violet-line); border-radius: .75rem; background: var(--surface); color: var(--accent); font-size: .9rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
    .profile-quick a:hover { border-color: var(--accent); }
    .profile-quick img { width: 1.25rem; height: 1.25rem; }
    /* The photos slide sideways from edge to edge, the next one peeking in */
    .profile-gallery { display: flex; aspect-ratio: auto; margin-inline: -1.5rem; padding: 0 1.5rem .3rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1.5rem; border-radius: 0; scrollbar-width: thin; }
    .profile-gallery li { flex: 0 0 86%; aspect-ratio: 4 / 3; border-radius: .75rem; scroll-snap-align: start; }
    .profile-contacts { columns: auto; }
    .profile-card { padding: 1.1rem 1rem 1.25rem; }
    .profile-card .button-row .btn { flex: 1 1 auto; }
}
@media (max-width: 38rem) { .profile-gallery { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; } }

/* Articles and ordinary pages (refresh.md, the rest of the mockups): the text in a column as wide
   as a profile's, an aside beside it on wide screens, in view while reading, and after it below */
.page-layout { display: grid; grid-template-columns: minmax(0, var(--text-width)) minmax(0, 21rem); justify-content: space-between; align-items: start; gap: 2.5rem 3rem; margin-top: 2.5rem; }
.page-text { max-width: var(--text-width); }
.page-text > :first-child { margin-top: 0; }
.page-text > :last-child { margin-bottom: 0; }
.page-text h2 { margin-top: 2.25rem; }
.page-text img { display: block; border-radius: .75rem; box-shadow: 0 0 0 1px var(--line); }
.page-text p:has(> img:only-child) { margin-block: 1.75rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 60.01rem) and (min-height: 44rem) { .page-aside { position: sticky; top: 1.5rem; } }
@media (max-width: 60rem) {
    .page-layout { grid-template-columns: minmax(0, 1fr); }
    .page-aside { max-width: var(--text-width); }
}

/* Numbered lists in Markdown: the numbers in circles, as steps; the list's own counter keeps a
   list that starts at another number right */
.markdown ol { padding-left: 0; list-style: none; }
.markdown ol > li { position: relative; min-height: 1.9rem; margin-bottom: .8rem; padding-left: 2.75rem; }
.markdown ol > li::before { content: counter(list-item); position: absolute; top: -.1rem; left: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--tag); color: var(--brown); font-size: .95rem; font-weight: 800; line-height: 1; }

/* Markdown's columns: side by side from 38rem as in the base, with more room between them */
.md-columns { gap: 1.75rem 2rem; margin: 1.5rem 0; }
.md-column > :first-child { margin-top: 0; }
.md-column > :last-child { margin-bottom: 0; }
.md-column h3 { margin-bottom: .3rem; }
.md-column p:has(> img:only-child) { margin-block: 1rem 0; }

/* Boxes beside the text: the catalog's places and types (Hledáte školku?), beside an article and
   on the 404 page; the About page's facts */
.finder, .facts { padding: 1.25rem 1.25rem 1.4rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--beige-pale); }
:is(.finder, .facts) h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.finder-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.finder h3 { margin: 1.25rem 0 .6rem; font-size: 1rem; }
.finder-places { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.finder-places .btn { width: 100%; justify-content: space-between; }
/* Three places in a row where the group is wide enough: below an article, on the 404 page on a tablet */
.finder-group { container-type: inline-size; }
@container (min-width: 30rem) { .finder-places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.finder .chips { flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; overflow: visible; }
.finder .chips a { padding-inline: .8rem; }
.finder.is-wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 3rem; padding: 1.5rem 2rem 1.9rem; }
.finder.is-wide .finder-head { grid-column: 1 / -1; }
@media (max-width: 48rem) { .finder.is-wide { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 1.25rem 1.4rem; } }
.facts h2 { margin-bottom: 1rem; }
.facts-list { display: grid; gap: .9rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.facts-list li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); align-items: baseline; gap: 1rem; line-height: 1.35; }
.facts-list strong { color: var(--orange-text); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts .button-row { margin: 0; }
/* Below the text on a tablet, the three facts side by side */
.facts { container-type: inline-size; }
@container (min-width: 34rem) {
    .facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
    .facts-list li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .35rem; }
}

/* Přidat školku: the offer for the schools in bands, from the price in the band at the top to the
   form at the end */
.add-head { padding-bottom: 2.5rem; }
.add-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: center; gap: 2rem 4rem; }
.add-head .lead { margin-bottom: 1.5rem; }
.add-head .check-list { margin: 0; }
.price-card { padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.price-card-label { margin: 0; color: var(--muted); font-weight: 700; }
.price-card-price { margin: .1rem 0 0; color: var(--muted); }
.price-card-price strong { color: var(--text); font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.price-card-note { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; }
.price-card .btn { width: 100%; }
.price-card-more { margin: .9rem 0 0; font-size: .95rem; }
/* TOP in a band of its own before the order (the owner, 2026-12-02: what TOP brings, as in
   Prague), the text beside its price card as in the band at the top */
.top-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: center; gap: 2rem 4rem; }
.top-offer h2 { margin-top: 0; }
.top-offer .lead { max-width: 46rem; margin-bottom: 1.5rem; color: var(--muted); }
.top-offer .check-list { max-width: 46rem; margin: 0; }
.top-offer-note { max-width: 46rem; margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 52rem) {
    .add-head-inner, .top-offer { grid-template-columns: minmax(0, 1fr); }
    .price-card { max-width: 24rem; }
}
/* On a tablet the price lies across the band: the price on the left, the button on the right */
@media (max-width: 52rem) and (min-width: 40.01rem) {
    .price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 2rem; max-width: none; text-align: left; }
    .price-card .btn { grid-column: 2; grid-row: 1 / 3; width: auto; padding-inline: 1.75rem; }
    .price-card-more { grid-column: 2; grid-row: 3; margin: 0; text-align: center; }
    .price-card-note { margin: 0; }
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.feature { padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); }
.feature img { display: block; width: 4rem; height: 4rem; margin-bottom: .9rem; object-fit: contain; }
.feature h3 { margin: 0 0 .45rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.portal { position: relative; display: grid; grid-template-columns: .65rem minmax(0, 1fr); align-items: center; gap: .15rem .6rem; padding: .9rem 1.1rem 1rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); }
.portal:hover { border-color: var(--beige-strong); }
.portal:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.portal .dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--type, var(--type-soukrome-skolky)); }
.portal a { color: var(--accent); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.portal a::after { content: ""; position: absolute; inset: 0; }
.portal a:focus-visible { outline: none; }
.portal:hover a { text-decoration: underline; }
.portal-about { grid-column: 2; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 1.5rem 4rem; }
.faq-intro img { width: 3.5rem; height: auto; margin-bottom: .75rem; }
.faq-intro h2 { margin-top: 0; }
.faq-intro p { color: var(--muted); }
.faq-list { display: grid; gap: 1rem; }
.faq-item { padding: 1.2rem 1.5rem 1.3rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); }
.faq-item h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.faq-item p { margin: 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: start; gap: 2rem 4rem; }
.order-info h2 { margin-top: 0; }
.order-info .icon-list li { margin-bottom: .5rem; }
.check-list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: .6rem; padding-left: 2.1rem; }
.check-list li::before { content: ""; position: absolute; top: .2rem; left: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: url("../img/li-aside-active.svg") center / .7rem auto no-repeat, var(--accent-soft); }
.form-card { padding: 1.5rem 1.75rem 1.75rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.form-card > p { margin: 0 0 1rem; color: var(--muted); }
.form-card .pohocms-form { max-width: none; margin: 0; }
@media (max-width: 64rem) {
    .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-layout, .order-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-intro { max-width: var(--text-width); }
    .form-card { max-width: 36rem; }
}
@media (max-width: 40rem) {
    .feature-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .feature { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding: 1rem 1rem 1.1rem; }
    .feature img { grid-row: span 2; width: 3rem; height: 3rem; margin: 0; }
    .portal-grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .faq-item { padding: 1rem 1rem 1.1rem; }
    .form-card { padding: 1.1rem 1rem 1.25rem; }
}
@media (pointer: coarse) {
    .order-info .icon-list li { align-items: center; margin: 0; }
    .order-info .icon-list img { margin-top: 0; }
    .order-info .icon-list a { display: inline-flex; align-items: center; min-height: var(--touch); }
}

/* Kontakt: the e-mail and the phone large, then who runs the site, adding a school and the
   billing details */
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.contact-link { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon label" "icon value"; align-items: center; gap: .1rem 1.25rem; height: 100%; padding: 1.3rem 1.6rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.contact-link:hover { border-color: var(--beige-strong); color: var(--text); }
.contact-link img { grid-area: icon; width: 3.5rem; height: 3.5rem; padding: .7rem; border-radius: 50%; background: var(--beige); }
.contact-link-label { grid-area: label; align-self: end; color: var(--muted); font-size: .95rem; font-weight: 700; }
.contact-link-value { grid-area: value; align-self: start; color: var(--accent); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.contact-link:hover .contact-link-value { text-decoration: underline; }
/* Under the phone a note that it reaches the catalog's operator, not a school (the owner,
   2026-12-02). The tiles keep one height: each item spans two rows of a subgrid, the note lies
   in the second. */
.contact-links { grid-template-rows: auto auto; row-gap: .6rem; }
.contact-links > li { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.contact-link-note { margin: 0; padding-inline: .25rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.contact-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.contact-block { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: 0 1rem; padding: 1.3rem 1.5rem 1.4rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--beige-pale); }
.contact-block > img { width: 2.6rem; height: auto; }
.contact-block h2 { margin: .35rem 0 .5rem; font-size: 1.15rem; }
.contact-block p { margin: 0 0 .75rem; }
.contact-block > div > :last-child { margin-bottom: 0; }
.billing { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem 1rem; margin: 0 0 .6rem; }
.billing dt { color: var(--muted); }
.billing dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 56rem) {
    .contact-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-block.is-billing { grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
    .contact-links, .contact-blocks { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
    .contact-links { margin-top: 1.75rem; }
    .contact-links > li { display: block; grid-row: auto; }
    .contact-link-note { margin-top: .5rem; }
    .contact-blocks { margin-top: .9rem; }
    .contact-link { height: auto; gap: .1rem 1rem; padding: 1rem; }
    .contact-link img { width: 3rem; height: 3rem; padding: .6rem; }
    .contact-block { padding: 1.1rem 1rem 1.2rem; }
}
/* Where two tiles share a narrow row (a tablet) and on the narrowest phones the icon goes above,
   so that a long e-mail address keeps one line */
@media (max-width: 22.5rem), (min-width: 44.01rem) and (max-width: 56rem) {
    .contact-link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "label" "value"; justify-items: start; gap: .15rem; }
    .contact-link img { margin-bottom: .5rem; }
}

/* The 404 page: the way back, with the search and the catalog */
.not-found { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: center; gap: 1.5rem 4rem; }
.not-found h1 { margin-top: 0; }
.not-found .lead { margin-bottom: 1.5rem; }
.not-found-art { justify-self: center; width: 100%; height: auto; }
.page-head .site-search { display: flex; gap: .5rem; max-width: 34rem; margin: 0 0 1.25rem; }
.page-head .site-search input { flex: 1; width: auto; min-width: 0; min-height: var(--touch); padding: .55rem 1.1rem; border-radius: var(--pill); }
.page-head .site-search button { min-height: var(--touch); padding: .55rem 1.4rem; border-radius: var(--pill); font-weight: 700; }
.not-found .button-row { margin: 0; }
@media (max-width: 48rem) {
    .not-found { grid-template-columns: minmax(0, 1fr); }
    .not-found-art { order: -1; justify-self: start; max-width: 13rem; }
}

/* What the mockups did not need. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The hidden word stays inside its number: in a row that scrolls sideways on a phone it would widen the page. */
:is(.count, .dir-count) { position: relative; }
/* A long name of a list wraps on a narrow phone. */
.chips.is-wrap a { white-space: normal; }
/* The facts of a school, those that are filled: the age, the hours, the languages and the meals */
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .9rem 1.5rem; margin: 0 0 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--beige-line); border-radius: .75rem; background: var(--beige-pale); font-size: 1rem; }
.profile-facts dt { color: var(--muted); font-size: .9rem; }
.profile-facts dd { margin: 0; font-weight: 700; line-height: 1.35; }
/* A school without a photo shows the picture of its type. */
.is-drawn { object-fit: contain; }
.school-card-photo.is-drawn { padding: 1.25rem 1.25rem 2rem; }
.school-mini img.is-drawn { padding: .35rem; background: var(--beige); }
/* The home page shows nine of the schools with TOP, other ones at each visit. */
.is-selection > :nth-child(n + 10) { display: none; }
/* A new type has the colour of a school without a type until it gets its own. */
.chips .dot, .dir-name .dot, .type-tile-title a::before { background: var(--type, var(--type-soukrome-skolky)); }
/* A form on its own page, and the one for the key of a school's owner. */
.form-card.is-page { max-width: 40rem; }
.edit-key form { display: grid; justify-items: start; gap: .5rem; max-width: 24rem; }
.edit-key label { font-weight: 700; }
.edit-key input[type=password] { width: 100%; min-height: var(--touch); padding: .6rem .8rem; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.edit-key button { margin-top: .5rem; }
.form-card > .edit-key-message { color: var(--important); font-weight: 700; }
/* The real positions gather in the middle of a wide preview, so its button stands below them, as on the small ones. */
.map-teaser.is-wide { align-content: end; padding-bottom: 1rem; }
.map-teaser.is-wide .map-teaser-pins { bottom: 6.25rem; }
.map-teaser.is-now .map-teaser-pins { inset-block: 2rem 1rem; }
/* An arrow never stands alone on the next line. */
:is(.link-more, .school-card-more, .article-card-more)::after { content: "\a0→"; }
/* Without a school with TOP the home page ends with a beige part. */
main:has(> .home-section.is-beige:last-child) { padding-bottom: 0; }
/* The results of a search */
.search-results { margin: 1rem 0 0; padding: 0; list-style: none; }
.search-results > li { max-width: var(--text-width); padding-block: 1.1rem; border-top: 1px solid var(--line); }
.search-results h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.search-results p { margin: .3rem 0 0; }
.search-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.search-meta .place { margin: 0; }

/* The photos of a page over it, one at a time (js/site.js): the arrows below them on a phone, beside them on a wider screen.
   A photo fills the space, but is never larger than it is; its shape is known before it comes. The page shows through a
   little (the owner, 2026-12-04), and less at the bottom, where the line about the photo stands. */
.viewer { --focus: #fff; position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: linear-gradient(transparent calc(100% - 7rem), rgb(18 13 38 / .85) calc(100% - 2rem)), rgb(18 13 38 / .85); color: #fff; }
.viewer[open] { display: grid; grid-template: ". . close" auto "strip strip strip" minmax(0, 1fr) "previous line next" auto / auto minmax(0, 1fr) auto; align-items: center; }
.viewer::backdrop { background: none; }
.viewer-strip { grid-area: strip; align-self: stretch; display: flex; overflow-x: auto; overscroll-behavior: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-strip div { flex: 0 0 100%; display: grid; place-items: center; container-type: size; padding-inline: .25rem; scroll-snap-align: center; scroll-snap-stop: always; }
.viewer-strip span { width: 100%; width: min(100cqw, 100cqh * var(--shape), var(--most)); max-height: 100%; aspect-ratio: var(--shape); background: center / contain no-repeat; }
.viewer-strip img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-line { grid-area: line; margin: 0; padding: .75rem .5rem; line-height: 1.35; text-align: center; }
.viewer-count { color: var(--violet-line); white-space: nowrap; }
.viewer-count::before { content: "· "; }
.viewer button { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: .35rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
@media (hover: hover) { .viewer button:hover { background: rgb(255 255 255 / .16); } }
.viewer button:focus-visible { outline-offset: -3px; }
.viewer button[aria-disabled=true] { background: transparent; opacity: .3; cursor: default; }
.viewer svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { grid-area: close; }
.viewer-previous { grid-area: previous; }
.viewer-next { grid-area: next; }
.viewer.is-single :is(.viewer-previous, .viewer-next) { visibility: hidden; }
.viewer.is-single .viewer-count { display: none; }
@media (min-width: 40.01rem) {
    .viewer[open] { grid-template: "previous strip next" minmax(0, 1fr) "line line line" auto / auto minmax(0, 1fr) auto; padding-top: .75rem; }
    .viewer-close { grid-area: next; align-self: start; }
}
html:has(> body > .viewer[open]) { overflow: hidden; padding-right: var(--scrollbar, 0); }
@media (prefers-reduced-motion: no-preference) {
    .viewer[open] { animation: viewer-in .18s ease-out; }
    @keyframes viewer-in { from { opacity: 0; } }
}

/* The messages of a form: their paragraphs bring no space of their own. */
.pohocms-form-field > p, :is(.pohocms-form-sent, .pohocms-form-notice) > :last-child { margin-bottom: 0; }
