.ps-chapter {
    font-size: 1.02rem;
    line-height: 1.55;
}

.ps-chapter h1,
.ps-chapter h2,
.ps-chapter h3 {
    margin-top: 0.8rem;
    margin-bottom: 0.6rem;
}

.ps-chapter .ps-lede {
    font-size: 1.06rem;
    opacity: 0.92;
    margin-bottom: 0.9rem;
}

.ps-block {
    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 14px 0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.ps-callout {
    position: relative;
    padding-left: 48px;
}

.ps-callout::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 14px;
    bottom: 14px;
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(75, 107, 7, 0.95), rgba(189, 116, 16, 0.75));
    opacity: 0.9;
}

.ps-callout-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.ps-def {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: start;
}

.ps-term {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.ps-badge {
    display: inline-block;
        padding: 1px 6px;
        border-radius: 4px;
        background: rgba(31, 35, 24, 0.06);
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-right: 6px;
        margin-bottom: 6px;
}

.ps-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 760px) {
    .ps-def {
        grid-template-columns: 1fr;
    }

    .ps-two-col {
        grid-template-columns: 1fr;
    }
}

.ps-divider {
    height: 1px;
    background: rgba(31, 35, 24, 0.14);
    margin: 18px 0;
}

.ps-list {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.ps-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    padding: 6px 0;
}

.ps-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 7px;
    background: rgba(75, 107, 7, 0.85);
}

.ps-tile-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}

@media (max-width: 900px) {
    .ps-tile-row {
        grid-template-columns: 1fr;
    }
}

.ps-tile {
    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.34);
    border-radius: 18px;
    padding: 14px 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.ps-tile h4 {
    margin: 0 0 6px 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.ps-muted {
    opacity: 0.9;
    font-style: italic;
}

.ps-callout-title i {
    margin-right: 8px;
    vertical-align: -1px;
}

.ps-highlight-term {
    background: rgba(132, 164, 4, 0.229);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.ps-highlight-critical {
    background: rgba(189, 116, 16, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 650;
}

.ps-highlight-wrong {
    background: rgba(186, 86, 14, 0.293);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 650;
}

.ps-highlight-subtle {
    background: rgba(189, 116, 16, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    font-style: italic;
}

/* table */

.ps-chapter table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    overflow: hidden;
}

.ps-chapter thead {
    background: rgba(75, 107, 7, 0.10);
}

.ps-chapter th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(31, 35, 24, 0.14);
}

.ps-chapter td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(31, 35, 24, 0.08);
}

.ps-chapter tr:last-child td {
    border-bottom: none;
}

.ps-chapter tbody tr:hover {
    background: rgba(75, 107, 7, 0.05);
}

/* true false lists */

.ps-myths {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.ps-myth {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;

    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    padding: 12px 14px;

    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.ps-myth-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;

    background: rgba(189, 116, 16, 0.10);
    border: 1px solid rgba(31, 35, 24, 0.12);
}

.ps-myth-icon i {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.95;
}

.ps-myth-title {
    font-weight: 750;
    margin-bottom: 4px;
}

.ps-myth-text {
    opacity: 0.92;
}

.ps-myth-body {
    min-width: 0;
}

/* in-line quotes */

.ps-quote-inline {
    background: rgba(189, 116, 16, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    font-style: italic;
    white-space: nowrap;
}

.ps-quote-inline::before {
    content: "“";
    opacity: 0.6;
}

.ps-quote-inline::after {
    content: "”";
    opacity: 0.6;
}

/* rule */
.ps-rule {
    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 16px 0;
}

.ps-rule-title {
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ps-clean-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.ps-clean-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(31, 35, 24, 0.08);
}

.ps-clean-list li:last-child {
    border-bottom: none;
}

/* freq */
.ps-frequency {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(189, 116, 16, 0.08);
    border: 1px solid rgba(31, 35, 24, 0.12);
}

.ps-frequency-stat {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 6px 0;
}

/* plain english */

.ps-plain {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;

    background: rgba(132, 164, 4, 0.229);
    border-left: 4px solid rgba(75, 107, 7, 0.6);

    font-size: 0.98rem;
}

.ps-plain-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* source call out */
.ps-source {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;

    background: rgba(211, 166, 40, 0.229);
    border-left: 4px solid rgba(107, 79, 7, 0.6);

    font-size: 0.98rem;
}

.ps-source-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* advice call out */
.ps-advice {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;

    background: rgba(210, 97, 44, 0.229);
    border-left: 4px solid rgba(107, 44, 7, 0.6);

    font-size: 0.98rem;
}

.ps-advice-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* decision matrix */
.ps-decision-matrix {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.ps-matrix-header {
    font-weight: 700;
    text-align: center;
    padding: 10px;
    background: rgba(31, 35, 24, 0.08);
    border-radius: 10px;
}

.ps-matrix-side {
    font-weight: 700;
    padding: 12px 10px;
    display: flex;
    align-items: center;
}

.ps-matrix-cell {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.ps-matrix-title {
    font-weight: 750;
    margin-bottom: 6px;
}

.ps-error {
    background: rgba(200, 60, 60, 0.06);
    border: 1px solid rgba(200, 60, 60, 0.25);
}

.ps-correct {
    background: rgba(75, 107, 7, 0.06);
    border: 1px solid rgba(75, 107, 7, 0.25);
}

@media (max-width: 800px) {
    .ps-decision-matrix {
        grid-template-columns: 1fr;
    }

    .ps-matrix-header,
    .ps-matrix-side {
        text-align: left;
    }
}

.ps-matrix-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0 10px 0;
}

.ps-matrix {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    grid-template-areas:
        "corner col1 col2"
        "row1   a    b"
        "row2   c    d";
    gap: 10px;
    align-items: stretch;
}

.ps-mx-col1 {
    grid-area: col1;
}

.ps-mx-col2 {
    grid-area: col2;
}

.ps-mx-row1 {
    grid-area: row1;
}

.ps-mx-row2 {
    grid-area: row2;
}

.ps-mx-a {
    grid-area: a;
}

.ps-mx-b {
    grid-area: b;
}

.ps-mx-c {
    grid-area: c;
}

.ps-mx-d {
    grid-area: d;
}

.ps-mx-top {
    font-weight: 750;
    text-align: center;
    padding: 10px 12px;
    background: rgba(31, 35, 24, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(31, 35, 24, 0.10);
}

.ps-mx-left {
    font-weight: 750;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(31, 35, 24, 0.10);
    background: rgba(31, 35, 24, 0.04);
    display: flex;
    align-items: center;
}

.ps-mx-cell {
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(31, 35, 24, 0.14);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.ps-matrix-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.ps-error {
    background: rgba(200, 60, 60, 0.06);
    border: 1px solid rgba(200, 60, 60, 0.25);
}

.ps-correct {
    background: rgba(75, 107, 7, 0.06);
    border: 1px solid rgba(75, 107, 7, 0.25);
}

@media (max-width: 820px) {
    .ps-matrix {
        grid-template-columns: 1fr;
        grid-template-areas:
            "col1"
            "col2"
            "row1"
            "a"
            "b"
            "row2"
            "c"
            "d";
    }

    .ps-mx-top {
        text-align: left;
    }
}

/* data types cols */

.ps-data-type h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 700;
}

.ps-subcard {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(31, 35, 24, 0.10);
    background: rgba(255, 255, 255, 0.35);
}

.ps-subtitle {
    font-weight: 700;
    margin-bottom: 4px;
}

/* 3 col */

.ps-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 18px 0;
}

@media (max-width: 992px) {
    .ps-three-col {
        grid-template-columns: 1fr;
    }
}