/* Single post: single.php (board ArtA «Дві колонки», 30.11.2026). Tokens from tokens.css, wrapper .uao-ds.ar.
   Prose of .entry-content comes from post.css (shared with recipes, pages, hubs); only the article's own look is overridden here, under .ar. */

.ar { padding-bottom: 48px; }
.ar-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--uao-sp-12); box-sizing: border-box; }
.ar img { display: block; max-width: 100%; }
.ar .uao-muted { color: var(--uao-text-2); }

.ar-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.ar-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 780px; }

/* head */
.ar-crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--uao-fs-13); color: var(--uao-text-2); }
.ar .ar-crumbs a { color: var(--uao-text-2); text-decoration: none; }
.ar .ar-crumbs a:hover { color: var(--uao-green-700); }
.ar-h1 { margin: 0; font-family: inherit; font-size: 38px; line-height: 46px; font-weight: 700; color: var(--uao-green-900); text-wrap: balance; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--uao-fs-14); color: var(--uao-text-2); }
.ar .ar-meta a { text-decoration: none; }
.ar .ar-meta__cat { font-weight: 600; }
.ar .ar-meta__author { color: var(--uao-text-2); }
.ar .ar-meta__author:hover { color: var(--uao-green-700); }
.ar-cover { margin: 0; }
.ar-cover__img { width: 100%; height: auto; aspect-ratio: 1440 / 776; object-fit: cover; border-radius: var(--uao-r-lg); background: var(--uao-surface); }
.ar-cover figcaption { margin-top: 8px; font-size: var(--uao-fs-13); color: var(--uao-text-2); }

/* prose: the board's type on top of post.css */
.ar .entry-content { font-family: var(--uao-font); font-size: 17px; line-height: 28px; color: var(--uao-text); }
.ar .entry-content p { margin: 0 0 16px; }
.ar .entry-content .post-lead { font-size: 19px; line-height: 30px; color: var(--uao-text); margin: 0 0 20px; padding: 0; border: 0; }
.ar .entry-content h2, .ar .entry-content h3, .ar .entry-content h4 { font-family: var(--uao-font); letter-spacing: 0; color: var(--uao-green-900); }
.ar .entry-content h2 { font-size: var(--uao-fs-24); line-height: 31px; margin: 32px 0 12px; padding: 0; border: 0; }
.ar .entry-content h3 { font-size: var(--uao-fs-20); line-height: 27px; margin: 24px 0 10px; }
.ar .entry-content a { color: var(--uao-green-700); }
.ar .table-scroll-wrap { margin: 20px 0; border-color: var(--uao-line); border-radius: var(--uao-r-md); }
.ar .entry-content .table-scroll-wrap table { font-size: var(--uao-fs-15); font-variant-numeric: tabular-nums; }
.ar .entry-content thead th { background: var(--uao-surface); color: var(--uao-text); font-family: var(--uao-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ar .entry-content tbody tr:nth-child(odd), .ar .entry-content tbody tr:nth-child(even) { background: #FFFFFF; }
.ar .entry-content td { border-bottom-color: var(--uao-line); }
.ar .entry-content .uao-ad { margin: 24px 0; }
.ar .entry-content ul { list-style: disc; }
.ar .entry-content ol { list-style: decimal; }
.ar .entry-content li { margin-bottom: 6px; }
.ar .entry-content li::marker { color: var(--uao-text-2); }
/* Gutenberg's table block draws a border on every cell and a 3px line under thead */
.ar .entry-content .wp-block-table thead { border-bottom: 0; }
.ar .entry-content th, .ar .entry-content td { border: 0; border-bottom: 1px solid var(--uao-line); padding: 9px 12px; }
.ar .entry-content tbody tr:last-child td { border-bottom: 0; }

/* TOC, after the lead */
.ar-cap { margin: 0; font-family: inherit; font-size: var(--uao-fs-11); line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--uao-text-2); }
.ar .ar-toc { border: 1px solid var(--uao-line); border-radius: var(--uao-r-lg); padding: 14px 18px 10px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.ar .ar-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; gap: 0 24px; }
.ar .ar-toc li { counter-increment: toc; margin: 0; padding: 0; }
.ar .ar-toc a { display: grid; grid-template-columns: 20px 1fr; gap: 4px; padding: 5px 0; color: var(--uao-text); text-decoration: none; font-size: 14.5px; line-height: 20px; }
.ar .ar-toc a::before { content: counter(toc); color: var(--uao-text-2); font-variant-numeric: tabular-nums; }
.ar .ar-toc a:hover { color: var(--uao-green-700); }

/* end of the article */
.ar-end { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--uao-line); }
.ar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ar .ar-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--uao-line); border-radius: var(--uao-r-md); color: var(--uao-text); text-decoration: none; font-size: var(--uao-fs-14); }
.ar-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: var(--uao-fs-14); }
.ar .ar-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--uao-line); border-radius: var(--uao-r-md); background: #FFFFFF; color: var(--uao-text); text-decoration: none; font: 500 var(--uao-fs-14) / 1 var(--uao-font); cursor: pointer; }
.ar .ar-chip:hover, .ar .ar-btn:hover { border-color: var(--uao-green-700); color: var(--uao-green-700); }
.ar-author { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--uao-line); border-radius: var(--uao-r-lg); }
.ar-author__photo { width: 48px; height: 48px; box-sizing: border-box; border: 1px solid var(--uao-line); border-radius: 24px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.ar-author__photo img { width: 30px; height: 30px; }
.ar-author__txt { display: flex; flex-direction: column; gap: 2px; }
.ar-author__label { font-size: var(--uao-fs-12); }
.ar .ar-author__name { font-size: var(--uao-fs-15); font-weight: 700; color: var(--uao-text); text-decoration: none; }
.ar-author__bio { font-size: var(--uao-fs-14); line-height: 21px; color: var(--uao-text-2); }

/* side column */
.ar-side { display: flex; flex-direction: column; gap: 18px; align-self: stretch; } /* full column height, or the sticky ad has no room to travel */
.ar-block { display: flex; flex-direction: column; }
.ar-block + .ar-block { padding-top: 14px; border-top: 1px solid var(--uao-line); }
.ar-block .ar-cap { margin-bottom: 6px; }
.ar .ar-rel { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--uao-line-soft); color: var(--uao-text); text-decoration: none; }
.ar-rel__img { width: 96px; height: 60px; object-fit: cover; border-radius: var(--uao-r); background: var(--uao-surface); }
.ar-rel__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-rel b { font-size: 13.5px; line-height: 18px; font-weight: 600; }
.ar-rel .uao-muted { font-size: var(--uao-fs-12); }
.ar .ar-wiki { padding: 7px 0; border-top: 1px solid var(--uao-line-soft); color: var(--uao-text); text-decoration: none; font-size: 13.5px; line-height: 19px; }
.ar .ar-wiki--all { color: var(--uao-green-700); font-weight: 600; font-size: var(--uao-fs-13); }
.ar .ar-rel:hover b, .ar .ar-wiki:hover, .ar .ar-card:hover b { color: var(--uao-green-700); }
.ar-sticky { position: sticky; top: calc(var(--header-h, 60px) + 16px); } /* below the sticky site header */
.ar-sticky .uao-ad { margin: 0; }

/* latest in the category */
.ar-latest { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--uao-line); }
.ar-latest__head { display: flex; align-items: baseline; gap: 14px; }
.ar-latest__head h2 { margin: 0; flex: 1; font-family: inherit; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--uao-text); }
.ar .ar-latest__head a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--uao-fs-14); font-weight: 600; text-decoration: none; }
.ar-latest__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ar .ar-card { display: flex; flex-direction: column; gap: 8px; color: var(--uao-text); text-decoration: none; }
.ar-card__img { width: 100%; height: auto; aspect-ratio: 440 / 272; object-fit: cover; border-radius: var(--uao-r-md); background: var(--uao-surface); }
.ar-card b { font-size: var(--uao-fs-15); line-height: 21px; font-weight: 600; }

/* tablet and phone: one column, side under the text */
@media (max-width: 1100px) {
    .ar-body { grid-template-columns: 1fr; gap: 28px; }
    .ar-main { max-width: none; }
    .ar-sticky { position: static; }
    .ar-latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ar-wrap { padding: 0 var(--uao-sp-4); }
    .ar-body { padding-top: 16px; }
}
@media (max-width: 560px) {
    .ar-h1 { font-size: 28px; line-height: 35px; }
    .ar .entry-content .post-lead { font-size: 18px; line-height: 28px; }
    .ar .ar-toc ol { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .ar-latest__grid { gap: 14px; }
    .ar-latest__head { flex-wrap: wrap; }
}
