/* 엄마·부모 기질검사 전용 UI — kid1004 기존 토큰과 톤을 확장 */
.pt-page {
    min-height: 100vh;
}

.pt-page [hidden] {
    display: none !important;
}

.pt-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 680px);
    margin: 0 auto 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    background: color-mix(in srgb, var(--card-bg) 94%, transparent);
    box-shadow: 0 8px 24px rgba(93, 78, 78, 0.08);
}

.pt-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text-main);
    text-decoration: none;
}

.pt-site-brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--primary-light), var(--secondary-light));
    font-size: 1.45rem;
}

.pt-site-brand strong,
.pt-site-brand small {
    display: block;
}

.pt-site-brand strong {
    font-size: 1rem;
    line-height: 1.25;
}

.pt-site-brand small {
    margin-top: 2px;
    color: var(--text-sub);
    font-size: 0.75rem;
    line-height: 1.2;
}

.pt-shell {
    width: min(100%, 700px);
    margin: 0 auto;
}

.pt-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 6vw, 42px);
    border: 1px solid #F1CAD3;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(152, 216, 200, 0.34), transparent 25%),
        radial-gradient(circle at 6% 94%, rgba(255, 229, 180, 0.52), transparent 29%),
        linear-gradient(145deg, #FFF9F7 0%, #FFF0F3 100%);
    box-shadow: 0 16px 42px rgba(136, 79, 94, 0.13);
    text-align: center;
}

.pt-hero::after {
    content: '🌷';
    position: absolute;
    right: 22px;
    bottom: 12px;
    opacity: 0.22;
    font-size: clamp(3rem, 10vw, 5.5rem);
    transform: rotate(8deg);
    pointer-events: none;
}

.pt-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #8D4057;
    box-shadow: 0 3px 12px rgba(141, 64, 87, 0.1);
    font-size: 0.78rem;
    font-weight: 850;
}

.pt-hero h1 {
    margin: 15px 0 9px;
    color: #523D40;
    font-family: var(--font-casual);
    font-size: clamp(1.85rem, 6vw, 2.65rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.pt-hero h1 span {
    color: #A44361;
}

.pt-hero-lead {
    max-width: 560px;
    margin: 0 auto;
    color: #6A575A;
    font-size: 1rem;
    line-height: 1.72;
}

.pt-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0;
}

.pt-trust-row span {
    padding: 6px 10px;
    border: 1px solid rgba(141, 64, 87, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #5F4D50;
    font-size: 0.76rem;
    font-weight: 750;
}

.pt-safety-note {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: 0 auto 18px;
    padding: 13px 15px;
    border: 1px solid #D7E7E2;
    border-radius: 15px;
    background: rgba(246, 255, 252, 0.9);
    color: #4F625D;
    font-size: 0.82rem;
    line-height: 1.65;
    text-align: left;
}

.pt-primary-button,
.pt-secondary-button,
.pt-ghost-button {
    min-height: 48px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 0.96rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pt-primary-button {
    padding: 12px 22px;
    border: 0;
    background: linear-gradient(135deg, #A44361, #7D304B);
    box-shadow: 0 9px 22px rgba(164, 67, 97, 0.25);
    color: #FFFFFF;
}

.pt-secondary-button {
    padding: 11px 17px;
    border: 1px solid #D7BBC3;
    background: var(--card-bg);
    color: var(--text-main);
}

.pt-ghost-button {
    padding: 10px 15px;
    border: 0;
    background: transparent;
    color: var(--text-sub);
}

.pt-primary-button:hover,
.pt-secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(93, 78, 78, 0.16);
}

.pt-primary-button:focus-visible,
.pt-secondary-button:focus-visible,
.pt-ghost-button:focus-visible,
.pt-answer input:focus-visible + span,
.pt-scenario-button:focus-visible,
.pt-editorial details > summary:focus-visible,
.pt-cross-link:focus-visible,
.pt-site-brand:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.38);
    outline-offset: 3px;
}

.pt-primary-button:disabled {
    opacity: 0.42;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.pt-hero-subaction {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    color: #745B62;
    font-size: 0.82rem;
    font-weight: 700;
    text-underline-offset: 3px;
}

.pt-quiz {
    margin-top: 16px;
}

.pt-progress-card {
    position: sticky;
    top: 6px;
    z-index: 20;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    background: color-mix(in srgb, var(--card-bg) 94%, transparent);
    box-shadow: 0 7px 20px rgba(93, 78, 78, 0.09);
    backdrop-filter: blur(10px);
}

.pt-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--text-sub);
    font-size: 0.8rem;
    font-weight: 750;
}

.pt-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-color);
}

.pt-progress-fill {
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #A44361, #E08A70, #76B6A7);
    transition: width 0.28s ease;
}

.pt-question-card {
    margin-top: 12px;
    padding: clamp(20px, 5vw, 30px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.pt-question-axis {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--secondary-light);
    color: #3E6E63;
    font-size: 0.74rem;
    font-weight: 850;
}

.pt-question-number {
    margin-top: 12px;
    color: #A44361;
    font-size: 0.8rem;
    font-weight: 850;
}

.pt-question-text {
    margin: 7px 0 17px;
    color: var(--text-main);
    font-size: clamp(1.08rem, 4vw, 1.25rem);
    line-height: 1.55;
}

.pt-answer-list {
    display: grid;
    gap: 8px;
}

.pt-answer {
    display: block;
    cursor: pointer;
}

.pt-answer input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pt-answer span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 10px 13px;
    border: 2px solid var(--border-color);
    border-radius: 13px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.pt-answer span::before {
    content: '';
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #D4BDC4;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: inset 0 0 0 4px var(--card-bg);
}

.pt-answer:hover span {
    border-color: #D293A5;
    background: #FFF9FA;
}

.pt-answer input:checked + span {
    border-color: #A44361;
    background: #FFF2F5;
}

.pt-answer input:checked + span::before {
    border-color: #A44361;
    background: #A44361;
}

.pt-answer.is-skip span {
    border-style: dashed;
    color: var(--text-sub);
    font-weight: 550;
}

.pt-question-help {
    margin: 13px 0 0;
    color: var(--text-sub);
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: center;
}

.pt-quiz-actions {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.pt-result {
    margin-top: 16px;
}

.pt-result-card,
.pt-result-section,
.pt-editorial {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.pt-result-card {
    padding: clamp(24px, 6vw, 36px);
    border-radius: 24px;
    text-align: center;
}

.pt-result-kicker {
    color: #8B6B74;
    font-size: 0.78rem;
    font-weight: 800;
}

.pt-result-emoji {
    margin: 9px 0 2px;
    font-size: 3.2rem;
    line-height: 1.2;
}

.pt-result-title {
    margin: 0;
    color: #933F59;
    font-family: var(--font-casual);
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    line-height: 1.25;
}

.pt-result-secondary {
    margin: 8px 0 0;
    color: var(--text-main);
    font-size: 0.91rem;
    font-weight: 800;
}

.pt-result-summary {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.72;
    text-align: left;
}

.pt-result-method {
    margin: 11px 0 0;
    color: var(--text-sub);
    font-size: 0.74rem;
    line-height: 1.55;
}

.pt-result-section {
    margin-top: 12px;
    padding: clamp(18px, 5vw, 24px);
    border-radius: 20px;
}

.pt-result-section h2,
.pt-result-section h3 {
    margin: 0 0 12px;
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.45;
}

.pt-section-intro {
    margin: -4px 0 15px;
    color: var(--text-sub);
    font-size: 0.79rem;
    line-height: 1.58;
}

.pt-axis-list {
    display: grid;
    gap: 18px;
}

.pt-axis-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.pt-axis-head strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.pt-axis-head span {
    color: #91445B;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: right;
}

.pt-axis-poles {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    color: var(--text-sub);
    font-size: 0.69rem;
}

.pt-axis-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #B7D8CF, #F1E5D7 50%, #E6A1B5);
}

.pt-axis-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    background: #91445B;
    box-shadow: 0 2px 7px rgba(82, 61, 64, 0.28);
    transform: translate(-50%, -50%);
}

.pt-axis-note {
    margin: 7px 0 0;
    color: var(--text-sub);
    font-size: 0.76rem;
    line-height: 1.58;
}

.pt-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.pt-insight-card {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-color);
}

.pt-insight-card strong {
    display: block;
    margin-bottom: 6px;
    color: #884159;
    font-size: 0.8rem;
}

.pt-insight-card p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.8rem;
    line-height: 1.62;
}

.pt-tip-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pt-tip-list li {
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.62;
}

.pt-scenario-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pt-scenario-button {
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #D9C2C9;
    border-radius: 999px;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.pt-scenario-button[aria-pressed='true'] {
    border-color: #91445B;
    background: #91445B;
    color: #FFFFFF;
}

.pt-scenario-output {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid #CFE2DD;
    border-radius: 15px;
    background: #F5FCFA;
}

.pt-scenario-output strong {
    display: block;
    margin-bottom: 5px;
    color: #3E6E63;
    font-size: 0.91rem;
}

.pt-scenario-output p {
    margin: 0;
    color: #4F625D;
    font-size: 0.84rem;
    line-height: 1.68;
}

.pt-cross-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.pt-cross-link {
    display: block;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    color: var(--text-main);
    text-decoration: none;
}

.pt-cross-link strong,
.pt-cross-link span {
    display: block;
}

.pt-cross-link strong {
    font-size: 0.88rem;
}

.pt-cross-link span {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pt-share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.pt-editorial {
    margin-top: 20px;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 24px;
}

.pt-editorial-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.pt-editorial-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.28rem, 4.5vw, 1.6rem);
    line-height: 1.4;
}

.pt-editorial-header p {
    margin: 8px 0 0;
    color: var(--text-sub);
    font-size: 0.88rem;
    line-height: 1.7;
}

.pt-guide-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 17px 0;
}

.pt-guide-card {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-color);
}

.pt-guide-card strong {
    display: block;
    margin-bottom: 6px;
    color: #884159;
    font-size: 0.86rem;
}

.pt-guide-card p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.62;
}

.pt-editorial details {
    border-top: 1px solid var(--border-color);
}

.pt-editorial details:last-of-type {
    border-bottom: 1px solid var(--border-color);
}

.pt-editorial details > summary {
    padding: 15px 2px;
    color: var(--text-main);
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
}

.pt-editorial details > div {
    padding: 0 2px 16px;
    color: var(--text-sub);
    font-size: 0.84rem;
    line-height: 1.75;
}

.pt-editorial details p + p {
    margin-top: 9px;
}

.pt-source-list {
    margin: 18px 0 0;
    padding: 16px 17px;
    border-radius: 15px;
    background: var(--bg-color);
}

.pt-source-list h3 {
    margin: 0 0 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pt-source-list ol {
    margin: 0;
    padding-left: 19px;
}

.pt-source-list li {
    margin: 8px 0;
    color: var(--text-sub);
    font-size: 0.75rem;
    line-height: 1.65;
}

.pt-source-list a {
    color: #7C3A52;
    text-underline-offset: 2px;
}

.pt-review-note {
    margin: 13px 0 0;
    color: var(--text-sub);
    font-size: 0.73rem;
    line-height: 1.55;
}

.pt-footer {
    width: min(100%, 700px);
    margin: 24px auto 0;
    padding: 20px 10px;
    border-top: 1px solid var(--border-color);
    color: var(--text-sub);
    text-align: center;
}

.pt-footer p {
    margin: 0 auto 12px;
    max-width: 610px;
    font-size: 0.76rem;
    line-height: 1.65;
}

.pt-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.pt-footer a {
    color: var(--text-sub);
    font-size: 0.78rem;
    text-decoration: none;
}

.pt-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;
    max-width: calc(100% - 30px);
    padding: 11px 16px;
    border-radius: 999px;
    background: #3F3335;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    font-size: 0.84rem;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pt-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

[data-theme='dark'] .pt-hero {
    border-color: #674A52;
    background:
        radial-gradient(circle at 90% 10%, rgba(126, 207, 190, 0.18), transparent 25%),
        linear-gradient(145deg, #362D2F, #49363B);
}

[data-theme='dark'] .pt-hero h1,
[data-theme='dark'] .pt-hero-lead {
    color: #FFF0F2;
}

[data-theme='dark'] .pt-eyebrow,
[data-theme='dark'] .pt-trust-row span {
    border-color: #674A52;
    background: #352C2C;
    color: #F8DDE5;
}

[data-theme='dark'] .pt-safety-note,
[data-theme='dark'] .pt-scenario-output {
    border-color: #46675F;
    background: #2D413C;
    color: #D7EFE8;
}

[data-theme='dark'] .pt-scenario-output strong,
[data-theme='dark'] .pt-scenario-output p {
    color: #D7EFE8;
}

[data-theme='dark'] .pt-answer:hover span,
[data-theme='dark'] .pt-answer input:checked + span {
    background: #49363B;
}

[data-theme='dark'] .pt-question-axis {
    background: #2F4A44;
    color: #CDE9E2;
}

@media (max-width: 640px) {
    .pt-page .app-container {
        padding: 10px;
    }

    .pt-site-header {
        border-radius: 15px;
    }

    .pt-hero,
    .pt-result-card,
    .pt-editorial {
        border-radius: 20px;
    }

    .pt-insight-grid,
    .pt-guide-cards {
        grid-template-columns: 1fr;
    }

    .pt-cross-links {
        grid-template-columns: 1fr;
    }

    .pt-share-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .pt-hero {
        padding: 22px 16px;
    }

    .pt-question-card,
    .pt-result-section {
        padding: 18px 15px;
    }

    .pt-quiz-actions {
        grid-template-columns: 1fr;
    }

    .pt-ghost-button {
        order: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-primary-button,
    .pt-secondary-button,
    .pt-progress-fill,
    .pt-answer span,
    .pt-toast {
        transition: none;
    }
}
