/* source: /static/css/test.css */
.article-assessment{margin-top:24px;padding:18px 20px;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface2);box-shadow:0 8px 20px rgba(0,0,0,.16);}
.article-assessment div{display:flex;flex-direction:column;gap:5px;min-width:0;}
.article-assessment strong{font-size:1rem;}
.article-assessment span,.test-meta{color:var(--muted);font-size:.92rem;line-height:1.5;}
.assessment-link{font-weight:700;color:var(--primary);text-decoration:none;white-space:nowrap;}
.assessment-link:hover,.assessment-link:focus-visible{text-decoration:underline;}
.test-page{max-width:820px;margin:0 auto;padding:36px 0 72px;}
.test-hero{margin-bottom:30px;padding:28px 30px;border:1px solid var(--border);border-radius:16px;background:var(--hero-bg);box-shadow:var(--shadow);}
.test-eyebrow{margin:0 0 12px;font-size:.76rem;font-weight:800;letter-spacing:.1em;color:var(--primary);}
.test-hero h1{margin:0 0 12px;line-height:1.15;}
.test-hero p:not(.test-eyebrow){margin:0;line-height:1.65;}
.test-hero a{color:var(--primary);font-weight:600;}
.test-meta{margin-top:14px!important;font-weight:600;}
.test-form{display:flex;flex-direction:column;gap:16px;}
.test-question{min-width:0;border:1px solid var(--border);border-radius:14px;padding:20px 22px 22px;margin:0;background:var(--surface);}
.test-question legend{width:100%;max-width:100%;padding:0;font-weight:650;line-height:1.55;}
.test-question-number{display:block;margin-bottom:8px;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--primary);}
.test-options{display:flex;flex-direction:column;gap:9px;margin-top:16px;}
.test-option{display:flex;align-items:flex-start;gap:12px;width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);cursor:pointer;line-height:1.5;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;}
.test-option input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--primary);}
.test-option span{flex:1 1 auto;min-width:0;}
.test-option:hover{border-color:var(--primary);}
.test-option:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 1px var(--primary);}
.test-submit,.secondary-action,.share-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;padding:12px 18px;border-radius:10px;font:inherit;font-weight:750;line-height:1.2;cursor:pointer;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.test-submit{align-self:flex-start;border:1px solid var(--primary);color:#111;background:var(--primary);box-shadow:0 7px 18px rgba(0,0,0,.2);}
.test-submit:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(0,0,0,.26);}
.test-submit:active{transform:translateY(0);}
.secondary-action{border:1px solid var(--border);color:var(--text);background:var(--surface2);}
.secondary-action:hover{border-color:var(--primary);}
.test-submit:focus-visible,.test-option:has(input:focus-visible),.share-action:focus-visible,.secondary-action:focus-visible{outline:2px solid var(--primary);outline-offset:3px;}
.result-success,.result-failure{position:relative;margin-bottom:28px;padding:34px 30px 32px;border:1px solid var(--border);border-radius:18px;background:var(--hero-bg);box-shadow:var(--shadow);overflow:hidden;}
.result-success::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--primary);}
.result-medallion{display:flex;align-items:center;justify-content:center;width:68px;height:68px;margin-bottom:20px;border:2px solid var(--primary);border-radius:50%;font-size:2rem;font-weight:800;color:var(--primary);background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.18);}
.result-success h1,.result-failure h1{margin:0 0 14px;font-size:2.35rem;line-height:1.1;}
.result-score-line{display:flex;align-items:baseline;gap:12px;margin:0;}
.result-score-line strong{font-size:2rem;color:var(--primary);}
.result-score-line span{color:var(--muted);}
.result-message{max-width:650px;margin:16px 0 0;color:var(--muted);line-height:1.6;}
.result-failure{background:var(--surface);}
.result-failure .result-score-line{margin:12px 0 16px;}
.result-retry{display:inline-block;margin-top:16px;}
.certificate-panel{border:1px solid var(--border);border-radius:16px;padding:28px;margin-bottom:38px;background:var(--surface);box-shadow:var(--shadow);}
.certificate-panel h2{margin:0 0 9px;}
.certificate-heading p:last-child{margin-bottom:0;color:var(--muted);line-height:1.55;}
.certificate-form{display:flex;flex-direction:column;gap:9px;max-width:560px;margin-top:22px;}
.certificate-form label{font-weight:650;}
.certificate-form input[type=text]{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid var(--border);border-radius:9px;color:var(--text);background:var(--surface2);font:inherit;}
.certificate-form input[type=text]:focus{outline:2px solid var(--primary);outline-offset:2px;}
.certificate-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:5px;}
.share-card{margin-top:26px;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--surface2);}
.share-card-header h3{margin:0;font-size:1.2rem;}
.share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.share-action{border:1px solid var(--border);color:var(--text);background:var(--surface);}
.share-action.primary{color:#111;background:var(--primary);border-color:var(--primary);box-shadow:0 6px 16px rgba(0,0,0,.18);}
.share-action:hover{border-color:var(--primary);}
.share-hint{min-height:1.3em;margin:12px 0 0;color:var(--muted);font-size:.88rem;line-height:1.45;}
.share-certificate-link{display:inline-block;margin-top:10px;color:var(--primary);font-weight:700;}
.test-review h2{margin-bottom:18px;}
.test-review-item{padding:18px 20px;margin-bottom:12px;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:10px;background:var(--surface2);}
.test-review-item.incorrect{border-left-color:var(--muted);}
.test-review-item h3{margin:0 0 12px;font-size:1rem;line-height:1.5;}
.test-review-item p{margin:8px 0 0;line-height:1.55;}
.certificate-share-page{max-width:900px;margin:0 auto;padding:42px 0 72px;text-align:center;}
.certificate-share-hero{margin-bottom:26px;}
.certificate-share-hero h1{margin:0 0 10px;}
.certificate-share-hero p{margin:0;color:var(--muted);line-height:1.5;}
.certificate-share-hero h2{max-width:760px;margin:8px auto 0;line-height:1.3;}
.certificate-share-image{margin:0;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);}
.certificate-share-image img{display:block;width:100%;height:auto;border-radius:8px;}
.certificate-share-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px;}
.certificate-share-note{margin:18px auto 0;max-width:760px;color:var(--muted);font-size:.85rem;line-height:1.5;}
.result-score{font-size:clamp(3.2rem,12vw,5.4rem);font-weight:850;line-height:1;color:var(--primary);letter-spacing:-.04em;margin:8px 0 8px;}
.result-detail{margin:0;color:var(--muted);font-size:1rem;}
.certificate-panel{max-width:720px;margin-left:auto;margin-right:auto;}
.certificate-panel h2{font-size:1.55rem;}
.certificate-privacy{margin:10px 0 0;color:var(--muted);font-size:.86rem;line-height:1.5;}
.certificate-form{max-width:none;}
.certificate-form input[type=text]{min-height:50px;font-size:1rem;}
.certificate-form .test-submit{width:100%;min-height:52px;}
.share-card{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));background:var(--hero-bg);}
.share-card h3{margin:0;font-size:1.35rem;}
.share-action{min-height:52px;}
.share-action.primary{width:100%;font-size:1rem;}
.share-actions{display:grid;grid-template-columns:1fr;}
.certificate-download{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:12px;padding:10px 16px;border:1px solid var(--border);border-radius:10px;color:var(--primary);font-weight:750;text-decoration:none;background:var(--surface);}
.certificate-download:hover{border-color:var(--primary);}
.certificate-share-details{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:16px;color:var(--muted);font-size:.9rem;}
.certificate-share-details strong{color:var(--primary);font-size:1.15rem;}

.test-navigation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px;}
.test-navigation .test-submit,.test-navigation .secondary-action{width:100%;}
.test-navigation-hint{min-height:1.35em;margin:0;text-align:center;color:var(--muted);font-size:.88rem;line-height:1.45;}
.test-navigation-error{color:var(--primary);font-weight:650;}
.test-question[hidden]{display:none;}

.linkedin-preview{max-width:760px;margin:22px auto 0;text-align:left;border:1px solid var(--border);border-radius:12px;background:var(--surface2);}
.linkedin-preview summary{padding:13px 16px;cursor:pointer;font-weight:700;color:var(--primary);}
.linkedin-preview summary::marker{color:var(--primary);}
.linkedin-preview-body{padding:0 16px 17px;white-space:pre-line;color:var(--text);font-size:.94rem;line-height:1.6;overflow-wrap:anywhere;}

@media (max-width:700px){
.article-assessment{align-items:flex-start;flex-direction:column;gap:12px;padding:17px;}
.assessment-link{white-space:normal;}
.test-page{padding:18px 0 48px;}
.test-hero{padding:22px 18px;margin-bottom:20px;border-radius:14px;}
.test-hero h1{font-size:1.65rem;}
.test-question{padding:17px 15px 16px;border-radius:12px;}
.test-question legend{font-size:1rem;line-height:1.5;}
.test-options{gap:8px;margin-top:14px;}
.test-option{padding:12px 11px;gap:10px;font-size:.96rem;line-height:1.48;}
.test-submit,.secondary-action{width:100%;min-height:50px;}
.test-navigation{grid-template-columns:1fr 1fr;gap:8px;}
.test-navigation .test-submit,.test-navigation .secondary-action{width:100%;}
.certificate-panel{padding:20px 17px;border-radius:14px;}
.certificate-actions{flex-direction:column;}
.certificate-actions .test-submit,.certificate-actions .secondary-action{width:100%;}
.result-success,.result-failure{padding:28px 18px 26px;border-radius:14px;}
.result-medallion{width:58px;height:58px;font-size:1.7rem;margin-bottom:16px;}
.result-success h1,.result-failure h1{font-size:1.8rem;}
.result-score-line{gap:8px;flex-wrap:wrap;}
.result-score-line strong{font-size:1.8rem;}
.share-card{padding:18px 15px;}
.share-actions{flex-direction:column;}
.share-action{width:100%;}
.certificate-share-page{padding:22px 0 48px;}
.certificate-share-image{padding:8px;border-radius:12px;}
.certificate-share-actions{flex-direction:column;}
.certificate-share-actions .share-action{width:100%;}
.test-review-item{padding:15px 14px;}
.linkedin-preview{margin-top:18px;}
.linkedin-preview summary{padding:12px 14px;}
.linkedin-preview-body{padding:0 14px 15px;font-size:.92rem;}
}

/* source: /static/css/test-polish.css */
/* Assessment UI refinement: reduce visual density and keep each option clearly separated. */

.test-page{max-width:760px;padding:28px 0 64px;}
.test-hero{margin-bottom:22px;padding:24px 26px;border-radius:18px;}
.test-hero h1{font-size:clamp(1.75rem,5vw,2.35rem);margin-bottom:10px;}
.test-hero p:not(.test-eyebrow){line-height:1.55;}
.test-meta{display:inline-flex;align-items:center;gap:8px;margin-top:16px!important;padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface2);font-size:.84rem;}

.test-form{gap:12px;}
.test-question{border:1px solid var(--border);border-radius:18px;padding:22px;background:var(--surface);box-shadow:0 10px 28px rgba(0,0,0,.12);}
.test-question legend{display:block;width:100%;font-size:1.08rem;line-height:1.55;font-weight:700;}
.test-question-number{display:block;margin-bottom:10px;font-size:.72rem;letter-spacing:.08em;line-height:1.2;}

.test-options{display:flex;flex-direction:column;gap:10px;margin-top:18px;}
.test-option{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:12px;width:100%;margin:0;padding:14px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface2);box-sizing:border-box;line-height:1.5;}
.test-option input{display:block;width:18px;height:18px;margin:2px 0 0;}
.test-option span{display:block;min-width:0;overflow-wrap:anywhere;}
.test-option:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.12);}
.test-option:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 20%,transparent);background:var(--hero-bg);}

.test-navigation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px;}
.test-navigation .test-submit,.test-navigation .secondary-action{width:100%;min-height:50px;border-radius:12px;}
.test-navigation .test-submit{box-shadow:0 7px 18px rgba(0,0,0,.18);}
.test-navigation .secondary-action{background:var(--surface2);}
.test-navigation-hint{min-height:1.3em;margin:3px 0 0;text-align:center;color:var(--muted);font-size:.84rem;}
.test-navigation-error{color:var(--primary);font-weight:650;}

/* The navigation script uses the hidden attribute to switch controls. */
.test-navigation [hidden]{display:none!important;}

@media (max-width:700px){
    .test-page{padding:14px 0 44px;}
    .test-hero{padding:20px 17px;margin-bottom:14px;border-radius:16px;}
    .test-hero h1{font-size:1.65rem;}
    .test-meta{margin-top:13px!important;font-size:.8rem;}
    .test-question{padding:18px 14px;border-radius:15px;}
    .test-question legend{font-size:1.02rem;line-height:1.5;}
    .test-question-number{margin-bottom:9px;}
    .test-options{gap:8px;margin-top:15px;}
    .test-option{grid-template-columns:20px minmax(0,1fr);gap:10px;padding:13px 12px;font-size:.95rem;line-height:1.5;}
    .test-option input{width:18px;height:18px;}
    .test-navigation{gap:8px;margin-top:2px;}
    .test-navigation .test-submit,.test-navigation .secondary-action{min-height:48px;padding:11px 10px;border-radius:11px;}
}
