/* Wardrobe app finder — scoped tool island.
 *
 * The wardrobe cluster's pink (the --article-accent of best-wardrobe-apps),
 * deepened so white text on it passes contrast, on the site's usual paper. */

.wardrobe-app-finder-page {
    --rail: #EC4899;                  /* the wardrobe cluster's article accent */
    --rail-deep: #B0306F;
    --rail-soft: #c97aa0;
    --ink: #2a1f24;
    --ink-soft: #6a5862;
    --paper: #fefafb;
    --paper-raised: #f8ecf1;
    --rule: #ecd6e0;
    --font-reading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tool-peek-bg: #B0306F;
}

.wf-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 .wf-container p,
body.page-sketch .wf-container li,
body.page-sketch .wf-container a,
body.page-sketch .wf-container span,
body.page-sketch .wf-container label,
body.page-sketch .wf-container legend,
body.page-sketch .wf-container h2,
body.page-sketch .wf-container h3 {
    font-family: var(--font-reading);
}

body.page-sketch .wf-container .wf-title,
body.page-sketch .wf-container .wf-result-headline {
    font-family: 'Kalam', sans-serif;
}

.wf-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;
}

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

.wf-lede a { color: var(--rail-deep); }

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

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

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

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

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

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

.wf-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);
}

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

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

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

/* The first question's answers are sentences, so they
   stack as full-width rows with a visible dot instead of wrapping as chips. */
.wf-options-stack label {
    flex: 1 1 100%;
    padding-left: 40px;
    position: relative;
    font-weight: 500;
}

.wf-options-stack label::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -10px;
    border: 2px solid var(--rule);
    border-radius: 50%;
    background: var(--paper);
    transition: border-color 0.15s, background-color 0.15s;
}

.wf-options-stack input:checked + label::before {
    border-color: #fff;
    background: radial-gradient(circle, var(--rail-deep) 0 4px, #fff 4.5px);
}

.wf-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

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

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

.wf-result-headline {
    margin: 0 0 12px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

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

/* Rating and price, so the claim and its receipt sit together rather than in a
   separate row nobody connects to the app above it. */
.wf-spec {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rail-deep);
}

/* Fixed in every answer: what this page refuses to answer, and who answers it.
   Sits below the answer and above the source line, and never truncates. */
.wf-result-guard {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--paper-raised);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.wf-result-body a,
.wf-result-guard a,
.wf-result-meta a,
.wf-note a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--rail-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.wf-result-meta {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

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

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

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

.wf-prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    margin: 24px 0 8px;
}

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

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

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

/* ------------------------------------------------------------------ cta --- */
.wf-cta {
    margin-top: 44px;
    padding: 28px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rail), var(--rail-deep));
    color: #fff;
    text-align: center;
}

.wf-cta h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}

.wf-cta p {
    margin: 0 0 20px;
    line-height: 1.55;
    opacity: 0.94;
}

/* A class rather than `.wf-cta a`, so an inline link in the paragraph above
   isn't rendered white on white. */
.wf-cta-button {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;
    background: #fff;
    color: var(--rail-deep);
    font-weight: 700;
    text-decoration: none;
    transition-property: opacity, scale;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.wf-cta-button:hover { opacity: 0.92; }
.wf-cta-button:active { scale: 0.96; }

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