/* Counter-Stratagem Finder — 水墨 treatment, sharing the series theme in
   assets/css/oriental.css (rice paper, ink, one cinnabar accent). Class names
   are fixed by app.js.

   Everything here sits on the PAPER ground, so text uses the light-surface ink
   tokens (--o-ink / --o-ink-2 / --o-ink-soft). No --rt-result-* anywhere: those
   are for the navy result box and are unreadable on paper
   (docs/contrast-conventions.md, CI-gated). */

#csf { max-width: 780px; margin: 0 auto; color: var(--o-ink); }

/* ── the checklist ───────────────────────────────────────────────────── */
.csf-lede {
    font-family: var(--o-serif); font-size: 1.04rem; line-height: 1.7;
    color: var(--o-ink-2); margin: 0 0 1.3rem; max-width: 64ch;
}

.csf-group { border: 0; padding: 0; margin: 0 0 1.4rem; }
.csf-group legend {
    font-family: var(--o-mono); font-size: .68rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--o-seal);
    padding: 0 0 .5rem; border-bottom: 1px solid var(--o-line-soft);
    margin-bottom: .55rem; width: 100%;
}

.csf-item {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .6rem .5rem; border-radius: 2px; cursor: pointer;
    /* 44px minimum touch target, same as the rest of the cluster. */
    min-height: 44px; line-height: 1.55;
}
.csf-item:hover { background: rgba(157, 43, 37, .05); }
.csf-item input { margin-top: .28rem; width: 17px; height: 17px; accent-color: var(--o-seal); flex: 0 0 auto; }
.csf-item span { font-size: .96rem; color: var(--o-ink-2); }

.csf-bar {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
    padding: .8rem 0; margin-top: .5rem;
    background: linear-gradient(to top, var(--o-paper) 72%, rgba(242, 235, 218, 0));
    border-top: 1px solid var(--o-line-soft);
}
.csf-count { font-family: var(--o-mono); font-size: .78rem; color: var(--o-ink-soft); margin-right: auto; }

.csf-btn {
    font-family: var(--o-mono); font-size: .76rem; letter-spacing: .1em;
    text-transform: uppercase; padding: .62rem 1.05rem; border-radius: 2px;
    cursor: pointer; min-height: 44px; border: 1px solid var(--o-line);
    background: rgba(255, 253, 246, .8); color: var(--o-ink-2);
}
.csf-btn--go { background: linear-gradient(150deg, var(--o-seal-2), var(--o-seal)); border-color: var(--o-seal); color: #fdf6ec; font-weight: 700; }
.csf-btn:hover { border-color: var(--o-ink); }
.csf-btn--go:hover { filter: brightness(1.06); }

/* ── verdicts ────────────────────────────────────────────────────────── */
/* THIN and WEAK are answers, not errors. They get the same visual weight as
   STRONG so that the honest result does not read as a failure the reader
   should click past. */
.csf-note, .csf-banner {
    border: 1px solid var(--o-line-soft); border-left: 3px solid var(--o-line);
    background: rgba(255, 253, 246, .72); padding: 1.1rem 1.25rem;
    border-radius: 2px; margin: 1.2rem 0;
}
.csf-note h3, .csf-banner h3 { font-family: var(--o-serif); font-size: 1.14rem; color: var(--o-ink); margin: 0 0 .4rem; }
.csf-note p, .csf-banner p { margin: 0; font-size: .95rem; line-height: 1.72; color: var(--o-ink-2); }
.csf-strong { border-left-color: var(--o-seal); }
.csf-weak { border-left-color: var(--o-gold); }
.csf-thin { border-left-color: var(--o-gold); }

/* ── result cards ────────────────────────────────────────────────────── */
.csf-card {
    border: 1px solid var(--o-line); border-radius: 2px;
    background: rgba(255, 253, 246, .72);
    padding: 1.2rem 1.3rem; margin: .9rem 0;
}
.csf-card--lead { border-top: 3px solid var(--o-seal); }

.csf-card-h { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-bottom: .9rem; }
.csf-num {
    font-family: var(--o-mono); font-size: .62rem; font-weight: 700; color: #fdf6ec;
    background: linear-gradient(150deg, var(--o-seal-2), var(--o-seal));
    padding: .16rem .4rem; border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(253, 246, 236, .45);
}
.csf-hz { font-family: var(--o-han); font-size: 1.5rem; font-weight: 800; color: var(--o-ink); letter-spacing: .05em; }
.csf-py { font-family: var(--o-serif); font-style: italic; font-size: .84rem; color: var(--o-gold); }
.csf-lit { font-family: var(--o-serif); font-size: 1rem; color: var(--o-ink-2); flex-basis: 100%; }

.csf-card h4 {
    font-family: var(--o-mono); font-size: .64rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--o-seal);
    margin: 1.05rem 0 .35rem;
}
.csf-card p { margin: 0; font-size: .95rem; line-height: 1.75; color: var(--o-ink-2); }
.csf-tells { margin: .2rem 0 0; padding-left: 1.15rem; }
.csf-tells li { font-size: .95rem; line-height: 1.72; color: var(--o-ink-2); margin-bottom: .3rem; }

/* The confirm block is the conscience of the tool — gold rule, same treatment
   the cluster gives its sources notes, so it reads as the thing to do FIRST. */
.csf-confirm { background: rgba(168, 135, 60, .09); border-left: 3px solid var(--o-gold); padding: .8rem 1rem; margin-top: 1rem; }
.csf-confirm h4 { margin-top: 0; color: var(--o-ink); }

.csf-counter { border-left: 3px solid var(--o-seal); padding: .8rem 1rem; background: rgba(157, 43, 37, .06); margin-top: .8rem; }
.csf-counter h4 { margin-top: 0; }

.csf-mistake { margin-top: .9rem; }

.csf-why { margin-top: .95rem; font-size: .88rem; color: var(--o-ink-soft); }
.csf-why summary { cursor: pointer; font-family: var(--o-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--o-ink-soft); min-height: 44px; display: flex; align-items: center; }
.csf-why ul { margin: .3rem 0 0; padding-left: 1.15rem; }
.csf-why li { line-height: 1.6; margin-bottom: .25rem; }

.csf-more {
    display: inline-block; margin-top: 1rem; font-family: var(--o-mono);
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--o-seal); text-decoration: none; min-height: 44px; line-height: 44px;
}
.csf-more:hover { color: var(--o-ink); }

.csf-disclaimer {
    margin-top: 1.6rem; padding: .9rem 1.1rem;
    background: rgba(168, 135, 60, .08); border-left: 3px solid var(--o-gold);
    font-size: .87rem; line-height: 1.72; color: var(--o-ink-soft);
}

.csf-err { font-size: .95rem; color: var(--o-ink-2); }

@media (max-width: 560px) {
    .csf-bar { gap: .5rem; }
    .csf-btn { flex: 1 1 auto; text-align: center; }
    .csf-count { flex-basis: 100%; margin-bottom: .2rem; }
}

/* Pointer to the offensive sibling (RT-CNC-001). Muted ink on paper. */
.csf-sibling {
    margin: 1.1rem auto 0; max-width: 780px;
    font-size: .9rem; line-height: 1.7; color: var(--o-ink-soft);
}
.csf-sibling a { color: var(--o-seal); text-decoration: none; font-weight: 600; white-space: nowrap; }
.csf-sibling a:hover { color: var(--o-ink); }
