/* 1Kids.uz blog: article page, its blocks, article cards, the index. Needs tokens.css and base.css first
   Copied by the build as is, linked only on blog pages and on pages that show article cards (home, city pages), so a
   site without articles never loads it. Contract: README.md, Blog. Breakpoints as in base.css: 600, 1024, 1200 */

/* ---------- Article page: one column on phones; from 1024 the text column and a sticky contents aside ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
.article-head, .article-note, .article-body, .toc { max-width: 46rem; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); }
.article-cat, .article-city { position: relative; display: inline-flex; align-items: center; min-height: 32px; }
.article-cat { color: var(--c-brand); font-weight: var(--fw-semibold); }
.article-cat::after, a.article-city::after { content: ""; position: absolute; inset: -6px -4px; }   /* 44 px target */
.article-city { color: var(--c-ink-2); }
.article-city::before { content: "·"; margin-right: 8px; color: var(--c-ink-3); }
.article-cat:hover, a.article-city:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-title {
  margin-top: 2px;
  font-size: 1.875rem; line-height: 2.25rem;
  font-weight: var(--fw-display); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.article-lede { margin-top: 14px; color: var(--c-ink-2); font-size: 1.125rem; line-height: 1.75rem; text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: 14px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.article-meta > span + span::before { content: "·"; margin-right: 8px; }
.article-note { margin-top: 20px; }
.article-body { min-width: 0; }
.article-aside { display: none; }
@media (min-width: 600px) {
  .article-title { font-size: 2.25rem; line-height: 2.75rem; }
  .article-lede { font-size: 1.1875rem; line-height: 1.875rem; }
}
@media (min-width: 1024px) {
  .article {
    grid-template-columns: minmax(0, 46rem) 16.25rem; column-gap: 72px;
    grid-template-areas: "head ." "note aside" "body aside";
    padding-top: 12px;
  }
  .article-head { grid-area: head; }
  .article-note { grid-area: note; margin-top: 28px; }
  .article-body { grid-area: body; }
  .article-aside { display: block; grid-area: aside; }
  .toc { display: none; }
  .article-title { font-size: 2.75rem; line-height: 3.25rem; }
  .article-lede { margin-top: 16px; font-size: 1.25rem; line-height: 2rem; }
  .article-meta { margin-top: 18px; }
}
@media (min-width: 1200px) { .article { column-gap: 96px; } }

/* ---------- Contents: a closed disclosure on phones and tablets, a sticky list beside the text on desktop ---------- */
.toc { margin-top: 20px; }
.toc-box { border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.toc-btn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: var(--fw-semibold); }
.toc-n {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: var(--r-pill); background: var(--c-bg-soft); color: var(--c-ink-2);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums;
}
.toc-chevron { margin-left: auto; color: var(--c-ink-2); transition: transform var(--dur) var(--ease); }
.toc-box[open] .toc-chevron { transform: rotate(180deg); }
.toc-box .toc-list { padding: 0 16px 6px; }
.toc-list { counter-reset: toc; }
.toc-list > li { counter-increment: toc; border-top: 1px solid var(--c-line); }
.toc-link { display: flex; gap: 10px; min-height: var(--tap); padding: 11px 0; font-size: 0.9375rem; line-height: 1.375rem; }
.toc-link::before { content: counter(toc); flex: none; min-width: 16px; color: var(--c-ink-3); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.toc-link:hover { color: var(--c-brand); }
.toc-side { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; }
.toc-side-title { margin-bottom: 8px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.toc-side .toc-list > li { border-top: 0; }
.toc-side .toc-link {
  min-height: 0; padding: 7px 0 7px 14px;
  border-left: 2px solid var(--c-line);
  color: var(--c-ink-2); font-size: 0.875rem; line-height: 1.25rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc-side .toc-link::before { display: none; }
.toc-side .toc-link:hover { color: var(--c-ink); border-left-color: var(--c-ink-3); }

/* ---------- Text: sections, subsections, paragraphs, lists, citation marks ---------- */
.atext { font-size: 1.0625rem; line-height: 1.75rem; }
.atext > p, .atext > ul, .atext > ol { margin-top: 16px; }
.atext a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.atext a:hover { text-decoration-thickness: 2px; }
.atext strong { font-weight: var(--fw-strong); }
.atext li { position: relative; padding-left: 22px; }
.atext li + li { margin-top: 8px; }
.atext ul > li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand); }
.atext ol { counter-reset: item; }
.atext ol > li { counter-increment: item; padding-left: 28px; }
.atext ol > li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--c-ink-3); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.ah2 {
  margin-top: 44px;
  font-size: 1.5rem; line-height: 1.875rem;
  font-weight: var(--fw-display); letter-spacing: var(--ls-title);
  text-wrap: balance;
}
.ah2 + .atext > :first-child { margin-top: 12px; }
.ah3 { margin-top: 28px; font-size: 1.1875rem; line-height: 1.625rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); text-wrap: balance; }
.ah3 + .atext > :first-child { margin-top: 8px; }
.article-body > :first-child > .ah2:first-child { margin-top: 32px; }
/* Citation: a small raised number that never stretches the line; several share one mark: 3, 4 */
.cite { margin-left: 1px; font-size: 0.68em; line-height: 0; vertical-align: super; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cite a { color: var(--c-brand); text-decoration: none; }
.cite a:hover { text-decoration: underline; }
@media (min-width: 1024px) {
  .atext { font-size: 1.125rem; line-height: 1.875rem; }
  .atext > p, .atext > ul, .atext > ol { margin-top: 18px; }
  .ah2 { margin-top: 56px; font-size: 1.75rem; line-height: 2.25rem; }
  .ah3 { margin-top: 32px; font-size: 1.3125rem; line-height: 1.75rem; }
  .article-body > :first-child > .ah2:first-child { margin-top: 44px; }
}

/* ---------- Fact: a key number or finding, large, with its source ---------- */
.afact { margin: 36px 0 0; padding-top: 16px; border-top: 3px solid var(--c-brand); }
.afact-text { font-size: 1.375rem; line-height: 1.875rem; font-weight: var(--fw-semibold); letter-spacing: -0.012em; text-wrap: pretty; }
.afact-text > p + p { margin-top: 10px; }
.afact-text strong { color: var(--c-brand); font-weight: var(--fw-heavy); }
.asrc { margin-top: 10px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.asrc-n { color: var(--c-brand); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.asrc-n:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .afact { margin-top: 44px; padding-top: 20px; }
  .afact-text { font-size: 1.625rem; line-height: 2.25rem; }
}

/* ---------- Quote: guidance wording of a source, a rule on the left ---------- */
.aquote { margin: 36px 0 0; padding-left: 20px; border-left: 3px solid var(--c-ink); }
.aquote-text { font-size: 1.1875rem; line-height: 1.75rem; font-weight: var(--fw-medium); text-wrap: pretty; }
.aquote-text > p + p { margin-top: 10px; }
.aquote-text > p:first-child::before { content: "«"; }
.aquote-text > p:last-child::after { content: "»"; }
@media (min-width: 1024px) {
  .aquote { margin-top: 44px; padding-left: 24px; }
  .aquote-text { font-size: 1.3125rem; line-height: 2rem; }
}

/* ---------- Tip: a practical tip or life hack on a tinted panel ---------- */
.atip { margin-top: 32px; padding: 18px 20px 20px; border-radius: var(--r-l); background: var(--c-brand-soft); }
.atip-kicker { color: var(--c-brand); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.atip-title { margin-top: 4px; font-size: 1.125rem; line-height: 1.5rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.atip-text { color: var(--c-ink-2); line-height: 1.625rem; }
.atip-text > p { margin-top: 8px; }
.atip-text strong { color: var(--c-ink); font-weight: var(--fw-strong); }
.atip-text ul > li, .atip-text ol > li { position: relative; margin-top: 6px; padding-left: 18px; }
.atip-text ul > li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-brand); }
@media (min-width: 1024px) { .atip { margin-top: 40px; padding: 22px 28px 24px; } .atip-text { font-size: 1.0625rem; line-height: 1.75rem; } }

/* ---------- Checklist: what to take, what to check ---------- */
.acheck { margin-top: 32px; padding: 18px 20px 20px; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.acheck-title { font-size: 1.125rem; line-height: 1.5rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.acheck-list { display: grid; gap: 10px; margin-top: 14px; }
.acheck-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; line-height: 1.5rem; }
.acheck-item > .icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); stroke-width: 2.6; }
@media (min-width: 600px) { .acheck-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1024px) { .acheck { margin-top: 40px; padding: 22px 28px 24px; } .acheck-item { font-size: 1.0625rem; line-height: 1.625rem; } }

/* ---------- Table: hairline table from 600; on phones each row is a block with the head words as labels ---------- */
.atable { margin-top: 32px; }
.atable table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.375rem; }
.atable caption { padding-bottom: 12px; font-size: 1.0625rem; line-height: 1.5rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); text-align: left; text-wrap: balance; }
.atable th, .atable td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.atable th:last-child, .atable td:last-child { padding-right: 0; }
.atable thead th { padding-top: 0; padding-bottom: 8px; border-bottom-color: var(--c-line-strong); color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-semibold); }
.atable tbody th { font-weight: var(--fw-semibold); white-space: nowrap; }
.atable td { color: var(--c-ink-2); }
@media (max-width: 599.98px) {
  .atable table, .atable tbody { display: block; }
  .atable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .atable caption { display: block; }
  .atable tr { display: grid; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .atable tbody tr:first-child { border-top: 1px solid var(--c-line-strong); }
  .atable tbody th, .atable td { padding: 0; border: 0; }
  .atable td::before { content: attr(data-label); display: block; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-medium); }
}
@media (min-width: 1024px) { .atable { margin-top: 40px; } .atable table { font-size: 1rem; line-height: 1.5rem; } }

/* ---------- Places: catalog cards from data, two per row from 600 inside the text column ---------- */
.aplaces-intro { margin-top: 12px; color: var(--c-ink-2); line-height: 1.625rem; }
.aplaces .listings { margin-top: 16px; }
@media (min-width: 600px) { .article-body .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .aplaces-intro { font-size: 1.0625rem; line-height: 1.75rem; } }

/* ---------- Place: the article's words about one place inside its card. Photo on top on phones, beside from 600 ---------- */
.aplace {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "head" "text" "foot";
  margin-top: 16px; overflow: hidden;
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.aplaces + .aplace, .aplace + .aplace { margin-top: 16px; }
.aplace-media { grid-area: media; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-sunken); }
.aplace-media > picture { display: contents; }
.aplace-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.aplace-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-img-edge); pointer-events: none; }
.aplace-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 16px 16px 0; }
.aplace-title { font-size: 1.25rem; line-height: 1.625rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.aplace-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aplace-meta { color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.aplace-text { grid-area: text; padding: 10px 16px 0; line-height: 1.625rem; }
.aplace-text > p + p { margin-top: 10px; }
.aplace-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 16px 0; padding: 12px 0 14px; border-top: 1px solid var(--c-line); }
.aplace-foot .listing-price { align-items: flex-start; margin-left: 0; text-align: left; }
.aplace-more { margin: -10px -6px -10px auto; }
@media (min-width: 600px) {
  .aplace.has-media { grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "head media" "text media" "foot foot"; }
  .aplace.has-media .aplace-media { align-self: start; margin: 16px 16px 0 0; aspect-ratio: 4 / 3; border-radius: var(--r-m); }
}
@media (min-width: 1024px) {
  .aplace.has-media { grid-template-columns: minmax(0, 1fr) 232px; }
  .aplace-head, .aplace-text { padding-left: 20px; padding-right: 20px; }
  .aplace-head { padding-top: 20px; }
  .aplace.has-media .aplace-media { margin: 20px 20px 0 0; }
  .aplace-foot { margin: 16px 20px 0; padding-bottom: 16px; }
  .aplace-text { font-size: 1.0625rem; line-height: 1.75rem; }
}

/* ---------- FAQ inside the article (design block 11 parts) ---------- */
.afaq .faq-list { margin-top: 12px; }

/* ---------- Call to action: the catalog page the article leads to ---------- */
.acta { display: grid; gap: 14px; margin-top: 40px; padding: 20px; border-radius: var(--r-l); background: var(--c-bg-soft); }
.acta-text { font-size: 1.0625rem; line-height: 1.5rem; font-weight: var(--fw-semibold); text-wrap: pretty; }
.acta-btn > .icon { margin: 0 -4px 0 0; }
@media (max-width: 599.98px) { .acta-btn { width: 100%; } }
@media (min-width: 600px) { .acta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 24px 28px; } }
@media (min-width: 1024px) { .acta { margin-top: 48px; } .acta-text { font-size: 1.125rem; line-height: 1.625rem; } }

/* ---------- Sources: numbered, linked, with the check date; then the error report ---------- */
.asources { margin-top: 8px; }
.asources-sub { margin-top: 6px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.src-list { margin-top: 14px; border-top: 1px solid var(--c-line); }
.src { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--c-line); scroll-margin-top: 16px; }
.src:target { background: var(--c-brand-soft); box-shadow: -10px 0 0 var(--c-brand-soft), 10px 0 0 var(--c-brand-soft); }
.src-n { color: var(--c-ink-3); font-size: var(--fs-small); line-height: 1.375rem; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.src-title { font-size: 0.9375rem; line-height: 1.375rem; font-weight: var(--fw-semibold); }
.src-title a { text-decoration: underline; text-decoration-color: var(--c-line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.src-title a:hover { text-decoration-color: currentColor; }
.src-meta { margin-top: 3px; color: var(--c-ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.src-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.src-doi { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.src-kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-xs); background: var(--c-bg-soft); color: var(--c-ink-2); font-size: var(--fs-micro); font-weight: var(--fw-semibold); }
.asources-fix { margin-top: 12px; }
.asources-fix .more { margin: 0; padding: 0; gap: 6px; }
@media (min-width: 1024px) { .src { scroll-margin-top: calc(var(--header-h) + 16px); } .src-title { font-size: 1rem; line-height: 1.5rem; } }

/* ---------- Article card: index, related, latest. Text first, the whole card is one link ---------- */
.post {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; height: 100%; padding: 18px 18px 16px;
  border-radius: var(--r-l);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: box-shadow var(--dur) var(--ease);
}
.post-kicker { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); }
.post-cat { color: var(--c-brand); font-weight: var(--fw-semibold); }
.post-city { color: var(--c-ink-3); }
.post-city::before { content: "·"; margin-right: 8px; }
.post-title {
  margin-top: 8px;
  font-size: 1.125rem; line-height: 1.5rem;
  font-weight: var(--fw-strong); letter-spacing: var(--ls-tight);
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.post-link:focus-visible { outline: 0; }
.post-link:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.post-text {
  margin-top: 6px;
  color: var(--c-ink-2); font-size: var(--fs-small); line-height: var(--lh-small);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; flex-wrap: wrap; column-gap: 8px; margin-top: auto; padding-top: 14px; color: var(--c-ink-3); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.post-read::before { content: "·"; margin-right: 8px; }
@media (hover: hover) {
  .post:hover { box-shadow: inset 0 0 0 1px var(--c-ink-3); }
  .post:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}
/* Lead card: the latest article on page 1 of the index, the lede instead of the description */
.post-lead { padding: 22px 20px 20px; background: var(--c-bg-soft); box-shadow: none; }
.post-lead .post-title { margin-top: 10px; max-width: 24em; font-size: 1.625rem; line-height: 2rem; font-weight: var(--fw-display); letter-spacing: var(--ls-title); -webkit-line-clamp: 4; }
.post-lead .post-text { max-width: 44em; margin-top: 10px; font-size: 1rem; line-height: 1.625rem; -webkit-line-clamp: 5; }
.post-lead .post-meta { padding-top: 18px; }
@media (hover: hover) { .post-lead:hover { box-shadow: inset 0 0 0 1px var(--c-line-strong); } }
@media (min-width: 600px) {
  .post-lead { padding: 32px; }
  .post-lead .post-title { font-size: 2rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .post-lead { padding: 40px 44px 36px; }
  .post-lead .post-title { font-size: 2.375rem; line-height: 2.875rem; }
  .post-lead .post-text { font-size: 1.125rem; line-height: 1.75rem; }
  .post-title { font-size: 1.1875rem; line-height: 1.5rem; }
}

/* ---------- Index: topic chips, the grid of cards, pager, feed link ---------- */
.blog-topics { margin-top: 4px; }   /* .quick: one scrolling row on phones, wraps from 1024 */
.chip[aria-current] .chip-in { background: var(--c-ink); color: var(--c-bg); box-shadow: none; font-weight: var(--fw-semibold); }
.chip[aria-current] .chip-n { color: inherit; opacity: 0.72; }
.blog-list { margin-top: 24px; }
.posts { display: grid; gap: 12px; }
.posts > li { display: flex; min-width: 0; }
.blog-feed { margin-top: 20px; }
.blog-feed .more { margin: 0; padding: 0; }
@media (min-width: 600px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .posts > .posts-lead { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .blog-list { margin-top: 32px; }
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap); }
}

/* Latest and related articles: a rail on phones and tablets, three in a row from 1024 */
.posts-rail > li { display: flex; }
@media (min-width: 1024px) {
  .posts-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

@media print {
  .toc, .article-aside, #related, .acta-btn, .asources-fix { display: none !important; }
  .article { display: block; }
}
