/*
Theme Name: Sivuluq
Description: Minimalny block theme dla projektu SIVULUQ.
Version: 0.2.0
Requires at least: 7.1
Requires PHP: 8.4
Text Domain: sivuluq
*/

:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.sivuluq-site-header, .sivuluq-site-footer { border-color: var(--wp--preset--color--line); }
.sivuluq-site-header__inner, .sivuluq-site-footer__inner { box-sizing: border-box; width: 100%; }
.sivuluq-beta-header__inner { gap: var(--wp--preset--spacing--40); }
.sivuluq-beta-landing { padding-bottom: var(--wp--preset--spacing--80); padding-top: var(--wp--preset--spacing--70); }
.sivuluq-beta-join { padding-bottom: var(--wp--preset--spacing--70); }
.sivuluq-beta-login { padding-bottom: var(--wp--preset--spacing--70); }
.sivuluq-beta-form { margin-top: var(--wp--preset--spacing--50); max-width: 44rem; }
.sivuluq-beta-form__field { display: grid; gap: .45rem; }
.sivuluq-beta-form :is(input[type="email"], input[type="text"], input[type="password"], textarea) { border: var(--wp--custom--border--subtle); border-radius: .2rem; box-sizing: border-box; font: inherit; max-width: 100%; padding: .7rem; width: 100%; }
.sivuluq-beta-form textarea { resize: vertical; }
.sivuluq-beta-form__honeypot { height: 0; margin: 0; overflow: hidden; position: absolute; width: 0; }
.sivuluq-beta-form__notice { background: var(--wp--preset--color--surface); border-left: 3px solid var(--wp--preset--color--accent); margin: var(--wp--preset--spacing--40) 0; padding: var(--wp--preset--spacing--30); }
.sivuluq-beta-form__notice.is-error { border-left-color: #9d2d2d; }
.sivuluq-header-session { align-items: flex-start; display: inline-flex; flex: 0 1 12rem; flex-direction: column; max-width: 12rem; min-width: 0; }
.sivuluq-header-greeting { color: var(--wp--preset--color--ink); display: block; font-size: .9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sivuluq-header-login { font-weight: 650; }
.sivuluq-header-logout { align-self: stretch; color: var(--wp--preset--color--muted); font-size: .78rem; font-weight: 500; line-height: 1.35; margin-top: .1rem; }
.sivuluq-brand a { color: var(--wp--preset--color--ink); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.sivuluq-header-actions .wp-block-navigation-item__content { text-decoration: none; }
.sivuluq-site-header .sivuluq-site-header__inner { box-sizing: border-box; display: flex; flex-wrap: nowrap; gap: clamp(.75rem,1.5vw,1.5rem); max-width: none; padding-inline: clamp(1rem,2vw,2rem); width: 100%; }
.sivuluq-site-header__inner > .sivuluq-header-actions { flex: 1 1 auto; min-width: 0; }
.sivuluq-site-header__inner > .wp-block-shortcode { flex: 0 0 auto; margin: 0; }
.sivuluq-community-shortcuts { align-items: center; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .82rem; line-height: 1.35; }
.sivuluq-community-shortcuts .sivuluq-header-greeting { font-size: .82rem; }
.sivuluq-community-shortcuts .sivuluq-header-logout { align-self: auto; font-size: .82rem; margin: 0; }
.sivuluq-community-shortcuts a { color: #285c52; text-decoration: none; white-space: nowrap; }
.sivuluq-community-shortcuts a:hover { text-decoration: underline; }
.sivuluq-community-unread { background: #276a5d; border-radius: 1rem; color: #fff; display: inline-grid; font-size: .72rem; font-weight: 700; min-height: 1.2rem; min-width: 1.2rem; padding: 0 .2rem; place-items: center; }
@media (max-width: 1100px) { .sivuluq-site-header .sivuluq-site-header__inner { flex-wrap: wrap; } .sivuluq-site-header__inner > .wp-block-shortcode { margin-left: auto; } }
@media (max-width: 650px) { .sivuluq-site-header .sivuluq-site-header__inner { gap: .35rem .75rem; } .sivuluq-site-header__inner > .sivuluq-header-actions { flex: 1 1 auto; } .sivuluq-site-header__inner > .wp-block-shortcode { flex: 1 0 100%; } .sivuluq-community-shortcuts { gap: .25rem .7rem; justify-content: flex-start; } }
.sivuluq-download-link .wp-block-navigation-item__content { background: var(--wp--preset--color--ink); border-radius: .2rem; color: var(--wp--preset--color--paper) !important; padding: .55rem .8rem; }
.sivuluq-site-footer { font-size: var(--wp--preset--font-size--small); }
.sivuluq-footer-navigation .wp-block-navigation-item__content { text-decoration: none; }
.sivuluq-hero__brand { font-size: var(--wp--preset--font-size--small); font-weight: 700; letter-spacing: .08em; margin-bottom: var(--wp--preset--spacing--30); }
.sivuluq-hero h1 { max-width: 14ch; }
.sivuluq-hero__description { max-width: 38rem; }
.sivuluq-placeholder { align-items: center; background: var(--wp--preset--color--surface); border: var(--wp--custom--border--subtle); display: flex; justify-content: center; min-height: clamp(16rem, 38vw, 31rem); padding: var(--wp--preset--spacing--50); text-align: center; }
.sivuluq-placeholder p { max-width: 26rem; }
.sivuluq-pillar, .sivuluq-detail, .sivuluq-release-card { border-top: var(--wp--custom--border--subtle); padding-top: var(--wp--preset--spacing--40); }
.sivuluq-release-card { background: var(--wp--preset--color--surface); border: var(--wp--custom--border--subtle); padding: var(--wp--preset--spacing--50); }
.sivuluq-muted { color: #666662; }
.sivuluq-help-page .wp-site-blocks { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100dvh; }
.sivuluq-help-page .wp-site-blocks > * { margin-block-start: 0; }
.sivuluq-help-page .wp-site-blocks > .sivuluq-help { min-height: 0; }
.sivuluq-help { background: #0b1020; box-sizing: border-box; color: rgba(239, 243, 249, .9); display: grid; grid-template-columns: clamp(20rem, 25vw, 22.5rem) minmax(0, 1fr); margin: 0; max-width: none; padding: 0; width: 100%; }
.sivuluq-help__sidebar { background: #000022; box-sizing: border-box; font-size: 13px; min-width: 0; padding: clamp(1rem, 2vw, 1.5rem); }
.sivuluq-help__sidebar-inner { box-sizing: border-box; color: rgba(255, 255, 255, .82); max-height: calc(100dvh - 2.5rem); overflow: auto; padding: 0; position: sticky; scrollbar-color: rgba(255, 255, 255, .28) transparent; scrollbar-width: thin; top: 1.25rem; }
.sivuluq-help__sidebar-inner::-webkit-scrollbar { width: 6px; }
.sivuluq-help__sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 999px; }
.sivuluq-help__eyebrow { color: rgba(255, 255, 255, .9); font-size: .72rem; font-weight: 700; letter-spacing: .09em; margin: .15rem .25rem .75rem; text-transform: uppercase; }
.sivuluq-help-search { margin: 0 .15rem .85rem; }
.sivuluq-help-search .wp-block-search__inside-wrapper { border: 0; }
.sivuluq-help-search .wp-block-search__input { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: .25rem; box-sizing: border-box; color: rgba(255, 255, 255, .92); font: inherit; min-width: 0; padding: .55rem .65rem; }
.sivuluq-help-search .wp-block-search__input::placeholder { color: rgba(255, 255, 255, .55); }
.sivuluq-help-search .wp-block-search__button { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; margin-left: .35rem; padding: .45rem; }
.sivuluq-help-tree__list { border-left: 1px solid rgba(255, 255, 255, .12); list-style: none; margin: 0; padding: 0 0 0 .7rem; }
.sivuluq-help-tree > .sivuluq-help-tree__list { border-left: 0; padding-left: 0; }
.sivuluq-help-tree__item { margin: .08rem 0; min-width: 0; }
.sivuluq-help-tree__row { align-items: center; display: grid; grid-template-columns: 1.35rem 1.15rem minmax(0, 1fr); min-height: 1.8rem; }
.sivuluq-help-tree__toggle, .sivuluq-help-tree__spacer { align-items: center; box-sizing: border-box; display: inline-flex; height: 1.8rem; justify-content: center; width: 1.35rem; }
.sivuluq-help-tree__toggle { background: transparent; border: 0; border-radius: .2rem; color: rgba(255, 255, 255, .62); cursor: pointer; padding: 0; }
.sivuluq-help-tree__toggle:hover { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .95); }
.sivuluq-help-tree__chevron { border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; display: block; height: .38rem; transform: rotate(-45deg); transition: transform .16s ease; width: .38rem; }
.sivuluq-help-tree__toggle[aria-expanded="true"] .sivuluq-help-tree__chevron { transform: rotate(45deg); }
.sivuluq-help-tree__type-icon { color: rgba(148, 199, 219, .8); display: inline-grid; height: 1rem; place-items: center; width: 1rem; }
.sivuluq-help-tree__type-icon.is-folder { color: rgba(247, 197, 94, .84); }
.sivuluq-help-tree__type-icon svg { fill: none; height: 1rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; width: 1rem; }
.sivuluq-help-tree__link { border-radius: .22rem; color: rgba(255, 255, 255, .84); display: block; line-height: 1.25; min-width: 0; padding: .34rem .4rem; text-decoration: none; }
.sivuluq-help-tree__link.is-folder { color: rgba(255, 226, 168, .96); font-weight: 600; }
.sivuluq-help-tree__item.is-active-branch > .sivuluq-help-tree__row .sivuluq-help-tree__link.is-folder { color: rgba(255, 241, 212, .98); }
.sivuluq-help-tree__link:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.sivuluq-help-tree__link.is-current { background: rgba(35, 108, 58, .3); box-shadow: inset 2px 0 0 rgba(174, 238, 185, .84); color: #effff2; font-weight: 650; }
.sivuluq-help-tree__link { overflow-wrap: anywhere; }
.sivuluq-help__sidebar :focus-visible { outline-color: #b8f5a8; }
.sivuluq-help__article { background: #11182a; box-sizing: border-box; max-width: none; min-width: 0; padding: clamp(2rem, 6vw, 5rem); }
.sivuluq-help__article :where(h1, h2, h3, h4, h5, h6) { color: #f7f9fc; }
.sivuluq-help__article .sivuluq-help__title { font-size: clamp(2.3rem, 5vw, 4.5rem); margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50); max-width: 52rem; }
.sivuluq-help__article :where(p, li) { color: rgba(239, 243, 249, .84); }
.sivuluq-help__article a { color: #a8d7ca; }
.sivuluq-help-breadcrumbs { color: rgba(215, 224, 237, .62); font-size: var(--wp--preset--font-size--small); }
.sivuluq-help-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.sivuluq-help-breadcrumbs li + li::before { content: "/"; margin-right: .35rem; }
.sivuluq-help__article > .wp-block-shortcode { max-width: 52rem; }
.sivuluq-help__article .wp-block-post-content { max-width: none; }
.sivuluq-help__article .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, pre, table) { max-width: 52rem; }
.sivuluq-help__article .wp-block-post-content :where(img, figure, .wp-block-image img) { height: auto; max-width: 100%; }
.sivuluq-help__article .wp-block-post-content > .wp-block-image { box-sizing: border-box; margin-inline: auto; max-width: 100%; width: min(50%, 26rem); }
.sivuluq-help__article .wp-block-post-content > .wp-block-image.alignwide { width: min(78%, 40.5rem); }
.sivuluq-help__article .wp-block-post-content > .wp-block-image.alignfull { width: min(100%, 72rem); }
.sivuluq-help__article .wp-block-post-content > .wp-block-image { background: #0a0f1c; border: 1px solid rgba(255, 255, 255, .12); padding: .5rem; }
.sivuluq-help__article .wp-block-post-content .wp-block-image img { cursor: zoom-in; display: block; margin-inline: auto; width: 100%; }
.sivuluq-help-lightbox[hidden] { display: none; }
.sivuluq-help-lightbox { align-items: center; background: rgba(3, 7, 16, .82); box-sizing: border-box; display: flex; inset: 0; justify-content: center; padding: clamp(1rem, 4vw, 3rem); position: fixed; z-index: 1000; }
.sivuluq-help-lightbox__dialog { box-sizing: border-box; max-width: 100%; position: relative; }
.sivuluq-help-lightbox__image { border: 1px solid rgba(255, 255, 255, .22); display: block; height: auto; max-height: calc(100dvh - 4rem); max-width: 100%; width: auto; }
.sivuluq-help-lightbox__close { align-items: center; background: #11182a; border: 1px solid rgba(255, 255, 255, .35); border-radius: .25rem; color: #fff; cursor: pointer; display: inline-flex; font: inherit; height: 2.5rem; justify-content: center; padding: 0; position: absolute; right: .5rem; top: .5rem; width: 2.5rem; }
.sivuluq-help-lightbox__close:hover { background: #1b2842; }
.sivuluq-help-lightbox-is-open { overflow: hidden; }
.sivuluq-help__article .wp-block-post-content figcaption { color: rgba(215, 224, 237, .62); font-size: var(--wp--preset--font-size--small); margin-top: .65rem; }
.sivuluq-help__article .wp-block-post-content :where(pre, code) { background: #080c16; color: #eaf2f8; }
.sivuluq-help__article .wp-block-post-content pre { border: 1px solid rgba(255, 255, 255, .12); overflow-x: auto; padding: 1rem; }
.sivuluq-help__article .wp-block-post-content blockquote { border-color: rgba(168, 215, 202, .55); color: rgba(239, 243, 249, .76); }
.sivuluq-help__article .wp-block-post-content table { border-color: rgba(255, 255, 255, .16); }
.sivuluq-help__article .wp-block-post-content :where(th, td) { border-color: rgba(255, 255, 255, .14); }
.sivuluq-help-pagination { border-top: 1px solid rgba(255, 255, 255, .14); display: flex; gap: var(--wp--preset--spacing--40); justify-content: space-between; margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--40); }
.sivuluq-help-pagination a { color: #e9f7ef; max-width: 48%; text-decoration: none; }
.sivuluq-help-pagination__next { margin-left: auto; text-align: right; }
.sivuluq-help-pagination span { color: rgba(215, 224, 237, .62); display: block; font-size: var(--wp--preset--font-size--small); margin-bottom: .2rem; }

/* Forum D2: dark wpForo subsystem below the shared, light site shell. */
.sivuluq-forum { background: #0d1422; box-sizing: border-box; color: #edf3f7; min-height: 58vh; padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 3rem); }
/* The root block gap belongs to the shared page flow; remove it only at Forum seams. */
.sivuluq-forum-page .wp-site-blocks > * { margin-block-start: 0; }
.sivuluq-forum.is-layout-constrained > .sivuluq-forum__inner.alignwide { box-sizing: border-box; margin-inline: auto; max-width: calc(100vw - 1.5rem); width: min(93vw, 110rem); }
.sivuluq-forum__title { color: #f7f9fc; font-size: clamp(3rem, 3.5vw, 4rem); letter-spacing: -.035em; margin: 0 0 clamp(.65rem, 1vw, .9rem); }
/* Let the Post Content shortcode inherit the Forum shell width, not theme.json's 44rem reading measure. */
.sivuluq-forum__inner > .wp-block-post-content { --wp--style--global--content-size: min(93vw, 110rem); }
.sivuluq-forum-page #wpforo { color: #dce7ef; font-family: var(--wp--preset--font-family--system-sans); }
.sivuluq-forum-page #wpforo :where(a, .wpforo-post-content a) { color: #b8e5d7; }
.sivuluq-forum-page #wpforo :focus-visible { outline: 2px solid #b8f5a8; outline-offset: 3px; }
.sivuluq-forum-page #wpforo #wpforo-wrap { background: transparent; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) { background: transparent; padding-inline: 0; }

/* Forum D2a: the threaded topic is a conversation tree, not a stack of cards. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 { --sivuluq-thread-line: rgba(184, 229, 215, .28); --sivuluq-thread-line-active: rgba(184, 245, 168, .7); --sivuluq-thread-indent: clamp(.7rem, 1.8vw, 1.35rem); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap { margin-bottom: .35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap:first-child { margin-bottom: .35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post { background: transparent; border: 0; border-radius: 0; color: inherit; height: auto; }

/* The first post keeps wpForo's DOM and actions, but loses the profile sidebar. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post { align-items: flex-start; padding: .35rem 0 .15rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left { flex: 0 0 2.75rem; padding: .1rem .65rem 0 0; text-align: left; width: 2.75rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left .wpf-author-avatar { margin: 0; max-height: none; max-width: none; width: auto; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left .avatar { box-sizing: border-box; height: 2.25rem; max-height: 2.25rem; padding: 1px; width: 2.25rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left :is(.wpf-author-data, .wpforo-memberinfo) { display: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-right { min-width: 0; padding: 0; width: auto; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-top { align-items: baseline; gap: .15rem .55rem; min-height: 2.25rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-top .wpf-author-name { font-size: .92rem; line-height: 1.35; margin: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-top .wpf-post-date { color: rgba(220, 231, 239, .62); font-size: .75rem; padding: 0; text-align: left; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-bottom { align-items: center; min-height: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-bottom .wpf-author { display: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content-head-bottom .wpf-post-btns { font-size: .72rem; line-height: 1.2; margin: -.25rem 0 .15rem auto; opacity: .68; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-content { margin-top: 0; padding: 0; }

/* One natural content measure for roots and replies; no inherited 130px minimum. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-content { box-sizing: border-box; font-size: .94rem; line-height: 1.55; margin: .15rem 0; max-width: 72ch; min-height: 0; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-content p { line-height: inherit; margin: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-content p + p { margin-top: .8rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-meta { margin: .3rem 0 0; max-width: 72ch; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-meta:empty, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-footer:empty { display: none; }

/* Compact action row; functions remain in their native wpForo containers. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot { background: transparent; border: 0; border-radius: 0; box-sizing: border-box; gap: .15rem .45rem; min-height: 0; padding: .2rem 0 .35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-reaction-wrap { border: 0; margin: 0; opacity: .8; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-reaction-wrap .wpf-like-count { border: 0; font-size: .8rem; line-height: 1.35; margin: 0; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-reply .wpf-action { font-weight: 650; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-reply i { line-height: inherit; margin-right: .2rem; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-buttons { flex-grow: 0; margin: 0; text-align: left; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-buttons .wpf-action { margin: 0 .15rem; opacity: .76; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-post-footer { background: transparent; }

/* Native nested wrappers provide the trunk; each reply gets one unobtrusive branch. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies { border-left: 1px solid var(--sivuluq-thread-line); margin: .3rem 0 .45rem var(--sivuluq-thread-indent); padding: 0 0 0 var(--sivuluq-thread-indent); position: relative; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies:hover { border-left-color: var(--sivuluq-thread-line-active); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .reply-wrap { margin-bottom: .35rem; position: relative; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .reply-wrap::before { border-top: 1px solid var(--sivuluq-thread-line); content: ""; left: calc(-1 * var(--sivuluq-thread-indent)); position: absolute; top: 1.12rem; width: calc(var(--sivuluq-thread-indent) - .15rem); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .reply-wrap:hover::before { border-top-color: var(--sivuluq-thread-line-active); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post { margin: 0; padding: .15rem 0 .25rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head { align-items: center; display: grid; gap: .15rem .55rem; grid-template-columns: 2rem minmax(0, 1fr) auto auto; min-height: 2rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-avatar { align-self: start; height: auto; padding: 0; width: 2rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-avatar :is(img, .avatar) { box-sizing: border-box; height: 2rem; max-height: 2rem; padding: 1px; width: 2rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author { min-width: 0; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-head { gap: .15rem .45rem; min-height: 2rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-name { font-size: .88rem; line-height: 1.35; margin: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head :is(.wpf-author-title, .wpforo-memberinfo) { display: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-post-date { align-self: center; flex-grow: 0; font-size: .73rem; padding: 0; text-align: left; white-space: nowrap; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-post-btns { align-self: center; font-size: .72rem; line-height: 1.2; opacity: .66; padding: 0; white-space: nowrap; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content { background: transparent; border: 0; margin: 0; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree { border: 0; color: rgba(220, 231, 239, .62); font-size: .75rem; line-height: 1.35; margin: .05rem 0 .2rem 2.55rem; padding: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree .wpf-tree-item img, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree .wpf-tree-item .avatar { display: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree .wpf-reply-to.wpf-tree-item { margin-left: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree .wpf-reply-to.wpf-tree-item > a { column-gap: .25rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree .wpf-reply-to.wpf-tree-item::before { content: "↪ "; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpforo-post-content, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpforo-post-meta { margin-left: 2.55rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-content-foot { margin: .15rem 0 0 2.55rem; width: auto; }

/* The existing toggle still calls wpForo; CSS turns it into a compact branch control. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar { align-items: center; border: 0; border-radius: .25rem; color: #b8e5d7; cursor: pointer; display: inline-flex; gap: .3rem; margin: .1rem 0 .3rem calc(-1 * var(--sivuluq-thread-indent)); min-height: 1.55rem; padding: .1rem .35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 > .post-wrap > .wpf-post-replies-bar { margin-left: 0; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar:hover { background: rgba(184, 229, 215, .08); color: #e2fff2; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar .wpf-post-replies-info { font-size: .7rem; padding: 0; text-transform: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar .wpf-post-replies-info > i, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar .wpf-prsep { display: none; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar .wpforo-ttgg { font-size: .8rem; line-height: 1; transition: transform .16s ease; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar[aria-expanded="false"] .wpforo-ttgg { transform: rotate(180deg); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-replies-sep, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpforo-topic-meta { margin-left: 3.4rem; }

/* Forum D2a: bridge wpForo's sibling reply controls into one continuous tree. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap { margin-bottom: 1.35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap:first-child { margin-bottom: 1.35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies { margin-bottom: 1.35rem; margin-top: .7rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .reply-wrap { margin-bottom: 1rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot { padding-bottom: .25rem; padding-top: .35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar { margin-bottom: .35rem; margin-left: var(--sivuluq-thread-indent); margin-top: .5rem; padding-left: .72rem; position: relative; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 > .post-wrap > .wpf-post-replies-bar { margin-left: var(--sivuluq-thread-indent); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar::before { border-left: 1px solid var(--sivuluq-thread-line); bottom: -.7rem; content: ""; left: 0; position: absolute; top: -.35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar:hover::before { border-left-color: var(--sivuluq-thread-line-active); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar[aria-expanded="false"]::before { bottom: auto; height: calc(100% + .35rem); }

/* A trunk belongs to its parent: stop it at the final direct child, not at a level. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar::before { top: -.7rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies-bar[aria-expanded="false"]::before { height: calc(100% + .7rem); }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .reply-wrap:not(:has(~ .reply-wrap))::after { background: #0d1422; bottom: -1rem; content: ""; left: calc(-1 * var(--sivuluq-thread-indent) - 1px); position: absolute; top: 1.12rem; width: 1px; z-index: 1; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies > .wpf-post-replies:not(:has(~ .reply-wrap))::after { background: #0d1422; bottom: -1.35rem; content: ""; left: calc(-2 * var(--sivuluq-thread-indent) - 1px); position: absolute; top: 0; width: 1px; z-index: 1; }

/* A branch starts at its avatar node, then continues through wpForo's sibling gaps. */
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap:has(> .wpf-post-replies-bar) > .wpf-parent-post, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .reply-wrap:has(+ .wpf-post-replies) > .wpf-child-post { position: relative; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap:has(> .wpf-post-replies-bar) > .wpf-parent-post::after { border-left: 1px solid var(--sivuluq-thread-line); bottom: 0; content: ""; left: var(--sivuluq-thread-indent); position: absolute; top: 2.6rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .reply-wrap:has(+ .wpf-post-replies) > .wpf-child-post::after { border-left: 1px solid var(--sivuluq-thread-line); bottom: 0; content: ""; left: var(--sivuluq-thread-indent); position: absolute; top: 2.15rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies::before { border-left: 1px solid var(--sivuluq-thread-line); content: ""; height: 1rem; left: -1px; position: absolute; top: -1rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap + .wpf-post-replies::before { height: 1.35rem; top: -1.35rem; }
.sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 :is(.post-wrap:has(> .wpf-post-replies-bar) > .wpf-parent-post, .reply-wrap:has(+ .wpf-post-replies) > .wpf-child-post, .wpf-post-replies):hover::after, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-post-replies:hover::before { border-left-color: var(--sivuluq-thread-line-active); }
.sivuluq-forum-page #wpforo :where(input, textarea, select) { background: #0b1320; border-color: rgba(255,255,255,.25); color: #f7f9fc; }
@media (max-width: 600px) {
  .sivuluq-forum { padding: 1rem 0 1.5rem; }
  .sivuluq-forum__inner { max-width: calc(100vw - 1rem); width: calc(100vw - 1rem); }
  .sivuluq-forum__title { font-size: clamp(2.5rem, 12vw, 3rem); }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 { --sivuluq-thread-indent: .58rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left { flex-basis: 2.3rem; padding-right: .35rem; width: 2.3rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-parent-post .wpf-left .avatar { height: 1.9rem; max-height: 1.9rem; width: 1.9rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-avatar, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-author-avatar :is(img, .avatar) { height: 1.75rem; width: 1.75rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .post-wrap:has(> .wpf-post-replies-bar) > .wpf-parent-post::after { top: 2.25rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .reply-wrap:has(+ .wpf-post-replies) > .wpf-child-post::after { top: 1.9rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-post-date { grid-column: 2; grid-row: 2; white-space: normal; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-head .wpf-post-btns { grid-column: 2; grid-row: 3; white-space: normal; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-reply-content .wpf-reply-tree, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpforo-post-content, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpforo-post-meta, .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-child-post .wpf-content-foot { margin-left: 2.3rem; }
  .sivuluq-forum-page #wpforo #wpforo-wrap:has(.wpfl-4 .wpf-parent-post) .wpfl-4 .wpf-content-foot .wpf-buttons { flex-basis: 100%; }
}

/* Help content, editorial screenshot slots and native questions. */
.sivuluq-help__article .wp-block-post-content :where(ol, ul) { padding-inline-start: 1.65em; }
.sivuluq-help__article .wp-block-post-content li + li { margin-block-start: .65em; }
.sivuluq-help__article .wp-block-post-content :where(h2, h3) { margin-block-start: 2em; }
.sivuluq-help-screenshot { align-items: center; background: #19233a; border: 2px dashed #8aaab8; border-radius: .4rem; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; min-height: 16rem; padding: 1.5rem; text-align: center; }
.sivuluq-help-screenshot p { margin: .4rem 0; }
.sivuluq-help-screenshot code { overflow-wrap: anywhere; }
.sivuluq-help-warning { background: #302a1d; border-inline-start: 4px solid #e4bb68; border-radius: .2rem; padding: 1rem 1.25rem; }
.sivuluq-help-verification { background: #202c42; border-inline-start: 4px solid #92b6e2; padding: 1rem 1.25rem; }
.sivuluq-help-questions { border-top: 1px solid #536078; margin-block-start: 3rem; max-width: 52rem; padding-block-start: 2rem; }
.sivuluq-help-questions :where(h2, h3) { font-size: 1.5rem; }
.sivuluq-help-question-list, .sivuluq-help-question-list .children { list-style: none; margin: 0; padding: 0; }
.sivuluq-help-question-list .children { border-inline-start: 2px solid #547a76; margin-inline-start: clamp(.5rem, 2vw, 1.5rem); padding-inline-start: clamp(.5rem, 2vw, 1rem); }
.sivuluq-help-question { margin-block: 1rem; overflow-wrap: anywhere; }
.sivuluq-help-question > article { background: #1a2438; border: 1px solid #46516a; border-radius: .35rem; padding: 1rem; }
.sivuluq-help-question.is-staff > article { border-color: #7bac9c; }
.sivuluq-help-question header { align-items: baseline; display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.sivuluq-help-question__badge { border: 1px solid #7bac9c; border-radius: .2rem; color: #c3eadc; font-size: .8rem; padding: .1rem .4rem; }
.sivuluq-help-question__date { font-size: .8rem; }
.sivuluq-help-question__body :first-child { margin-block-start: .8rem; }
.sivuluq-help-question .comment-reply-link { display: inline-block; padding: .35rem 0; }
.sivuluq-help-questions .comment-form-comment label { display: block; margin-block-end: .5rem; }
.sivuluq-help-questions textarea { background: #0c1424; border: 1px solid #8191aa; border-radius: .3rem; box-sizing: border-box; color: #f7f9fc; font: inherit; min-height: 9rem; padding: .8rem; resize: vertical; width: 100%; }
.sivuluq-help-questions .submit { background: #b6dccd; border: 1px solid #b6dccd; border-radius: .3rem; color: #0c211c; cursor: pointer; font: inherit; min-height: 2.75rem; padding: .65rem 1rem; }
.sivuluq-help__article :focus-visible, .sivuluq-help-lightbox :focus-visible { outline: 3px solid #b8f5a8; outline-offset: 3px; }
.sivuluq-help-questions #cancel-comment-reply-link { font-size: .9rem; margin-inline-start: .7rem; }
.sivuluq-help-page .sivuluq-search { background: #11182a; color: #edf3f9; max-width: none; padding: clamp(1.5rem, 6vw, 4rem); }
.sivuluq-help-page .sivuluq-search :where(h1, h2, p) { color: #edf3f9; }
.sivuluq-help-page .sivuluq-search a { color: #a8d7ca; }

@media (max-width: 900px) {
 .sivuluq-help { grid-template-columns: minmax(0, 1fr); }
 .sivuluq-help__sidebar-inner { max-height: 20rem; position: static; }
 .sivuluq-help__sidebar { border-bottom: 1px solid #46516a; }
 .sivuluq-help__article { padding: 1.5rem; }
 .sivuluq-help__article .sivuluq-help__title { overflow-wrap: anywhere; }
 .sivuluq-help__article .wp-block-post-content > .wp-block-image,
 .sivuluq-help__article .wp-block-post-content > .wp-block-image.alignwide { width: 100%; }
}
.sivuluq-search .wp-block-post-template { list-style: none; padding: 0; }
.sivuluq-search .wp-block-post-template > li { border-bottom: 1px solid #536078; padding-block: 1rem; }
@media (max-width: 600px) {
 .sivuluq-help-screenshot { min-height: 12rem; padding: 1rem; }
 .sivuluq-help-question > article { padding: .75rem; }
 .sivuluq-help-questions .form-submit .submit { width: 100%; }
}
