/* Bearded dragon type check — scoped tool island. */

.bt-page {
    --scale: #D08A3C;
    --scale-deep: #8C5518;
    --ink: #23231f;
    --ink-soft: #5f5c55;
    --paper: #fdfbf7;
    --paper-raised: #f5efe5;
    --rule: #e5dccc;
    --font-reading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tool-peek-bg: #8C5518;
}

.bt-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 20px 60px;
    font-family: var(--font-reading);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-sketch .bt-container p,
body.page-sketch .bt-container li,
body.page-sketch .bt-container a,
body.page-sketch .bt-container span,
body.page-sketch .bt-container label,
body.page-sketch .bt-container legend,
body.page-sketch .bt-container h2,
body.page-sketch .bt-container h3 {
    font-family: var(--font-reading);
}

body.page-sketch .bt-container .bt-title,
body.page-sketch .bt-container .bt-result-headline {
    font-family: var(--font-ui);
}

.bt-title {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 16px;
    text-wrap: balance;
}

.bt-lede {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 36px;
    text-wrap: pretty;
}

/* ---------------------------------------------------------------- form ---- */
.type-check {
    background: var(--paper-raised);
    border-radius: 18px;
    padding: 26px 28px;
}

.bt-form {
    display: grid;
    gap: 20px;
    margin: 0;
}

.bt-field {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.bt-field legend {
    padding: 0;
    margin: 0 0 9px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
}

.bt-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bt-options label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;                 /* hit area */
    padding: 9px 16px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition-property: background-color, border-color, color, scale;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.bt-options label:hover { border-color: var(--scale-deep); color: var(--scale-deep); }
.bt-options label:active { scale: 0.96; }

.bt-options input:checked + label {
    background: var(--scale-deep);
    border-color: var(--scale-deep);
    color: #fff;
}

.bt-options input:focus-visible + label {
    outline: 2px solid var(--scale-deep);
    outline-offset: 2px;
}

/* -------------------------------------------------------------- result ---- */
.bt-result {
    margin-top: 22px;
    padding: 22px 24px;
    background: var(--paper);
    border-radius: 14px;
}

.bt-result-label {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--scale-deep);
}

.bt-result-headline {
    margin: 0 0 14px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.bt-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.bt-stats li {
    flex: 1 1 150px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--paper-raised);
}

.bt-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.bt-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ink-soft);
}

.bt-result-body {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
}

.bt-result-body:last-child { margin-bottom: 0; }

.bt-result-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--scale);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.bt-note {
    margin: 12px 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--scale);
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------------- prose --- */
.bt-prose {
    margin-top: 48px;
}

.bt-prose h2 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin: 36px 0 14px;
}

.bt-prose p,
.bt-prose li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
}

.bt-prose p { margin: 0 0 16px; }
.bt-prose ul { margin: 0 0 16px; padding-left: 1.35rem; }
.bt-prose li { margin-bottom: 8px; }

.bt-prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--scale);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .bt-container { padding: 56px 16px 40px; }
    .type-check { padding: 20px 18px; }
    .bt-result { padding: 18px 18px; }
    .bt-options label { flex: 1 1 100%; }
    .bt-result-headline { font-size: 1.55rem; }
}

/* Questions come and go with the first answer. `hidden` has to beat the
   fieldset's own display, and the form's grid gap must not leave a ghost row. */
.bt-field[hidden] { display: none; }
