/* Catalog style "demo25" — the album as DEPO Locals on a map: the site banner with four portraits, a grey OSM-Light map under a dark glass panel of speciality chips, posts as glass rows pinned with cluster rings. Mirrors /demo25/. */
/*
 * Layout: the masthead is the site's 8:3 page banner — a thin header bar (logo, the count as the
 * green "Join DEPO" pill), four portraits side by side under a dark left gradient, the yellow
 * kicker, "DEPO" in Lazurski, the lead and the three slide dashes. Below it a map stage: a light
 * grey map (CSS gradients: water, parks, roads) spans the page behind a left dark glass panel
 * (style picker = the city picker, categories = speciality chips with a coloured round code badge
 * and a count, tags = chips with a ring dot) and a single column of dark glass rows — the
 * screenshot on the left with a white cluster marker (split-colour conic ring) carrying the
 * number. One post = the person card: a dark slab that opens over the map. Lazurski / Poppins /
 * Lato like the site; the colophon is the site footer.
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600&display=swap");

@font-face { font-family: "Lazurski"; src: url("/_fonts/LazurskiRegular.woff2") format("woff2"), url("/_fonts/LazurskiRegular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lazurski"; src: url("/_fonts/LazurskiBold.woff2") format("woff2"), url("/_fonts/LazurskiBold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins DEPO"; src: url("/_fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --bg: #18171a;
    --s1: #27262b;
    --s2: #2d2c31;
    --slab: #1d1c20;
    --glass: rgb(24 23 26 / 0.92);
    --line: rgb(255 255 255 / 0.08);
    --line-2: rgb(255 255 255 / 0.16);
    --ink: #fff;
    --soft: rgb(255 255 255 / 0.84);
    --muted: #a1a1aa;
    --green: #469a58;
    --green-fill: #37804a;
    --green-text: #6fc283;
    --yellow: #ffb500;
    --map: #e4e4e2;
    --water: #cdd5da;
    --serif: "Lazurski", Georgia, serif;
    --label: "Poppins", "Poppins DEPO", system-ui, sans-serif;
    --text: "Lato", "Lato DEPO", system-ui, sans-serif;
    --r: 18px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* the cluster ring: declared where it is drawn, so each element's --rot applies */
.deco--2, .deco--3, .post__num, .doc h2::before, .comment::before { --ring: conic-gradient(from var(--rot, 0deg), #2f7d4f 0 28%, #d6457a 0 50%, #e0753a 0 66%, #8a5cd6 0 82%, #2d8fb3 0); }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.88em/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 40; padding: 10px 18px; border-radius: 10px; background: var(--yellow); color: var(--bg); font: 600 14px/1 var(--label); text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- shell: banner, then the map stage (panel + rows), then the footer ---------- */
.page {
    display: grid; min-height: 100vh;
    grid-template-columns: [full-start] minmax(16px, 1fr) [panel-start] 340px [panel-end] 28px [main-start] minmax(0, 960px) [main-end] minmax(16px, 1fr) [full-end];
    grid-template-rows: auto auto auto auto 1fr auto;
}
.masthead { grid-column: full; grid-row: 1; }
.stylebar { grid-column: panel; grid-row: 2; }
.categories { grid-column: panel; grid-row: 3; }
.tagcloud { grid-column: panel; grid-row: 4; }
.content { grid-column: main; grid-row: 2 / 6; min-width: 0; }
.colophon { grid-column: full; grid-row: 6; }

/* the map: grey OSM Light drawn with gradients */
.deco { display: none; }
.deco--1 {
    display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-color: var(--map);
    background-image:
        radial-gradient(ellipse 380px 240px at 6% 10%, var(--water) 0 55%, transparent 56%),
        radial-gradient(ellipse 520px 300px at 96% 62%, var(--water) 0 52%, transparent 53%),
        radial-gradient(ellipse 340px 520px at 52% 104%, var(--water) 0 50%, transparent 51%),
        radial-gradient(ellipse 260px 160px at 74% 18%, var(--water) 0 48%, transparent 49%),
        radial-gradient(circle 150px at 30% 38%, #d8ddd4 0 66%, transparent 67%),
        radial-gradient(circle 110px at 84% 34%, #d8ddd4 0 64%, transparent 65%),
        radial-gradient(circle 130px at 62% 78%, #d8ddd4 0 60%, transparent 61%),
        repeating-linear-gradient(28deg, transparent 0 178px, rgb(255 255 255 / 0.95) 178px 181px),
        repeating-linear-gradient(-62deg, transparent 0 236px, rgb(255 255 255 / 0.85) 236px 238px),
        repeating-linear-gradient(96deg, transparent 0 128px, rgb(0 0 0 / 0.05) 128px 129px);
}
/* two cluster markers resting on the map in the wide gutters */
.deco--2, .deco--3 {
    grid-column: main-end / full-end; grid-row: 3; z-index: 1; align-self: start; justify-self: center;
    width: 46px; height: 46px; margin-top: 140px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, #fff 0 60%, transparent 61%), var(--ring);
    box-shadow: 0 8px 18px -6px rgb(0 0 0 / 0.45);
}
.deco--3 { grid-column: full-start / panel-start; grid-row: 5; --rot: 140deg; width: 38px; height: 38px; margin-top: 60px; }
@media (min-width: 1500px) { .deco--2, .deco--3 { display: block; } }

/* ---------- masthead = site header bar + the page banner ---------- */
.masthead {
    position: relative; z-index: 2; display: flex; align-items: center; min-height: min(484px, calc(31.25vw + 64px)); padding: 64px 0 0; overflow: hidden;
    background:
        linear-gradient(90deg, rgb(24 23 26 / 0.95) 0%, rgb(24 23 26 / 0.74) 34%, rgb(24 23 26 / 0) 64%),
        linear-gradient(0deg, rgb(24 23 26 / 0.55), transparent 42%),
        url("/_img/photos/photo-04.jpg") 0% 64px / 25% auto no-repeat,
        url("/_img/photos/photo-05.jpg") 33.333% 64px / 25% auto no-repeat,
        url("/_img/photos/photo-06.jpg") 66.667% 64px / 25% auto no-repeat,
        url("/_img/photos/photo-07.jpg") 100% 64px / 25% auto no-repeat,
        #111;
    background-origin: border-box;
}
.masthead::before {
    content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 64px;
    background: url("/_img/site/logo/logo.png") max(16px, calc((100vw - 1328px) / 2)) center / 62px auto no-repeat, var(--bg);
    border-bottom: 1px solid rgb(255 255 255 / 0.04);
}
.masthead__inner {
    position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    width: 100%; max-width: 1360px; margin: 0 auto; padding: 44px max(16px, calc((100vw - 1328px) / 2)) 64px;
}
.masthead__inner::after {
    content: ""; position: absolute; left: max(16px, calc((100vw - 1328px) / 2)); bottom: 28px; width: 92px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--yellow) 0 28px, transparent 28px 32px, rgb(255 255 255 / 0.35) 32px 60px, transparent 60px 64px, rgb(255 255 255 / 0.35) 64px);
}
.brand, .masthead__tagline { position: relative; z-index: 2; }
.brand { display: flex; flex-direction: column-reverse; gap: 14px; text-decoration: none; }
.brand__name { color: var(--yellow); font: 600 13px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.brand__mark { font: 700 clamp(56px, 7.4vw, 108px)/0.92 var(--serif); letter-spacing: 0.005em; }
.brand:hover .brand__mark { color: #fff8e6; }
.masthead__tagline { max-width: 40ch; margin: 0; color: rgb(255 255 255 / 0.84); font-size: 18px; line-height: 1.5; }
.masthead__count {
    position: absolute; z-index: 3; top: 15px; right: max(16px, calc((100vw - 1328px) / 2)); display: inline-flex; align-items: center; gap: 6px;
    height: 34px; margin: 0; padding: 0 18px; border-radius: 50px; background: var(--green-fill); color: #fff; font: 400 14px/1 var(--serif); text-transform: uppercase; white-space: nowrap;
}
.masthead__num { font-weight: 700; }

/* ---------- the glass panel: style picker + categories + tags as one slab ---------- */
.stylebar, .categories, .tagcloud {
    position: relative; z-index: 2; background: var(--glass); border: 1px solid var(--line); border-block-width: 0;
}
.stylebar { margin-top: 24px; padding: 20px 18px 16px; border-top-width: 1px; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -10px 40px -24px rgb(0 0 0 / 0.5); }
.categories { padding: 4px 18px 16px; }
.tagcloud { padding: 4px 18px 20px; border-bottom-width: 1px; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 26px 50px -24px rgb(0 0 0 / 0.6); align-self: start; }
.catalog--post .categories { align-self: start; padding-bottom: 20px; border-bottom-width: 1px; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 26px 50px -24px rgb(0 0 0 / 0.6); }

.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stylebar__label { flex: 1; font: 700 30px/1 var(--serif); }
.stylebar__copy {
    height: 34px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--bg); font: 600 13px/1 var(--label); cursor: pointer;
    transition: filter 0.2s ease;
}
.stylebar__copy:hover { filter: brightness(1.08); }
.stylebar__copy.is-done { background: var(--green-fill); color: #fff; }
.stylebar__copy.is-done::before { content: "✓ "; }
.stylebar__value {
    order: 2; flex: 1 1 100%; min-width: 0; padding: 10px 12px; overflow-x: auto; white-space: nowrap; background: var(--s2); border: 1px solid var(--line-2); border-radius: 10px;
    color: #f1f1f1; font-size: 12.5px; scrollbar-width: thin;
}
.stylebar__list { order: 3; display: flex; flex-wrap: wrap; gap: 4px; width: 100%; max-height: 132px; margin-top: 2px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a393f transparent; }
.stylebar__item { padding: 5px 10px; border-radius: 999px; background: var(--s1); color: var(--soft); font: 500 12px/1.2 var(--label); text-decoration: none; transition: background 0.15s, color 0.15s; }
.stylebar__item:hover { background: var(--s2); color: #fff; }
.stylebar__item.is-active { background: #fff; color: var(--bg); }
.stylebar__item--uploaded { font-style: italic; }
.stylebar__tools { order: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.stylebar__guide, .stylebar__download, .stylebar__upload-toggle { color: var(--soft); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.stylebar__guide:hover, .stylebar__download:hover, .stylebar__upload-toggle:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.stylebar__guide { color: var(--green-text); font-weight: 700; }
.stylebar__download--addon { padding-left: 12px; color: var(--muted); font-size: 13px; }
.stylebar__upload { width: 100%; }
.stylebar__upload-toggle { display: inline-block; list-style: none; color: var(--yellow); }
.stylebar__upload-toggle::-webkit-details-marker { display: none; }
.stylebar__upload-toggle::before { content: "+ "; }
.stylebar__upload[open] .stylebar__upload-toggle::before { content: "− "; }
.upload-form { display: grid; gap: 6px; margin-top: 10px; }
.upload-form__label { color: var(--muted); font: 600 11px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; }
.upload-form__input, .upload-form__file { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--s2); color: #fff; font: 400 14px/1.3 var(--text); }
.upload-form__input:focus, .upload-form__file:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgb(70 154 88 / 0.3); }
.upload-form__submit { justify-self: start; margin-top: 4px; cursor: pointer; }
.upload-form__note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.stylebar__flash { order: 5; width: 100%; margin: 6px 0 0; }

/* categories = speciality chips: coloured round code badge + count */
.categories::before, .tagcloud__title {
    display: block; margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 600 11px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase;
}
.categories::before { content: "Category"; }
.categories__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.categories__link {
    --c: #5c5b62; --code: "··";
    display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 11px 5px 5px; border: 1px solid transparent; border-radius: 999px;
    background: var(--s2); color: var(--soft); font: 500 13px/1.2 var(--text); text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.categories__link::before { content: var(--code); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font: 600 9px/1 var(--label); letter-spacing: 0.02em; }
.categories__item:nth-child(2) .categories__link { --c: #2f7d4f; --code: "ED"; }
.categories__item:nth-child(3) .categories__link { --c: #c43b6c; --code: "3D"; }
.categories__item:nth-child(4) .categories__link { --c: #c4602a; --code: "GA"; }
.categories__item:nth-child(5) .categories__link { --c: #7a4fcc; --code: "CA"; }
.categories__item:nth-child(6) .categories__link { --c: #23799a; --code: "MA"; }
.categories__item:nth-child(7) .categories__link { --c: #b0334a; --code: "DE"; }
.categories__item:first-child .categories__link { padding-left: 13px; }
.categories__item:first-child .categories__link::before { display: none; }
.categories__link:hover { border-color: var(--c); color: #fff; }
.categories__count { color: var(--muted); font-size: 12px; }
.categories__link.is-active { background: #fff; color: var(--bg); font-weight: 700; }
.categories__link.is-active .categories__count { color: #3f3e44; }
.categories__item:first-child .categories__link.is-active { background: var(--green-fill); color: #fff; }
.categories__item:first-child .categories__link.is-active .categories__count { color: rgb(255 255 255 / 0.86); }

/* ---------- list: the map's people column as glass rows ---------- */
.content { position: relative; z-index: 2; padding: 24px 0 72px; }
.listing__header { margin-bottom: 16px; padding: 22px 24px 14px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 50px -26px rgb(0 0 0 / 0.55); }
.listing__title { margin: 0; font: 700 clamp(30px, 3.4vw, 44px)/1.04 var(--serif); }
.listing__intro { max-width: 62ch; margin: 8px 0 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__range { color: var(--yellow); font: 500 13px/1.3 var(--label); }
.toolbar__view { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: var(--s1); }
.toolbar__label { padding: 0 8px; font: 500 12px/1 var(--label); }
.toolbar__opt { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 10px; border-radius: 9px; color: var(--soft); font: 500 13px/1 var(--label); text-decoration: none; }
.toolbar__opt:hover { color: #fff; background: var(--s2); }
.toolbar__opt.is-active { background: #fff; color: var(--bg); }

.listing { display: flex; flex-direction: column; gap: 14px; }
.post--card {
    --rot: 0deg;
    position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); min-width: 0; padding: 10px;
    background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: 0 20px 44px -26px rgb(0 0 0 / 0.6); transition: border-color 0.25s ease, transform 0.25s ease;
}
.post--even { --rot: 160deg; }
.post--card:hover { border-color: rgb(111 194 131 / 0.5); transform: translateX(4px); }
.post__media { display: block; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #101012; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.post--card:hover .post__thumb { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; min-width: 0; padding: 8px 12px 6px 24px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
/* the number = a cluster marker on the screenshot's corner */
.post--card .post__num {
    position: absolute; z-index: 2; top: 18px; left: 278px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle, #fff 0 62%, transparent 63%), var(--ring); color: var(--bg); font: 600 11px/1 var(--label); letter-spacing: -0.01em;
    box-shadow: 0 8px 18px -6px rgb(0 0 0 / 0.55);
}
.post__cat { color: var(--green-text); font: 500 13px/1.3 var(--label); text-decoration: none; }
.post__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__title { order: -1; margin: 0 0 8px; font: 700 clamp(24px, 2.2vw, 30px)/1.12 var(--serif); }
.post__body { flex-direction: column; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--yellow); }
.post__excerpt { margin: 0 0 16px; color: var(--soft); font-size: 15.5px; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 10px;
    background: transparent; color: #fff; font: 600 14px/1 var(--label); text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: #fff; }
.btn--primary { border-color: var(--green-fill); background: var(--green-fill); }
.btn--primary:hover { border-color: #2f6e40; background: #2f6e40; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; width: fit-content; max-width: 100%; margin: 32px auto 0; padding: 4px; border-radius: 12px; background: var(--glass); box-shadow: 0 12px 30px -16px rgb(0 0 0 / 0.5); }
.pager__link { display: grid; place-items: center; min-width: 40px; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--soft); font: 500 13px/1 var(--label); text-decoration: none; }
.pager__link:hover { background: var(--s2); color: #fff; }
.pager__link.is-active { background: #fff; color: var(--bg); }

/* ---------- one post = the person card, opened over the map ---------- */
.post--full { overflow: hidden; background: var(--slab); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.65); }
.post--full > * { margin-left: 32px; margin-right: 32px; }
.post__header { padding: 30px 0 26px; }
.post--full .post__meta { gap: 6px 14px; margin-bottom: 14px; }
.post--full .post__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, #fff 0 60%, transparent 61%), var(--ring); color: var(--bg); font: 600 10.5px/1 var(--label); }
.post--full .post__cat { color: var(--yellow); font: 600 12px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; }
.post--full .post__title { margin: 0 0 12px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.post--full .post__excerpt { max-width: 60ch; margin-bottom: 22px; color: var(--soft); font-size: 18px; }
.post__shot { margin-bottom: 40px; }
.post__zoom { display: block; max-height: 640px; overflow: hidden; border-radius: 14px; background: #101012; box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; }
.post__zoom img { width: 100%; transition: opacity 0.25s ease; }
.post__zoom:hover img { opacity: 0.88; }
.post__caption { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.post__caption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 2px solid var(--green); border-radius: 50%; vertical-align: 0.05em; }

.doc { padding-bottom: 8px; color: var(--soft); font-size: 17px; line-height: 1.7; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 44px 0 12px; color: #fff; font: 700 30px/1.15 var(--serif); }
.doc h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 12px 0.12em 0; border-radius: 50%; background: radial-gradient(circle, var(--slab) 0 38%, transparent 40%), var(--ring); vertical-align: middle; }
.doc h3 { margin: 30px 0 8px; color: #fff; font: 600 19px/1.3 var(--label); }
.doc h4, .doc h5, .doc h6 { margin: 22px 0 6px; color: #fff; font: 600 16px/1.3 var(--label); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li::marker { color: var(--green-text); }
.doc strong { color: #fff; }
.doc a { color: var(--green-text); text-underline-offset: 3px; }
.doc a:hover { color: #a5e3b2; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--s2); color: #ffd27a; }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: #121114; border: 1px solid var(--line); border-radius: 12px; color: #e8e8ea; }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: var(--s1); color: var(--soft); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.doc img { border-radius: 12px; }
.doc-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--s2); color: var(--yellow); font: 600 11px/1.3 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; margin-bottom: 0; padding: 0; list-style: none; }
.tags__item { padding: 5px 12px; border-radius: 999px; background: var(--s2); color: var(--soft); font: 500 12.5px/1.2 var(--label); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; margin-bottom: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.post__nav-link { padding: 16px 18px; border-radius: 12px; background: var(--s1); font: 700 19px/1.25 var(--serif); text-decoration: none; transition: background 0.2s; }
.post__nav-link:hover { background: var(--s2); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--yellow); font: 600 11px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; }
.post__nav-link--newer .post__nav-label::before { content: "← "; }
.post__nav-link--older .post__nav-label::after { content: " →"; }
.catalog--guide .post__num { width: auto; padding: 0 14px; border-radius: 999px; }

/* notices */
.notice { position: relative; z-index: 2; padding: 16px 20px; background: var(--slab); border: 1px solid var(--line-2); border-left: 4px solid var(--yellow); border-radius: 12px; color: #fff; }
.notice p { margin: 0; }
.notice a { color: var(--green-text); }
.notice--ok { border-left-color: var(--green-text); }
.notice--error { border-left-color: #ff6b5b; color: #ffd6d0; }

/* colophon = the site footer */
.colophon {
    position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
    padding: 40px max(16px, calc((100vw - 1328px) / 2)) 48px; background: var(--bg); color: var(--muted); font-size: 14px;
}
.colophon::before { content: ""; flex: none; width: 184px; height: 42px; background: url("/_img/site/logo/logo-depo-place.svg") left center / contain no-repeat; }
.colophon p { margin: 0; }
.colophon__text { flex: 1; }
.colophon__text code { color: var(--yellow); }
.colophon__links a { color: var(--soft); text-underline-offset: 3px; }
.colophon__links a:hover { color: #fff; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: #fff; }
.zoom::backdrop { background: rgb(12 12 14 / 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom__bar { display: flex; justify-content: flex-end; height: 58px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.zoom__close { height: 34px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--bg); font: 600 13px/1 var(--label); cursor: pointer; }
.zoom__close:hover { filter: brightness(1.08); }
.zoom__scroll { height: calc(94vh - 58px); overflow: auto; }
.zoom__img { width: 100%; }

/* ---------- narrower: the panel above the rows, still over the map ---------- */
@media (max-width: 1100px) {
    .page { grid-template-columns: [full-start] 20px [panel-start main-start] minmax(0, 1fr) [panel-end main-end] 20px [full-end]; grid-template-rows: auto auto auto auto auto auto; }
    .content { grid-row: 5; padding-top: 20px; }
    .stylebar__list { max-height: none; }
    .stylebar__tools { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
    .stylebar__download--addon { padding-left: 0; }
}
@media (max-width: 860px) {
    .masthead {
        min-height: 0; padding-top: 64px;
        background:
            linear-gradient(0deg, rgb(24 23 26 / 1) 20%, rgb(24 23 26 / 0.62) 56%, rgb(24 23 26 / 0.12)),
            url("/_img/photos/photo-04.jpg") 0% 64px / 50% auto no-repeat,
            url("/_img/photos/photo-07.jpg") 100% 64px / 50% auto no-repeat,
            #111;
    }
    .masthead__inner { padding-top: 150px; padding-bottom: 56px; }
    .masthead__tagline { font-size: 16px; }
}
@media (max-width: 760px) {
    .post--card { grid-template-columns: minmax(0, 1fr); }
    .post--card .post__num { left: auto; right: 20px; top: 20px; width: 50px; height: 50px; }
    .post__body { padding: 16px 8px 6px; }
    .post--full > * { margin-left: 20px; margin-right: 20px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .toolbar__label { display: none; }
}
@media (max-width: 520px) {
    .page { grid-template-columns: [full-start] 12px [panel-start main-start] minmax(0, 1fr) [panel-end main-end] 12px [full-end]; }
    .masthead::before { background-size: 50px auto; }
    .masthead__count { height: 30px; padding: 0 12px; font-size: 12px; }
    .stylebar, .categories, .tagcloud { padding-left: 14px; padding-right: 14px; }
    .listing__header { padding: 18px 16px 12px; }
    .post--full .post__excerpt { font-size: 16px; }
    .doc { font-size: 16px; }
    .doc h2 { font-size: 25px; }
    .btn { padding: 0 14px; }
    .colophon::before { width: 150px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
    .post--card:hover { transform: none; }
    .post--card:hover .post__thumb { transform: none; }
}

/* long words and URLs in the doc and comments wrap instead of widening the page */
.doc p, .doc li, .doc blockquote, .doc td, .doc th, .comment__body { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
.doc td, .doc th { overflow-wrap: break-word; }
