/* Preserve the intrinsic width of the shared editorial grid on narrow screens. */
.editorial-section>*,.pro-brief,.brief{min-width:0}
.page-id-1203 .brief-head{flex-wrap:wrap;gap:8px 16px;line-height:1.5}
.page-id-1203 .brief input:not([type=radio]):not([type=checkbox]),
.page-id-1203 .brief textarea,.page-id-1203 .brief select{max-width:100%;min-width:0}

/* A dark focus outline disappears on the studio's dark panels. */
.footer :is(a,button):focus-visible,
.sl-result :is(a,button):focus-visible,
.story-section :is(a,button):focus-visible{outline-color:#ffdc21}

.footer-directory>*,.footer-main-links>a{min-width:0}
.pkf-article{overflow-wrap:anywhere}
@media(max-width:380px){
 .footer-main-links{grid-template-columns:minmax(0,1fr)}
}

/* The separate Pro header has three links and needs its own mobile row. */
@media(max-width:600px){
 .pchk-pro .header{height:auto;min-height:90px;flex-wrap:wrap;gap:10px;padding-top:20px;padding-bottom:12px}
 .pchk-pro .quick-nav{flex:1 0 100%;margin:0;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
 .pchk-pro .quick-nav a{display:inline-flex;align-items:center;min-height:44px}
}

/* Links inside running text get the same underline as in articles (.article a in style.css), so they stand out
   from the words around them. Links with their own class (buttons, .underlink) keep their look. */
:is(.pkt-guide,.pkt-calc-hint,.pkt-extra>p,.pkt-sy-ways,.pkf-facts dd,.pkf-files,.menu-no-results) a:not([class]){text-decoration:underline;text-underline-offset:4px;text-decoration-color:#aaa}

/* Tables inside articles. Header grey is #767676, not --muted: --muted is below WCAG AA on white. */
.article .wp-block-table{margin:32px 0}
.article .article-table{overflow-x:auto;margin:32px 0}
.article .wp-block-table .article-table{margin:0}
.article .article-table:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.article table{width:100%;border-collapse:collapse;border-top:1px solid var(--line);font-size:16px;line-height:1.5;color:#4e4e4e}
.article th,.article td{min-width:96px;padding:16px 16px 16px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.article th:last-child,.article td:last-child{padding-right:0}
.article th{font-weight:400;color:#6b6b6b}
.article td:empty::after{content:"\00a0"}
.article .wp-block-table figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:#6b6b6b}
@media(max-width:700px){.article table{font-size:15px}}

/* Article cards: every excerpt takes three lines, a longer one ends with «…», and «Разобраться» sits at the bottom, so cards in a row line up. */
.journal-item{display:flex;flex-direction:column}
.journal-item p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;min-height:3lh}
.journal-item>.underlink{margin-top:auto;align-self:flex-start}
