/* Catalog style "demo33" — the album as the fastest DEPO sign-up: a two-line Lazurski promise beside one dark form card, numbered yellow step discs, green progress, chips and big green buttons. Mirrors /demo33/. */
/*
 * Layout: the top of every page is the demo's stage — left, the promise ("DEPO / Demo album."
 * in big Lazurski under a yellow Poppins kicker, the tagline as the lead) with the sections and
 * the tag cloud below it as steps 1 and 2 (chips); right, the style bar as the single dark
 * rounded form card: a green "progress" strip on top, the URL as a dark input field, Copy as the
 * big full-width green button, the styles as chips. The list is one column of form cards hung on
 * a vertical rail of numbered step discs (screenshot and text swap sides card by card); the
 * toolbar's "1–10 of 32" is a progress bar that fills as you page through. A post is a narrow
 * form: its Markdown headings carry numbered step discs, the rating is a form step.
 */
@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; }
/* self-hosted copies of the site's Lato / Poppins (used when Google Fonts is unreachable) */
@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;
    --surface: #27262b;
    --surface-2: #2f2e34;
    --field: #1f1e22;
    --line: rgb(255 255 255 / 0.08);
    --line-strong: rgb(255 255 255 / 0.16);
    --ink: #ffffff;
    --soft: rgb(255 255 255 / 0.76);
    --muted: #a1a1aa;
    --green: #469a58;
    --green-fill: #37804a;
    --green-deep: #2e6e3f;
    --green-text: #6cc180;
    --yellow: #ffb500;
    --text: "Lato", "Lato DEPO", system-ui, sans-serif;
    --label: "Poppins", "Poppins DEPO", system-ui, sans-serif;
    --serif: "Lazurski", Georgia, "Times New Roman", serif;
    --card-r: 22px;
    --field-r: 12px;
    --rail: 64px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
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; }
::selection { background: var(--green-fill); color: #fff; }

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

/* ---------- the stage: promise left, the form card right ---------- */
.page {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-rows: auto auto auto 1fr;
    column-gap: 64px; max-width: 1288px; margin: 0 auto; padding: 0 24px;
}
.masthead { grid-column: 1; grid-row: 1; }
.categories { grid-column: 1; grid-row: 2; }
.tagcloud { grid-column: 1; grid-row: 3; align-self: start; }
.stylebar { grid-column: 2; grid-row: 1 / 5; align-self: start; }
.content { grid-column: 1 / -1; grid-row: 5; min-width: 0; }
.colophon { grid-column: 1 / -1; grid-row: 6; }

/* masthead = the promise */
.masthead { padding: 72px 0 0; }
.masthead__inner { display: flex; flex-direction: column; align-items: flex-start; }
.masthead__count { order: -1; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--yellow); font: 600 13px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.masthead__num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 50px; background: var(--surface-2); color: var(--yellow); font: 600 12px/1 var(--label); letter-spacing: 0; }
.brand { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.brand__mark, .brand__name { font: 700 clamp(48px, 6.4vw, 92px)/0.98 var(--serif); letter-spacing: -0.01em; }
.brand__name::after { content: "."; }
.brand:hover .brand__name { color: var(--green-text); }
.masthead__tagline { max-width: 44ch; margin: 24px 0 0; color: var(--soft); font: 400 18px/1.6 var(--text); }

/* steps 1 and 2: sections and tags as chips */
.categories { margin: 36px 0 0; }
.categories::before, .tagcloud__title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: rgb(255 255 255 / 0.88);
    font: 600 13px/1.2 var(--label); letter-spacing: 0.02em;
}
.categories::before { content: "Choose a section"; }
.categories::before { min-height: 26px; padding-left: 38px; background: radial-gradient(circle at 13px 50%, var(--surface-2) 12.5px, transparent 13px) no-repeat; }
.categories__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.categories__link {
    display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 16px; border: 1px solid var(--line-strong); border-radius: 21px;
    color: rgb(255 255 255 / 0.84); font: 400 14px/1 var(--text); text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.categories__link:hover { border-color: rgb(255 255 255 / 0.42); color: #fff; }
.categories__link.is-active { background: var(--green-fill); border-color: var(--green-fill); color: #fff; font-weight: 700; }
.categories__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--field); color: var(--yellow); font: 600 11px/1 var(--label); }
.categories__link.is-active .categories__count { background: rgb(0 0 0 / 0.25); color: #fff; }

/* the step number in its dark disc (".categories" = 1; the tag cloud's own is in demo33_tags.css) */
.categories { position: relative; }
.categories::after { content: "1"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; color: var(--yellow); font: 600 12px/1 var(--label); }

/* ---------- the style bar = the form card ---------- */
.stylebar {
    position: relative; margin: 72px 0 0; padding: 30px 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-r);
    box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8);
}
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.stylebar__label { flex: 1 1 auto; margin: 0; color: var(--ink); font: 700 34px/1.1 var(--serif); }
.stylebar__label::after { content: " this album"; }
/* the "Profile 0 %" strip: here the look is fully on */
.stylebar__inner::before {
    content: "Look · demo33 · 100 %"; order: 1; display: block; width: 100%; height: 22px; margin: 18px 0 22px; padding-left: 12px; border-radius: 11px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-fill)); color: #fff; font: 600 11.5px/22px var(--label); letter-spacing: 0.06em; text-transform: uppercase;
}
.stylebar__value {
    order: 2; display: block; flex: 1 1 100%; min-width: 0; height: 50px; padding: 0 16px; overflow-x: auto; overflow-y: hidden; white-space: nowrap;
    background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--field-r); color: #e9f5ec; font-size: 14px; line-height: 48px; scrollbar-width: thin;
}
.stylebar__copy {
    order: 3; width: 100%; height: 56px; margin: 12px 0 0; border: 0; border-radius: 14px; background: var(--green-fill); color: #fff;
    font: 600 16px/1 var(--label); letter-spacing: 0.02em; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.stylebar__copy::after { content: " the link"; }
.stylebar__copy:hover { background: var(--green-deep); }
.stylebar__copy:active { transform: translateY(1px); }
.stylebar__copy.is-done { background: var(--yellow); color: var(--bg); }
.stylebar__copy.is-done::after { content: ""; }
.stylebar__list { order: 4; display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 22px 0 0; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.stylebar__list::before { content: "Other looks"; width: 100%; margin-bottom: 6px; color: rgb(255 255 255 / 0.88); font: 600 13px/1.2 var(--label); }
.stylebar__item {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 17px;
    color: rgb(255 255 255 / 0.8); font: 400 13px/1 var(--text); text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.stylebar__item:hover { border-color: rgb(255 255 255 / 0.42); color: #fff; }
.stylebar__item.is-active { background: var(--green-fill); border-color: var(--green-fill); color: #fff; font-weight: 700; }
.stylebar__item--uploaded { font-style: italic; }
.stylebar__tools { order: 5; display: flex; flex-wrap: wrap; gap: 10px 18px; width: 100%; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.stylebar__guide, .stylebar__download, .stylebar__upload-toggle { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; overflow-wrap: anywhere; }
.stylebar__guide { flex-basis: 100%; font: 600 15px/1.3 var(--label); }
.stylebar__guide::after { content: " →"; }
.stylebar__guide--uk { flex-basis: auto; font: 400 14px/1.4 var(--text); }
.stylebar__guide--uk::after { content: ""; }
.stylebar__download { color: rgb(255 255 255 / 0.8); }
.stylebar__download--addon { font-size: 13px; color: var(--muted); }
.stylebar__guide:hover, .stylebar__download:hover, .stylebar__upload-toggle:hover { color: #fff; }
.stylebar__upload { width: 100%; }
.stylebar__upload-toggle { display: inline-block; list-style: none; font: 600 15px/1.3 var(--label); }
.stylebar__upload-toggle::-webkit-details-marker { display: none; }
.stylebar__upload-toggle::before { content: ""; }
.stylebar__upload-toggle::after { content: " ↓"; }
.stylebar__upload[open] .stylebar__upload-toggle::after { content: " ↑"; }
.upload-form { display: grid; gap: 8px; margin-top: 14px; }
.upload-form__label { color: rgb(255 255 255 / 0.88); font: 600 13px/1.2 var(--label); }
.upload-form__input, .upload-form__file { width: 100%; min-width: 0; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--field-r); background: var(--field); color: #fff; font: 400 15px/1.3 var(--text); }
.upload-form__input::placeholder { color: rgb(255 255 255 / 0.45); }
.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.5); }
.upload-form__submit { margin-top: 6px; width: 100%; }
.upload-form__note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.stylebar__flash { order: 6; width: 100%; margin: 16px 0 0; }

/* ---------- list ---------- */
.content { padding: 88px 0 72px; }
.listing__header { margin-bottom: 40px; }
.listing__title { margin: 0; font: 700 clamp(38px, 4.4vw, 60px)/1.02 var(--serif); }
.listing__intro { max-width: 62ch; margin: 14px 0 0; color: var(--soft); font-size: 17px; }

/* the toolbar: "1–10 of 32" as the profile progress bar, per page as chips */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__range {
    --fill: 22%;
    position: relative; flex: 1 1 320px; max-width: 560px; height: 22px; overflow: hidden; padding-left: 12px; border-radius: 11px; background: var(--surface-2);
    color: #fff; font: 600 11.5px/22px var(--label); letter-spacing: 0.06em; text-transform: uppercase; isolation: isolate;
}
.toolbar__range::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--fill); background: linear-gradient(90deg, var(--green-deep), var(--green-fill)); }
.toolbar__range::after { content: " shown"; }
.content:has(.pager__link--prev) .toolbar__range { --fill: 58%; }
.content:has(.pager__link--prev):not(:has(.pager__link--next)) .toolbar__range,
.content:not(:has(.pager)) .toolbar__range { --fill: 100%; }
.toolbar__view { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 6px; font: 600 13px/1 var(--label); color: rgb(255 255 255 / 0.88); }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 20px; color: rgb(255 255 255 / 0.84); font: 600 13px/1 var(--label); text-decoration: none; }
.toolbar__opt:hover { border-color: rgb(255 255 255 / 0.42); color: #fff; }
.toolbar__opt.is-active { background: var(--green-fill); border-color: var(--green-fill); color: #fff; }

/* the listing: one column of form cards on a rail of numbered step discs */
.listing { position: relative; display: grid; gap: 28px; counter-reset: card; }
.listing::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--green), rgb(70 154 88 / 0.12)); }
.post--card {
    position: relative; isolation: isolate; counter-increment: card; display: grid; min-width: 0;
    grid-template-columns: var(--rail) minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "rail media body"; align-items: stretch;
}
.post--card::before {
    content: counter(card); grid-area: rail; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 26px;
    border: 4px solid var(--bg); border-radius: 50%; background: var(--surface-2); color: var(--yellow); font: 600 15px/1 var(--label);
    box-shadow: 0 0 0 1px var(--line-strong);
}
.post--card::after {
    content: ""; position: absolute; inset: 0 0 0 var(--rail); z-index: -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-r);
    box-shadow: 0 40px 80px -48px rgb(0 0 0 / 0.85); transition: border-color 0.25s ease;
}
.post--card:hover::after { border-color: rgb(70 154 88 / 0.55); }
.post--card:hover::before { background: var(--green-fill); color: #fff; }
.post--even { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "rail body media"; }
.post__media { grid-area: media; display: block; align-self: start; margin: 14px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--field); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s ease; }
.post--card:hover .post__thumb { transform: scale(1.025); }
.post__body { grid-area: body; display: flex; flex-direction: column; min-width: 0; padding: 32px 34px 30px; }
.post--even .post__body { padding: 32px 20px 30px 38px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.post__num { color: var(--yellow); font: 600 12.5px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.post__cat { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 14px; color: rgb(255 255 255 / 0.86); font-size: 13px; text-decoration: none; }
.post__cat:hover { border-color: var(--green); color: #fff; }
.post__date { font-size: 13px; }
.post__title { margin: 0 0 12px; font: 700 clamp(30px, 2.6vw, 38px)/1.08 var(--serif); }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--green-text); }
.post__excerpt { margin: 0 0 24px; color: var(--soft); font-size: 16px; line-height: 1.65; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: auto 0 0; }

/* buttons: the big green "Quick sign-up" and the yellow "Fill in my profile now" link */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none;
    color: var(--yellow); font: 600 15px/1.2 var(--label); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer;
}
.btn:hover { color: #fff; }
.btn--primary {
    min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--green-fill); color: #fff; text-decoration: none; letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s;
}
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.post--card .post__open { order: -1; }
.post--card .post__more::after { content: " →"; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0 var(--rail); }
.pager__link {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50%; background: var(--surface-2); color: var(--yellow);
    font: 600 14px/1 var(--label); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.pager__link:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); color: #fff; }
.pager__link.is-active { background: var(--green-fill); color: #fff; }
.pager__link--prev, .pager__link--next { padding: 0 20px; border-radius: 22px; background: none; box-shadow: 0 0 0 1px var(--line-strong); color: #fff; }
.pager__link--prev::before { content: "← "; white-space: pre; }
.pager__link--next::after { content: " →"; white-space: pre; }

/* ---------- one post (and the guide): a narrow form ---------- */
.catalog--post .content { padding-top: 80px; }
.post--full { max-width: 880px; margin: 0 auto; }
.post__header { padding: 0 0 36px; }
.post--full .post__meta { margin-bottom: 18px; }
.post--full .post__title { margin: 0 0 18px; font-size: clamp(44px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.01em; }
.post--full .post__excerpt { max-width: 60ch; margin-bottom: 28px; font-size: 18px; line-height: 1.6; }
.post--full .post__actions { gap: 14px 26px; }
.post__shot { margin: 0 0 56px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8); }
.post__zoom { display: block; max-height: 680px; overflow: hidden; border-radius: 14px; background: var(--field); cursor: zoom-in; }
.post__zoom img { width: 100%; transition: opacity 0.3s ease; }
.post__zoom:hover img { opacity: 0.88; }
.post__caption { padding: 12px 4px 0; color: var(--muted); font-size: 13.5px; }

/* the doc: every h2 is a numbered step */
.doc { counter-reset: step; color: rgb(255 255 255 / 0.84); font-size: 17px; line-height: 1.7; }
.doc > :first-child { margin-top: 0; }
.doc h2 { counter-increment: step; display: flex; align-items: center; gap: 14px; margin: 56px 0 16px; color: var(--ink); font: 700 32px/1.12 var(--serif); }
.doc h2::before {
    content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2);
    color: var(--yellow); font: 600 14px/1 var(--label);
}
.doc h3 { margin: 34px 0 10px; color: var(--ink); font: 600 19px/1.3 var(--label); }
.doc h4, .doc h5, .doc h6 { margin: 26px 0 8px; color: var(--ink); font: 600 16px/1.3 var(--label); }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green-text); }
.doc strong { color: var(--ink); }
.doc a { color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doc a:hover { color: #fff; }
.doc code { padding: 2px 7px; background: var(--field); border: 1px solid var(--line); border-radius: 7px; color: #ffd27a; }
.doc pre {
    margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; background: var(--field); border: 1px solid var(--line-strong); border-radius: 14px;
    color: #dcefe1; font-size: 14px; line-height: 1.6;
}
.doc pre code { padding: 0; background: none; border: 0; color: inherit; }
.doc pre:focus-visible { outline-offset: 2px; }
.doc blockquote { margin: 0 0 20px; padding: 16px 22px; border-left: 3px solid var(--green); border-radius: 0 14px 14px 0; background: var(--surface); color: var(--soft); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px dashed var(--line-strong); }
.doc img { border-radius: 14px; }
.doc-table { margin: 0 0 22px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--field); color: var(--yellow); font: 600 12px/1.3 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.doc td:first-child { color: var(--ink); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags__item { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 17px; color: rgb(255 255 255 / 0.84); font-size: 14px; }

.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 32px; border-top: 1px dashed var(--line-strong); }
.post__nav-link { display: block; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font: 700 22px/1.2 var(--serif); text-decoration: none; transition: border-color 0.2s; }
.post__nav-link:hover { border-color: rgb(70 154 88 / 0.6); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--yellow); font: 600 12px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.post__nav-link--newer .post__nav-label::before { content: "← "; }
.post__nav-link--older .post__nav-label::after { content: " →"; }

/* the guide: the post markup without a screenshot */
.catalog--guide .post__cat { border-color: var(--yellow); color: var(--yellow); }

/* notices */
.notice { position: relative; padding: 18px 22px 18px 62px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; color: var(--soft); }
.notice::before { content: "!"; position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--yellow); font: 600 13px/1 var(--label); }
.notice p { margin: 0; }
.notice a { color: var(--yellow); text-underline-offset: 4px; }
.notice--ok { border-color: rgb(70 154 88 / 0.6); }
.notice--ok::before { content: "✓"; background: var(--green-fill); color: #fff; }
.notice--error { border-color: #ef6b5b; color: #ffd2cc; }
.notice--error::before { background: #ef6b5b; color: var(--bg); }

/* colophon: the site footer's beta line */
.colophon { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; text-align: center; }
.colophon p { margin: 0; }
.colophon__text code { color: var(--yellow); }
.colophon__links a { color: rgb(255 255 255 / 0.86); text-underline-offset: 4px; }
.colophon__links a:hover { color: var(--yellow); }
.colophon::after { content: "We are in beta"; margin-top: 8px; padding: 9px 20px; border: 1px solid var(--yellow); border-radius: 50px; color: var(--yellow); font: 700 13px/1 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--card-r); background: var(--bg); color: var(--ink); }
.zoom::backdrop { background: rgb(12 12 14 / 0.86); }
.zoom__bar { display: flex; justify-content: flex-end; height: 68px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.zoom__close { height: 44px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--green-fill); color: #fff; font: 600 15px/1 var(--label); cursor: pointer; }
.zoom__close:hover { background: var(--green-deep); }
.zoom__scroll { height: calc(94vh - 68px); overflow: auto; }
.zoom__img { width: 100%; }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
    .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .masthead, .stylebar, .categories, .tagcloud, .content, .colophon { grid-column: 1; grid-row: auto; }
    .masthead { padding-top: 48px; }
    .stylebar { margin-top: 36px; max-width: 640px; }
    .categories { margin-top: 36px; }
    .content { padding-top: 64px; }
    .post--card, .post--even { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
    .post--card, .post--even { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-areas: "rail media" "rail body"; }
    .post__media { margin: 12px 12px 0; }
    .post__body, .post--even .post__body { padding: 22px 24px 26px; }
}
@media (max-width: 600px) {
    :root { --rail: 0px; }
    .page { padding: 0 16px; }
    .masthead { padding-top: 36px; }
    .brand__mark, .brand__name { font-size: 46px; }
    .masthead__tagline { font-size: 16px; }
    .stylebar { padding: 22px 16px; border-radius: 18px; }
    .stylebar__label { font-size: 28px; }
    .listing { gap: 20px; }
    .listing::before { display: none; }
    .post--card, .post--even { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; }
    .post--card::before { position: absolute; z-index: 1; left: 18px; top: 18px; margin: 0; width: 40px; height: 40px; border-width: 3px; border-color: var(--surface); }
    .post__media { margin: 10px 10px 0; border-radius: 14px; }
    .post__body, .post--even .post__body { padding: 20px 18px 22px; }
    .post__actions { gap: 12px 18px; }
    .post--card .post__open { width: 100%; }
    .post--full .post__title { font-size: 44px; }
    .post--full .post__excerpt { font-size: 16px; }
    .post__shot { padding: 8px; border-radius: 18px; }
    .doc { font-size: 16px; }
    .doc h2 { gap: 12px; font-size: 26px; }
    .doc h2::before { width: 30px; height: 30px; font-size: 13px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .pager { margin-left: 0; }
    .toolbar__range { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
    .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; }
