/*
 * 記事「PHPの重大な脆弱性「php2shell」とは？管理サイトを実際に点検してわかったこと」専用CSS
 * - hooksで、この記事（スラッグ未定）のときだけ読み込む想定
 * - すべてのセレクタは .ps- で始まり、他の記事・ページには影響しない
 * - 色・余白・角丸は article-security.css（.sc-cover-b）に合わせる
 */
:root {
    --ps-green: #105440;
    --ps-deep: #213b30;
    --ps-ink: #192320;
    --ps-amber: #b07a2a;
}

.journal-article-top:has(.ps-cover) h1,
.journal-card:has(.ps-cover) h2 {
    word-break: auto-phrase;
    text-wrap: balance;
}

/* ---------- 冒頭ビジュアル（既存記事と同じ緑のパネル） ---------- */
.ps-cover-wrap {
    container-type: inline-size;
}
.ps-cover {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: center;
    padding: 40px 48px;
    background: linear-gradient(125deg, #d9e4df, #f0f4f0 70%, #d5dfd4);
    color: var(--ps-deep);
    word-break: auto-phrase;
}
.ps-cover p,
.ps-cover ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ps-cover-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    color: #4f7363;
}
.ps-cover-label {
    margin-top: 14px !important;
    font-size: 15px;
    font-weight: 900;
    color: #4f7363;
}
.ps-cover-ver {
    margin-top: 2px !important;
    font-size: 88px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--ps-green);
    font-feature-settings: "tnum";
}
.ps-cover .ps-cover-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px !important;
    padding: 6px 14px;
    background: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    color: var(--ps-green);
}
.ps-cover-ok span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ps-green);
    color: #fff;
    font-size: 12px;
}
.ps-sheet {
    padding: 18px 26px 12px;
    background: #fff;
    border-top: 4px solid var(--ps-green);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(33, 59, 48, .08);
}
.ps-sheet-head {
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #4f7363;
}
.ps-sheet li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e3eae5;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--ps-ink);
}
.ps-sheet li:last-child {
    border-bottom: 0;
}
.ps-sheet-mark {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--ps-amber);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

/* 一覧カードなど、狭い幅のとき */
@container (max-width: 760px) {
    .ps-cover {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 20px;
    }
    .ps-cover-label {
        margin-top: 10px !important;
        font-size: 13px;
    }
    .ps-cover-ver {
        font-size: 60px;
    }
    .ps-cover .ps-cover-ok {
        margin-top: 10px !important;
        font-size: 13px;
    }
    .ps-sheet {
        padding: 12px 18px 6px;
    }
    .ps-sheet li {
        gap: 12px;
        padding: 9px 0;
        font-size: 15px;
    }
}
