/* ==========================================================================
   /parse-syntax.php — translation matrix for non-IT nodes (V89, Sprint 5
   handoff "Parse Syntax"). Light console: orange prompt headline, dark-teal
   matrix terms, dashed row rules. Metrics are the dummy's.
   ========================================================================== */

.ps-main {
    text-align: left;
    padding-bottom: 40px;
}

.ps-section {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-main);
    font-size: 1.05rem;
}

/* base.css styles every h1 as the centered lowercase brand flex row —
   this one is a plain left-aligned headline */
.ps-title {
    display: block;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    text-wrap: balance;
    color: var(--brand-orange);
    margin: 0 0 24px;
}

/* V91 (AQ): text colours are LITERALS on purpose (the DoD probe reads this
   file): #2F7A86 = the running-text link colour (4.94:1 on white), #254a4b
   = dark teal (9.72:1). #358691 (--brand-blue) stays the button/brand
   register; as text it was 4.23:1. */
.ps-title-sub {
    font-weight: 400;
    color: #2F7A86;
}

.ps-lead {
    font-size: 1.15rem;
    color: var(--dark-teal);
    margin: 0 0 16px;
}

.ps-copy { margin: 0 0 16px; }
.ps-copy--last { margin-bottom: 24px; }
.ps-copy--close { margin-bottom: 20px; }

.ps-matrix {
    margin: 0 0 40px;
    padding: 6px 22px 4px;
    background: var(--bg-light);
    border: 1px solid rgba(var(--brand-blue-rgb), 0.2);
    border-radius: 6px;
}

.ps-row {
    display: grid;
    grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
    gap: 4px 24px;
    padding: 14px 0;
    border-top: 1px dashed rgba(var(--brand-blue-rgb), 0.3);
}

.ps-row:first-child { border-top: none; }

.ps-row dt {
    font-family: var(--font-code);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark-teal);
}

.ps-row dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.ps-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
    border: 1px dashed rgba(var(--brand-blue-rgb), 0.35);
    border-radius: 6px;
    margin: 0 0 40px;
}

.ps-box-title {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin: 0;
}

.ps-box-copy {
    margin: 0;
    font-size: 1rem;
    color: #475569;
}

.ps-btn {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 120ms linear, color 120ms linear, border-color 120ms linear;
}

.ps-btn--line {
    background: transparent;
    color: #254a4b;
    border: 1px solid #254a4b;
}

.ps-btn--line:hover,
.ps-btn--line:focus-visible {
    background: #254a4b;
    color: #ffffff;
}

.ps-btn--fill {
    background: var(--dark-teal);
    color: #ffffff;
    border: 1px solid var(--dark-teal);
}

/* V97 (DA): the hover/focus fill is the accent #2F7A86 (white on it 4.94:1);
   --brand-blue #358691 gave 4.23:1 */
.ps-btn--fill:hover,
.ps-btn--fill:focus-visible {
    background: #2F7A86;
    border-color: #2F7A86;
    color: #ffffff;
}

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

/* house rule: every element with an explicit display needs this */
.ps-title[hidden], .ps-row[hidden], .ps-box[hidden], .ps-btn[hidden] {
    display: none;
}
