/* fktrr.css — FKT Route Rubric
   House style shared with fkt-difficulty-scorer, fkt-attempt-scorer and
   fkt-portfolio-scorer: Georgia serif, warm brown accent, bordered cards with a
   solid header band, sans-serif small caps for labels, no shadows.

   Width: max-width with width:100% and border-box, so the block never grows
   past a narrower theme column. */

.fktrr {
    font-family: 'Georgia', serif;
    max-width: 760px;
    width: 100%;
    margin: 2rem auto;
    color: #1a1a1a;
    line-height: 1.6;
    box-sizing: border-box;
}

.fktrr *,
.fktrr *::before,
.fktrr *::after { box-sizing: border-box; }

.fktrr-lede { color: #555; margin: 0 0 1.75rem; }

/* ── Question cards ── */

.fktrr-block {
    border: 1px solid #d8cfc4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin: 0 0 1.5rem;
}

.fktrr-h {
    background: #4a3728;
    color: #fff;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0;
    padding: 1.1rem 2rem .9rem;
    border: none;
}

.fktrr-block > .fktrr-note {
    font-size: .82rem;
    font-family: sans-serif;
    color: #666;
    line-height: 1.6;
    background: #faf8f5;
    padding: .9rem 2rem;
    margin: 0;
    border-bottom: 1px solid #e8e0d6;
}

.fktrr-req,
.fktrr-item {
    padding: 1.4rem 2rem 1.5rem;
    border-bottom: 1px solid #e8e0d6;
}
.fktrr-req:last-child,
.fktrr-item:last-child { border-bottom: none; }

.fktrr-q {
    font-size: 1.02rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 .2rem;
}

.fktrr-n {
    display: inline-block;
    min-width: 1.5rem;
    color: #b0a090;
    font-weight: normal;
}

.fktrr-help {
    font-size: .82rem;
    font-family: sans-serif;
    color: #666;
    line-height: 1.6;
    margin: .3rem 0 .85rem;
}

/* Answers */

.fktrr-yn { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fktrr-yn label {
    font-size: .85rem;
    font-family: sans-serif;
    color: #555;
    cursor: pointer;
}
.fktrr-yn input { margin-right: .4rem; }

.fktrr-opt {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .34rem 0;
    font-size: .9rem;
    font-family: sans-serif;
    color: #555;
    line-height: 1.55;
    cursor: pointer;
}
.fktrr-opt input { margin-top: .3rem; flex-shrink: 0; }

.fktrr-val {
    flex: 0 0 auto;
    min-width: 1.15rem;
    text-align: center;
    color: #b0a090;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.fktrr-pts {
    float: right;
    font-family: sans-serif;
    font-size: .75rem;
    font-weight: normal;
    letter-spacing: .04em;
    color: #999;
    border: 1px solid #e0d8ce;
    border-radius: 3px;
    padding: .1rem .5rem;
    font-variant-numeric: tabular-nums;
}
.fktrr-pts.is-full { color: #4a6b3a; border-color: #cfdcc6; background: #f4f8f1; }
.fktrr-pts.is-part { color: #8a6d3b; border-color: #e8dcc4; background: #faf6ef; }
.fktrr-pts.is-zero { color: #a3403c; border-color: #eccfcd; background: #fdf3f2; }

/* ── Result card ── */

.fktrr-result {
    display: block;
    border: 1px solid #d8cfc4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin: 0 0 1.25rem;
}

.fktrr-empty {
    font-family: sans-serif;
    font-size: .9rem;
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 1.5rem 2rem;
}

/* Header band, mirroring the scorers' score header */

.fktrr-score {
    background: #4a3728;
    color: #fff;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
}

.fktrr-score-n {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
    flex: 0 0 auto;
}
.fktrr-score-d { font-size: 1.2rem; font-weight: normal; opacity: .6; }

.fktrr-score-meta { flex: 1; min-width: 200px; }

.fktrr-bar {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, .22);
    border-radius: 5px;
}
.fktrr-bar-fill {
    height: 100%;
    background: #d8cfc4;
    border-radius: 5px;
    transition: width .3s ease;
}
.fktrr-bar-fill.is-good { background: #a8c496; }
.fktrr-bar-mark {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 18px;
    background: #fff;
    opacity: .8;
}

.fktrr-score-label {
    font-size: .85rem;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
    margin: .6rem 0 0;
}

/* Verdict strip */

.fktrr-verdict {
    display: block;
    padding: 1.1rem 2rem;
    margin: 0;
    border-bottom: 1px solid #e8e0d6;
    border-left: 4px solid #b0a090;
    background: #faf8f5;
}
.fktrr-verdict strong { display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.fktrr-verdict span {
    font-size: .82rem;
    font-family: sans-serif;
    color: #666;
    line-height: 1.6;
}
.fktrr-verdict.is-good { border-left-color: #4a7a3c; background: #f4f8f1; }
.fktrr-verdict.is-warn { border-left-color: #b8863b; background: #fbf6ee; }
.fktrr-verdict.is-bad  { border-left-color: #c0392b; background: #fdf0f0; }

/* Lists */

.fktrr-sec {
    padding: 1.4rem 2rem 1.5rem;
    border-bottom: 1px solid #e8e0d6;
}
.fktrr-result > .fktrr-sec:last-child { border-bottom: none; }

.fktrr-rh {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #7a6555;
    font-family: sans-serif;
    font-weight: normal;
    margin: 0 0 .8rem;
}

.fktrr-list { margin: 0; padding-left: 1.2rem; }
.fktrr-list li {
    font-size: .9rem;
    font-family: sans-serif;
    color: #555;
    line-height: 1.6;
    margin-bottom: .55rem;
}
.fktrr-list li:last-child { margin-bottom: 0; }
.fktrr-list em { font-style: normal; font-weight: bold; color: #1a1a1a; }

.fktrr-result > .fktrr-note {
    font-size: .82rem;
    font-family: sans-serif;
    color: #666;
    background: #faf8f5;
    padding: 1.25rem 2rem;
    margin: 0;
}

/* ── Actions ── */

.fktrr-actions {
    padding: 1.25rem 2rem;
    background: #f5f0ea;
    border: 1px solid #d8cfc4;
    border-radius: 6px;
    margin: 0 0 1.5rem;
}

.fktrr-actions .fktrr-note {
    font-size: .78rem;
    font-family: sans-serif;
    color: #999;
    margin: .8rem 0 0;
}

.fktrr-btn {
    display: inline-block;
    padding: .5rem 1.4rem;
    background: #4a3728;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
    text-decoration: none;
    margin-right: .6rem;
    transition: background .15s;
}
.fktrr-btn:hover { background: #2e2018; }

.fktrr-btn-quiet {
    background: transparent;
    border: none;
    color: #888;
    padding: 0;
    font-size: .85rem;
    text-decoration: underline;
}
.fktrr-btn-quiet:hover { background: transparent; color: #333; }

.fktrr-foot {
    font-size: .82rem;
    font-family: sans-serif;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.fktrr-foot a { color: #4a3728; }

/* ── Responsive ── */

@media ( max-width: 520px ) {
    .fktrr-score { flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.5rem 1rem; }
    .fktrr-score-n { font-size: 2.6rem; }
    .fktrr-h { padding: 1rem 1rem .85rem; }
    .fktrr-block > .fktrr-note,
    .fktrr-result > .fktrr-note { padding: .9rem 1rem; }
    .fktrr-req,
    .fktrr-item,
    .fktrr-sec,
    .fktrr-verdict,
    .fktrr-actions,
    .fktrr-empty { padding-left: 1rem; padding-right: 1rem; }
    .fktrr-pts { float: none; display: inline-block; margin-left: .5rem; }
    .fktrr-btn { margin-bottom: .5rem; }
}
