/* 「我家需要日照嗎」自我檢視頁（/check/）— 疊加在 site.css 之上 */
body.ckpage{background:var(--bg-tint)}
/* 作者樣式的 display 會蓋過 hidden 屬性，統一補上 */
.ckpage [hidden]{display:none!important}

.ckhead{background:var(--navy);color:#fff}
.ckhead .container{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding-block:.7rem;max-width:760px}
.ckhead a.ckbrand{display:flex;align-items:center;gap:.6rem;color:#fff;text-decoration:none;min-width:0}
.ckhead img{width:38px;height:auto;background:#fff;border-radius:8px;padding:3px}
.ckbrand span{font-weight:800;font-size:1rem;line-height:1.3}
.ckbrand small{display:block;font-weight:500;font-size:.72rem;color:#C6C8E2;letter-spacing:.06em}
.ckhead .textsize button{min-width:44px;min-height:44px}

.ck{max-width:760px;margin-inline:auto;padding:clamp(1rem,4vw,2rem) clamp(1rem,4vw,1.6rem) 2.5rem}
.ck-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(1.3rem,5vw,2.3rem);box-shadow:var(--shadow-sm)}
.ck h1{font-size:clamp(1.7rem,1.2rem + 2.2vw,2.4rem);margin-bottom:.4em}
.ck h2{font-size:clamp(1.3rem,1.05rem + 1.2vw,1.7rem)}
.ck [tabindex="-1"]:focus{outline:none}

.ck-trust{list-style:none;padding:0;margin:1.3rem 0 1.6rem}
.ck-trust li{position:relative;padding-left:2rem;margin-bottom:.7rem}
.ck-trust li::before{content:"✓";position:absolute;left:0;top:.05em;width:1.45rem;height:1.45rem;
  border-radius:50%;background:var(--orange-soft);color:var(--orange);font-weight:800;
  display:grid;place-items:center;font-size:.85rem;line-height:1}

/* 進度 */
.ck-progress{margin-bottom:1.2rem}
.ck-progress__text{font-weight:700;color:var(--blue);font-size:.95rem}
.ck-progress__track{height:10px;border-radius:99px;background:#E4E4F2;overflow:hidden;margin-top:.35rem}
.ck-progress__bar{height:100%;width:0;background:var(--orange);border-radius:99px;transition:width .25s}

/* 題目 */
.ck-q{border:0;margin:0;padding:0;min-width:0}
.ck-q legend{padding:0;margin-bottom:.4rem;font-size:clamp(1.25rem,1.05rem + 1vw,1.6rem);
  font-weight:800;color:var(--navy);line-height:1.45}
.ck-hint{color:var(--muted);font-size:.93rem;margin:0 0 1rem}
.ck-opts{display:grid;gap:.65rem}
.ck-opt{display:flex;align-items:center;gap:.85rem;min-height:56px;padding:.75rem 1rem;
  border:2px solid var(--line);border-radius:var(--radius);background:#fff;cursor:pointer;
  font-size:1.05rem;line-height:1.5;color:var(--ink);transition:border-color .12s,background .12s}
.ck-opt:hover{border-color:#C9CAE6}
.ck-opt input{flex:none;width:1.45rem;height:1.45rem;margin:0;accent-color:var(--orange)}
.ck-opt:has(input:checked){border-color:var(--orange);background:var(--orange-soft);font-weight:700}
.ck-opt:focus-within{outline:3px solid rgba(42,46,143,.35);outline-offset:2px}

.ck-nav{display:flex;gap:.75rem;justify-content:space-between;margin-top:1.6rem}
.ck-nav .btn{width:auto;min-height:52px;justify-content:center;white-space:nowrap;padding-inline:1.2em}
.ck-nav .btn--outline{flex:0 0 auto}
.ck-nav .btn--primary{flex:1 1 auto;max-width:22rem}
.ck-err{color:#B42318;font-weight:700;min-height:1.4em;margin:.8rem 0 0}

button.btn{cursor:pointer;font-family:inherit}
.btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}

/* 結果 */
.ck-badge{display:inline-block;font-weight:800;font-size:.85rem;letter-spacing:.12em;
  padding:.3em .9em;border-radius:99px;background:var(--blue);color:#fff;margin-bottom:.8rem}
[data-result="A"] .ck-badge{background:var(--orange)}
.ck-body p{font-size:1.06rem}
.ck-steps{padding-left:0;list-style:none}
.ck-steps li{margin-bottom:.6rem}
.ck-region{margin-top:1rem}
.ck-actions{display:grid;gap:.7rem;margin:1.6rem 0 .4rem}
.ck-actions .btn{justify-content:center;min-height:54px}
@media (min-width:620px){.ck-actions{grid-template-columns:repeat(auto-fit,minmax(13rem,1fr))}}
.btn--soft{background:#fff;border-color:var(--line);color:var(--blue)}
.btn--soft:hover{border-color:var(--blue);color:var(--blue)}

/* 選填聯絡資料 */
.ck-contact{margin-top:1.6rem;border:2px solid #FFD9B8;border-radius:var(--radius);background:var(--bg-warm)}
.ck-contact > summary{cursor:pointer;list-style:none;padding:1rem 1.2rem;font-weight:800;color:var(--navy);
  font-size:1.08rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:56px}
.ck-contact > summary::-webkit-details-marker{display:none}
.ck-contact > summary::after{content:"＋";color:var(--orange);font-size:1.3rem;line-height:1}
.ck-contact[open] > summary::after{content:"－"}
.ck-contact form,.ck-done{padding:0 1.2rem 1.3rem}
.ck-field{margin-bottom:1.1rem}
.ck-field > label,.ck-field legend{display:block;font-weight:700;color:var(--ink);margin-bottom:.35rem;padding:0}
.ck-field fieldset{border:0;margin:0;padding:0;min-width:0}
.ck-req{color:#B42318;font-size:.85rem;margin-left:.3em}
.ck-opt-note{color:var(--muted);font-weight:400;font-size:.85rem;margin-left:.3em}
.ck-field input[type=text],.ck-field input[type=tel],.ck-field textarea{width:100%;font:inherit;font-size:1.05rem;
  padding:.75rem .9rem;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);min-height:52px}
.ck-field textarea{min-height:6.5rem;resize:vertical}
.ck-field input:focus,.ck-field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(42,46,143,.18)}
.ck-pills{display:flex;flex-wrap:wrap;gap:.5rem}
.ck-pills .ck-opt{min-height:48px;padding:.45rem 1rem;font-size:1rem}
.ck-consent{display:flex;gap:.8rem;align-items:flex-start;padding:1rem;border:2px solid var(--line);
  border-radius:12px;background:#fff;cursor:pointer;line-height:1.7}
.ck-consent input{flex:none;width:1.5rem;height:1.5rem;margin-top:.15rem;accent-color:var(--orange)}
.ck-consent:has(input:checked){border-color:var(--orange)}
.ck-notice{margin:.7rem 0 0}
.ck-notice summary{cursor:pointer;color:var(--blue);font-weight:700;min-height:44px;display:flex;align-items:center}
.ck-notice table{width:100%;min-width:0;border-collapse:collapse;font-size:.9rem;margin-top:.4rem;background:#fff}
.ck-notice th,.ck-notice td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left;vertical-align:top}
.ck-notice table{table-layout:fixed}
.ck-notice th{background:var(--bg-tint);color:var(--navy);width:5.2em}
.ck-notice td{overflow-wrap:anywhere}
.ck-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.ck-submit{width:100%;justify-content:center;min-height:56px;margin-top:.4rem}
.ck-done{font-size:1.06rem}
.ck-done:focus{outline:none}
.ck-done p{margin:0 0 .4rem}

.ck-disclaimer{margin-top:1.8rem;padding:1rem 1.1rem;border-radius:12px;background:var(--bg-tint);
  color:var(--body);font-size:.93rem;line-height:1.75;border:1px solid var(--line)}
.ck-disclaimer p{margin:0}
.ck-tools{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem}
.ck-tools .btn{min-height:48px;width:auto;flex:1 1 auto}

.ckfoot{text-align:center;color:var(--muted);font-size:.87rem;padding:0 1rem 2.5rem;line-height:1.8}
.ckfoot a{color:var(--blue)}
/* 在 LINE（LIFF）內：LINE 已有標題列，頁首縮小 */
.is-liff .ckhead small{display:none}
.ckbrand span{white-space:nowrap}
.ckhead .textsize{display:flex;gap:.3rem;flex:none}
@media (max-width:380px){.ckbrand small{display:none}}
.ck-field > label.ck-consent{display:flex;font-weight:400;color:var(--body);margin-bottom:0}
