/* Pet journal prompt picker — scoped tool island. */

.pet-journal-prompts-page {
    --fur: #FF7A59;                   /* the pet cluster's article accent */
    --fur-deep: #C2482B;              /* white text passes 4.5:1 on this */
    --fur-dark: #8A3019;
    --ink: #2a1d18;
    --ink-soft: #66534b;
    --paper: #fffaf7;
    --paper-raised: #fbece5;
    --rule: #f0d9cd;
    --font-reading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tool-peek-bg: #C2482B;
}

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

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

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

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

.pj-lede a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--fur);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ------------------------------------------------------------ prompts ---- */
/* The three questions are the deliverable, so they read as a written-out card:
   numbered, ruled, and large enough to answer from across the room. */
.pj-prompts {
    counter-reset: pj-prompt;
    list-style: none;
    margin: 4px 0 10px;
    padding: 4px 0 0;
    border-top: 1px solid var(--rule);
}

.pj-prompts li {
    counter-increment: pj-prompt;
    position: relative;
    padding: 14px 0 14px 36px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.075rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    text-wrap: pretty;
}

.pj-prompts li::before {
    content: counter(pj-prompt);
    position: absolute;
    left: 0;
    top: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fur-deep);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pj-more-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 16px;
}

.pj-more-row:empty { display: none; }

.pj-more {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--fur-deep);
    border-radius: 10px;
    background: var(--paper);
    color: var(--fur-deep);
    font: inherit;
    font-size: 0.925rem;
    font-weight: 700;
    cursor: pointer;
    transition-property: background-color, color, scale;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.pj-more:hover { background: var(--fur-deep); color: #fff; }
.pj-more:active { scale: 0.96; }
.pj-more:focus-visible { outline: 2px solid var(--fur-deep); outline-offset: 2px; }

.pj-count {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.pj-rule {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--paper-raised);
}

.pj-rule-title {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fur-dark);
}

.pj-rule-body {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--ink);
}

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

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

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

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

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

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

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

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

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

.pj-cta-button {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;
    background: #fff;
    color: var(--fur-dark);
    font-weight: 700;
    text-decoration: none;
    transition-property: opacity, scale;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

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

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