:root {
    --ps-bg: #0b0d12;
    --ps-surface: #121419;
    --ps-surface-2: #191d24;
    --ps-border: #2c333f;
    --ps-text: #f5f7fb;
    --ps-muted: #a6adb9;
    --ps-accent: #d6253b;
    --ps-accent-2: #ff7d8d;
    --ps-danger: #ff6b6b;
    --ps-radius: 16px;
    --ps-shadow: 0 16px 50px rgba(0,0,0,.22);
    --ps-container: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ps-bg);
    color: var(--ps-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: #ffb6c0; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
pre, code, kbd, samp { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
code:not(pre code) { background: #191f2d; border: 1px solid var(--ps-border); border-radius: 6px; padding: .12rem .35rem; }
pre { overflow: auto; padding: 1rem; border-radius: 12px; background: #090b10; border: 1px solid var(--ps-border); }
input, textarea, select, button { font: inherit; }
input, textarea, select { color: var(--ps-text); background: #0d1119; border: 1px solid var(--ps-border); border-radius: 10px; padding: .75rem .9rem; }
button { cursor: pointer; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; display: block; top: 8px; left: 8px; padding: 12px; z-index: 100000; background: #fff; color: #000; }
.ps-skip-link { position: absolute; left: -9999px; }
.ps-skip-link:focus { left: 12px; top: 12px; z-index: 100001; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.ps-container { width: min(calc(100% - 36px), var(--ps-container)); margin-inline: auto; }

.ps-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(11,13,18,.92); border-bottom: 1px solid var(--ps-border); backdrop-filter: blur(14px); }
.ps-header-inner { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.ps-branding { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ps-wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ps-text); font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.ps-wordmark-mark { color: var(--ps-accent); font-weight: 900; }
.ps-wordmark-mark-image { display: inline-flex; align-items: center; justify-content: center; width: var(--ps-brand-logo-width, 48px); flex: 0 0 auto; }
.ps-wordmark-mark-image img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.ps-tagline { display: none; color: var(--ps-muted); font-size: .78rem; }
.custom-logo { max-height: 46px; width: auto; }
.ps-menu, .ps-footer-menu { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ps-menu a { display: block; padding: 9px 11px; color: #c4cbda; border-radius: 9px; font-size: .92rem; font-weight: 600; }
.ps-menu a:hover, .ps-menu .current-menu-item > a { color: #fff; background: var(--ps-surface-2); }
.ps-menu .sub-menu { position: absolute; min-width: 200px; display: none; background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: 12px; padding: 8px; box-shadow: var(--ps-shadow); list-style: none; }
.ps-menu li { position: relative; }
.ps-menu li:hover > .sub-menu, .ps-menu li:focus-within > .sub-menu { display: block; }
.ps-header-actions { display: flex; align-items: center; gap: 8px; }
.ps-search-form { display: flex; align-items: center; min-width: 230px; background: #0d1119; border: 1px solid var(--ps-border); border-radius: 10px; overflow: hidden; }
.ps-search-form label { flex: 1; }
.ps-search-field { width: 100%; border: 0; background: transparent; padding: 9px 11px; outline: 0; }
.ps-search-form button { border: 0; color: var(--ps-muted); background: transparent; padding: 8px 11px; }
.ps-nav-toggle { display: none; color: #fff; background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: 10px; padding: 8px 10px; }

.ps-button, a.ps-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; color: #fff; background: var(--ps-accent); border: 1px solid transparent; border-radius: 10px; font-weight: 750; line-height: 1.2; }
.ps-button:hover, a.ps-button:hover { color: #fff; filter: brightness(1.08); }
.ps-button-ghost, a.ps-button-ghost { background: transparent; border-color: var(--ps-border); color: #d9deea; }
.ps-button-large, a.ps-button-large { min-height: 48px; padding: 12px 18px; }

.ps-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ps-border); background: radial-gradient(circle at 82% 18%, rgba(214,37,59,.22), transparent 30%), radial-gradient(circle at 18% 2%, rgba(255,255,255,.08), transparent 26%), linear-gradient(180deg, #0b0d12 0%, #0e1016 100%); }
.ps-hero-grid { min-height: 470px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 58px; padding-block: 72px; }
.ps-hero h1 { margin: 8px 0 18px; max-width: 760px; font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.065em; }
.ps-hero p { max-width: 700px; color: #b3bdcf; font-size: clamp(1rem, 2vw, 1.18rem); }
.ps-eyebrow { display: inline-block; color: #ff8c9b; text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 850; }
.ps-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ps-code-window { border: 1px solid #2c3447; border-radius: 16px; overflow: hidden; background: #080a0e; box-shadow: 0 30px 90px rgba(0,0,0,.34); transform: rotate(1deg); }
.ps-code-window-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #242a38; background: #11151d; }
.ps-code-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #394154; }
.ps-code-window pre { min-height: 280px; margin: 0; border: 0; border-radius: 0; padding: 28px; color: #e4e8f2; font-size: .96rem; line-height: 1.85; }
.ps-code-muted { color: #6e7a91; }.ps-code-keyword { color: #d988ff; }.ps-code-fn { color: #62d9ff; }.ps-code-string { color: #7ee8b8; }

.ps-site-main { min-height: 60vh; padding-block: 34px 58px; }
.ps-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.ps-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.ps-section-head h2, .ps-page-header h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.04em; }
.ps-page-header { margin-bottom: 22px; }
.ps-feed-tabs { display: flex; gap: 5px; padding: 5px; background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: 10px; }
.ps-tab { padding: 6px 10px; color: var(--ps-muted); border-radius: 7px; font-size: .82rem; font-weight: 750; }
.ps-tab.is-active { background: var(--ps-surface-2); color: #fff; }
.ps-tab.is-disabled { opacity: .45; }
.ps-feed-list { display: grid; gap: 8px; }
.ps-card { background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius); box-shadow: 0 1px 0 rgba(255,255,255,.02); }
.ps-post-card { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.ps-post-card:hover { border-color: #374158; transform: translateY(-1px); }
.ps-vote-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 17px 8px; color: #667085; background: rgba(255,255,255,.018); border-right: 1px solid var(--ps-border); font-size: .85rem; }
.ps-vote-placeholder strong { color: #e7ebf3; }
.ps-post-card-body { min-width: 0; padding: 18px 20px; }
.ps-post-card-title { margin: 7px 0 7px; font-size: 1.16rem; line-height: 1.35; letter-spacing: -.015em; }
.ps-post-card-title a { color: #f3f5f9; }
.ps-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ps-muted); font-size: .78rem; }
.ps-post-meta a { color: #aab3c5; }
.ps-post-excerpt { color: #aeb7c8; margin-top: 12px; font-size: .94rem; }
.ps-post-excerpt p { margin: 0; }
.ps-post-actions { display: flex; gap: 14px; margin-top: 13px; font-size: .78rem; font-weight: 750; }
.ps-post-thumb { width: 160px; min-height: 100%; overflow: hidden; border-left: 1px solid var(--ps-border); background: #090b10; }
.ps-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-pill { display: inline-flex; padding: 4px 8px; border: 1px solid rgba(214,37,59,.34); border-radius: 999px; background: rgba(214,37,59,.09); color: #ffd8de; font-size: .69rem; font-weight: 800; }

.ps-sidebar { display: grid; gap: 14px; position: sticky; top: 94px; }
.ps-sidebar-card, .ps-widget { padding: 20px; }
.ps-sidebar h2, .ps-widget-title { margin: 0 0 12px; font-size: 1.05rem; }
.ps-topic-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.ps-topic-chip { display: inline-flex; padding: 7px 9px; border-radius: 8px; background: var(--ps-surface-2); border: 1px solid rgba(214,37,59,.2); color: #f1f3f7; font-size: .78rem; }
.ps-small-note { margin: 14px 0 0; color: #778399; font-size: .74rem; }
.ps-pro-card { background: linear-gradient(145deg, rgba(214,37,59,.16), rgba(18,20,25,1) 62%); }
.ps-pro-card p { color: #aeb7c8; }

.ps-content-narrow { width: min(calc(100% - 36px), 980px); }
.ps-single, .ps-page { padding: clamp(22px, 4vw, 44px); }
.ps-single h1, .ps-page h1 { margin: 10px 0 12px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.045em; }
.ps-single-featured { margin: 26px -12px 0; }
.ps-single-featured img { display: block; width: 100%; border-radius: 12px; }
.ps-entry-content { margin-top: 28px; color: #d3d8e3; font-size: 1.02rem; }
.ps-entry-content h2, .ps-entry-content h3 { color: #fff; line-height: 1.2; }
.ps-entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.ps-comments { margin-top: 18px; padding: clamp(20px, 4vw, 34px); }
.ps-comment-list { padding-left: 22px; }
.ps-comment-list .comment { margin: 18px 0; }
.ps-comment-list .children { margin-left: 16px; }
.comment-body { padding: 16px; background: #0f131c; border: 1px solid var(--ps-border); border-radius: 12px; }
.comment-meta { font-size: .8rem; color: var(--ps-muted); }
.comment-content { margin-top: 10px; }
.comment-form { display: grid; gap: 10px; }
.comment-form textarea { width: 100%; min-height: 150px; }
.ps-empty-state { padding: 34px; text-align: center; }
.ps-404 { padding-block: 70px; }
.ps-404 .ps-search-form { width: min(100%, 460px); margin: 24px auto; }

.navigation.pagination { margin-top: 22px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--ps-border); border-radius: 9px; color: #cbd2df; background: var(--ps-surface); }
.page-numbers.current { color: #fff; background: var(--ps-accent); border-color: var(--ps-accent); }

.ps-site-footer { border-top: 1px solid var(--ps-border); background: #080a0e; color: var(--ps-muted); }
.ps-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 30px; padding-block: 44px; }
.ps-footer-brand { color: #fff; font-size: 1.08rem; }
.ps-footer-menu { flex-wrap: wrap; align-items: flex-start; flex-direction: column; }
.ps-footer-menu a { color: #aab3c5; }
.ps-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 17px; border-top: 1px solid #171b25; font-size: .75rem; }

@media (min-width: 1180px) {
    .ps-tagline { display: inline; }
}
@media (max-width: 1060px) {
    .ps-header-inner { grid-template-columns: auto auto 1fr; }
    .ps-primary-nav { display: none; grid-column: 1 / -1; padding-bottom: 12px; }
    .ps-primary-nav.is-open { display: block; }
    .ps-menu { flex-wrap: wrap; }
    .ps-nav-toggle { display: inline-flex; }
    .ps-header-actions { justify-self: end; }
    .ps-layout { grid-template-columns: 1fr; }
    .ps-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .ps-header-inner { grid-template-columns: auto auto; }
    .ps-header-actions { grid-column: 1 / -1; width: 100%; padding-bottom: 12px; }
    .ps-search-form { flex: 1; min-width: 0; }
    .ps-hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 50px; }
    .ps-code-window { transform: none; }
    .ps-post-card { grid-template-columns: 46px minmax(0,1fr); }
    .ps-post-thumb { display: none; }
    .ps-section-head { align-items: flex-start; flex-direction: column; }
    .ps-feed-tabs { width: 100%; overflow-x: auto; }
    .ps-sidebar { grid-template-columns: 1fr; }
    .ps-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ps-container, .ps-content-narrow { width: min(calc(100% - 22px), var(--ps-container)); }
    .ps-header-actions .ps-button-ghost { display: none; }
    .ps-hero h1 { font-size: 2.75rem; }
    .ps-code-window pre { padding: 20px; font-size: .78rem; }
    .ps-post-card-body { padding: 15px 14px; }
    .ps-post-excerpt { display: none; }
    .ps-footer-bottom { flex-direction: column; }
}

/* Community-plugin topic links (v0.1.1). */
a.ps-topic-chip {
    text-decoration: none;
    color: inherit;
}

/* v0.1.2 — fluid feed + responsive voting integration */
.ps-post-card {
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ps-post-card:first-child {
    border-top: 1px solid var(--ps-border);
}

.ps-post-card:hover {
    transform: none;
    border-color: #374158;
    background: rgba(255, 255, 255, .012);
}

.ps-post-card-vote {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 12px 5px;
    border-right: 1px solid var(--ps-border);
    background: rgba(255, 255, 255, .012);
}

.ps-post-card-vote .ps-vote-placeholder {
    width: 100%;
    border-right: 0;
    background: transparent;
    padding: 5px 0;
}

.ps-single-vote-area {
    margin-top: 14px;
}

.ps-post-card,
.ps-post-card-body,
.ps-entry-content,
.ps-layout,
.ps-feed,
.ps-sidebar {
    min-width: 0;
}

.ps-entry-content img,
.ps-post-card img,
.ps-page img,
.ps-single img {
    max-width: 100%;
    height: auto;
}

.ps-entry-content pre,
.ps-entry-content code,
.ps-post-card pre,
.ps-post-card code {
    max-width: 100%;
}

@media (max-width: 640px) {
    .ps-post-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-post-card-body {
        grid-column: 1;
        grid-row: 1;
        padding: 16px 2px 12px;
    }

    .ps-post-card-vote {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        padding: 8px 0 13px;
        border-right: 0;
        border-top: 0;
        background: transparent;
    }

    .ps-post-card-title {
        font-size: 1.08rem;
    }

    .ps-post-actions {
        flex-wrap: wrap;
    }

    .ps-single,
    .ps-page,
    .ps-comments {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

@media (max-width: 380px) {
    .ps-container,
    .ps-content-narrow {
        width: min(calc(100% - 16px), var(--ps-container));
    }

    .ps-hero h1 {
        font-size: clamp(2.15rem, 12vw, 2.7rem);
    }

    .ps-hero-actions .ps-button {
        width: 100%;
    }
}


/* v0.1.3 — red/white brand tuning + cleaner spacing */
.ps-button-admin {
    border-color: rgba(214,37,59,.35);
    color: #fff;
}

.ps-hero-actions + * {
    margin-top: 0;
}

.ps-sidebar-card,
.ps-widget {
    padding: 18px;
}

.ps-section-head + .ps-feed-list {
    margin-top: 0;
}

.ps-feed,
.ps-sidebar {
    align-self: start;
}

@media (max-width: 820px) {
    .ps-wordmark-mark-image {
        max-width: min(var(--ps-brand-logo-width, 48px), 92px);
    }
}

@media (max-width: 560px) {
    .ps-header-actions .ps-button-admin {
        display: none;
    }

    .ps-wordmark-mark-image {
        max-width: min(var(--ps-brand-logo-width, 48px), 72px);
    }
}

/* v0.1.4 — form alignment + responsive Q&A integration */
.comment-form,
.comment-form p,
.comment-form label,
.comment-form input,
.comment-form textarea,
.comment-form select {
    box-sizing: border-box;
}

.comment-form {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.comment-form p {
    margin: 0;
    min-width: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.comment-form textarea,
.comment-form select {
    width: 100%;
    min-width: 0;
}

.comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.comment-form select {
    min-height: 46px;
}

.comment-form .submit {
    min-height: 44px;
}

.ps-comment-list,
.ps-comment-list .children {
    min-width: 0;
}

@media (max-width: 640px) {
    .ps-comments {
        padding-inline: 12px;
    }

    .ps-comment-list {
        padding-left: 0;
    }

    .ps-comment-list .children {
        margin-left: 12px;
        padding-left: 10px;
        border-left: 1px solid var(--ps-border);
    }
}

@media (max-width: 380px) {
    .ps-comment-list .children {
        margin-left: 6px;
        padding-left: 7px;
    }
}

/* v0.1.7 — homepage vertical spacing correction */
.ps-home-main {
    padding-top: 0;
}

.ps-home-main > .ps-layout {
    padding-top: 42px;
}

.ps-home-main .ps-section-head {
    margin-top: 0;
}

.ps-home-main .ps-sidebar {
    padding-top: 0;
}

@media (max-width: 820px) {
    .ps-home-main > .ps-layout {
        padding-top: 32px;
    }
}

@media (max-width: 560px) {
    .ps-home-main > .ps-layout {
        padding-top: 26px;
    }
}

/* v0.1.8 — live feed ranking controls */
.ps-feed-controls {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 0;
}

.ps-feed-tabs a.ps-tab {
    text-decoration: none;
}

.ps-feed-periods {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.ps-feed-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid var(--ps-border);
    border-radius: 999px;
    color: var(--ps-muted);
    background: rgba(255,255,255,.018);
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}

.ps-feed-period:hover,
.ps-feed-period.is-active {
    border-color: rgba(214,37,59,.5);
    color: #fff;
    background: rgba(214,37,59,.12);
}

@media (max-width: 820px) {
    .ps-feed-controls {
        width: 100%;
        justify-items: stretch;
    }

    .ps-feed-periods {
        justify-content: flex-start;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
}


/* v0.2.4 — mobile header / branding / dropdown hardening */
.ps-site-header,
.ps-header-inner,
.ps-branding,
.ps-wordmark { min-width: 0; }
.ps-wordmark-mark-image { max-height: 52px; }
.ps-wordmark-mark-image img { max-height: 52px; }
.ps-menu .ps-submenu-toggle { display: none; }
@media (max-width: 1060px) {
    .ps-site-header { overflow: visible; }
    .ps-header-inner {
        min-height: 64px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding-block: 8px;
    }
    .ps-branding { overflow: hidden; }
    .ps-wordmark { min-width: 0; max-width: 100%; }
    .ps-wordmark > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ps-wordmark-mark-image {
        width: min(var(--ps-brand-logo-width, 48px), 44px) !important;
        max-width: 44px !important;
        height: 44px;
        max-height: 44px;
    }
    .ps-wordmark-mark-image img {
        width: 100%;
        height: 100%;
        max-height: 44px;
        object-fit: contain;
    }
    .custom-logo-link { display: inline-flex; align-items: center; max-height: 44px; }
    .custom-logo { width: auto; max-width: min(220px, 58vw); max-height: 44px; object-fit: contain; }
    .ps-nav-toggle { justify-self: end; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .ps-primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
        padding: 0 0 10px;
    }
    .ps-primary-nav.is-open { display: block; }
    .ps-menu { display: grid; gap: 4px; width: 100%; }
    .ps-menu > li { width: 100%; }
    .ps-menu > li > a { width: 100%; padding: 11px 12px; }
    .ps-menu .menu-item-has-children { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
    .ps-menu .menu-item-has-children > a { grid-column: 1; }
    .ps-menu .ps-submenu-toggle {
        display: inline-flex;
        grid-column: 2;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 2px;
        border: 1px solid var(--ps-border);
        border-radius: 9px;
        background: transparent;
        color: #fff;
    }
    .ps-menu .sub-menu,
    .ps-menu li:hover > .sub-menu,
    .ps-menu li:focus-within > .sub-menu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 2px 0 6px;
        padding: 5px 0 5px 12px;
        border: 0;
        border-left: 2px solid var(--ps-border);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .ps-menu li.is-submenu-open > .sub-menu { display: block; }
    .ps-header-actions {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        flex-wrap: wrap;
        padding-bottom: 4px;
    }
    .ps-header-actions .ps-search-form { flex: 1 1 240px; }
}
@media (max-width: 560px) {
    .ps-header-inner { min-height: 58px; padding-block: 7px; }
    .ps-wordmark { font-size: .96rem; gap: 7px; }
    .ps-wordmark-mark-image {
        width: min(var(--ps-brand-logo-width, 48px), 36px) !important;
        max-width: 36px !important;
        height: 36px;
        max-height: 36px;
    }
    .ps-wordmark-mark-image img { max-height: 36px; }
    .custom-logo-link, .custom-logo { max-height: 36px; }
    .custom-logo { max-width: min(190px, 56vw); }
    .ps-header-actions { gap: 6px; }
    .ps-header-actions .ps-search-form { flex-basis: 100%; order: 10; }
    .ps-header-actions .ps-button { min-height: 38px; padding: 8px 11px; }
}

@media (max-width: 560px) {
    .ps-header-actions .ps-button-ghost { display: inline-flex; }
    .ps-header-actions .ps-button-admin { display: none; }
}

/* v0.2.5 — mobile header/menu usability side patch */
.ps-mobile-nav-tools { display: none; }

@media (max-width: 1060px) {
    .ps-header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto;
        gap: 8px;
        min-height: 58px;
        padding-block: 7px;
    }
    .ps-branding { grid-column: 1; grid-row: 1; min-width: 0; align-self: center; }
    .ps-header-actions {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
        justify-self: end;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0;
    }
    .ps-nav-toggle {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        min-width: 42px;
        min-height: 42px;
        padding: 6px 9px;
    }
    .ps-header-actions > .ps-search-form,
    .ps-header-actions > .ps-button {
        display: none !important;
    }
    .ps-primary-nav {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px 0 12px;
        border-top: 1px solid var(--ps-border);
        overflow: visible;
    }
    .ps-primary-nav:not(.is-open) { display: none; }
    .ps-primary-nav.is-open { display: block; }
    .ps-menu {
        display: grid;
        gap: 4px;
        width: 100%;
        max-width: 100%;
    }
    .ps-menu > li,
    .ps-menu > li > a { max-width: 100%; }
    .ps-mobile-nav-tools {
        display: grid;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--ps-border);
    }
    .ps-mobile-nav-tools .ps-search-form {
        width: 100%;
        min-width: 0;
    }
    .ps-mobile-nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .ps-mobile-nav-actions .ps-button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
    }
}

@media (max-width: 560px) {
    .ps-header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 54px;
        gap: 6px;
    }
    .ps-wordmark > span:last-child { font-size: .9rem; }
    .ps-tagline { display: none !important; }
    .ps-wordmark-mark-image {
        width: min(var(--ps-brand-logo-width, 48px), 34px) !important;
        max-width: 34px !important;
        height: 34px !important;
        max-height: 34px !important;
    }
    .ps-wordmark-mark-image img,
    .custom-logo-link,
    .custom-logo { max-height: 34px !important; }
    .custom-logo { max-width: min(170px, 50vw); }
    .ps-notification-bell { width: 40px; height: 40px; }
    .ps-nav-toggle { min-width: 40px; min-height: 40px; }
    .ps-mobile-nav-actions { grid-template-columns: 1fr; }
    .ps-mobile-nav-actions .ps-button { justify-content: flex-start; }
}


/* v0.2.6 — keep mobile notification bell and hamburger on one header row */
@media (max-width: 1060px) {
    .ps-header-inner > .ps-branding,
    .ps-header-inner > .ps-header-actions,
    .ps-header-inner > .ps-nav-toggle {
        margin-block: 0;
    }
    .ps-header-actions {
        display: flex;
        align-items: center;
        align-self: center;
        justify-content: flex-end;
        white-space: nowrap;
    }
    .ps-header-actions .ps-notification-center {
        flex: 0 0 auto;
        margin: 0;
    }
    .ps-header-actions .ps-notification-bell {
        margin: 0;
    }
    .ps-primary-nav {
        align-self: stretch;
    }
}
