.dkkd,.dkkd-entry{max-width:760px;margin:1.5rem auto}.dkkd-notice,.dkkd-entry-head{padding:1.2rem 1.25rem;background:#f8f4ea;border-radius:14px}.dkkd-kicker{font-size:.82rem;letter-spacing:.08em;opacity:.72}.dkkd-source-note,.dkkd-help,.dkkd-disclaimer{font-size:.9rem;line-height:1.7}.dkkd-progress{height:6px;background:#eee;border-radius:99px;margin:1rem 0;overflow:hidden}.dkkd-progress span{display:block;height:100%;width:0;background:#777}.dkkd-options{display:grid;gap:.7rem;margin-top:1rem}.dkkd-options label{padding:.85rem 1rem;border:1px solid #ddd;border-radius:10px;cursor:pointer;background:#fff}.dkkd-options input{margin-right:.55rem}.dkkd-nav{display:flex;justify-content:space-between;gap:.75rem}.dkkd-btn{border:0;border-radius:999px;padding:.75rem 1.2rem;cursor:pointer}.dkkd-btn.primary{background:#555;color:#fff}.dkkd-btn.secondary{background:#fff;color:#333;border:1px solid #aaa}.dkkd-btn.secondary:hover{background:#f3f1eb}.dkkd-card{border:1px solid #ddd;border-radius:12px;padding:1rem;margin:.8rem 0}.dkkd-entry-search{display:block;margin:1rem 0}.dkkd-entry-search span{display:block;font-size:.9rem;margin-bottom:.35rem}.dkkd-entry-search input{width:100%;box-sizing:border-box;padding:.85rem 1rem;border:1px solid #ddd;border-radius:10px}.dkkd-entry-actions{display:flex;gap:.5rem;margin:.8rem 0}.dkkd-entry-tab{border:0;background:#eee;border-radius:999px;padding:.65rem 1rem;cursor:pointer}.dkkd-entry-tab.active{background:#555;color:#fff}.dkkd-entry-item{display:block;text-decoration:none;border:1px solid #ddd;border-radius:12px;padding:1rem;margin:.6rem 0;color:inherit}.dkkd-entry-item small{display:block;opacity:.65;margin-top:.2rem}.dkkd-entry-placeholder{padding:1rem;background:#f8f4ea;border-radius:10px;font-size:.9rem}.warning{padding:1.1rem;border:1px solid #bbb;border-radius:12px}
.dkkd-home-link{display:inline-block;margin:0 0 16px;color:#4b4b4b;text-decoration:none;font-size:.92rem;opacity:1;font-weight:500}.dkkd-home-link:hover{text-decoration:underline;color:#222}

.dkkd-formula-link{color:#2f6f5e;text-decoration:underline;text-underline-offset:2px}.dkkd-formula-link:hover{text-decoration-thickness:2px}

/* v1.3.4: entry tab visibility — prevent theme button styles from hiding inactive tab text */
.dkkd-entry-actions .dkkd-entry-tab {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eee !important;
  color:#333 !important;
  border:1px solid #ddd !important;
  opacity:1 !important;
  text-shadow:none !important;
  box-shadow:none;
  font:inherit;
  line-height:1.2;
}
.dkkd-entry-actions .dkkd-entry-tab.active {
  background:#555 !important;
  color:#fff !important;
  border-color:#555 !important;
}
.dkkd-entry-actions .dkkd-entry-tab:hover {
  background:#e4e1d9 !important;
  color:#222 !important;
}
.dkkd-entry-actions .dkkd-entry-tab.active:hover {
  background:#4b4b4b !important;
  color:#fff !important;
}

.dkkd-card h3 a,
.dkkd-card h3 a:visited{
  color:#6b4f3a;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  font-weight:700;
}
.dkkd-card h3 a:hover,
.dkkd-card h3 a:focus{
  color:#3f3027;
  text-decoration-thickness:2px;
}

.dkkd-card h3 .dkkd-detail-link,
.dkkd-card h3 .dkkd-detail-link:visited{
  margin-left:.8rem;
  font-size:.82rem;
  font-weight:500;
  color:#6b4f3a;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap;
}
.dkkd-card h3 .dkkd-detail-link:hover,
.dkkd-card h3 .dkkd-detail-link:focus{
  color:#3f3027;
}
@media (max-width:600px){
  .dkkd-card h3 .dkkd-detail-link{
    display:inline-block;
    margin-left:.35rem;
    font-size:.78rem;
  }
}

.dkkd-symptom-card{border:1px solid #ddd;border-radius:12px;padding:1rem;margin:.7rem 0;background:#fff}
.dkkd-symptom-card h3{margin:0 0 .65rem}
.dkkd-entry-related-wrap{display:flex;flex-wrap:wrap;gap:.5rem}
.dkkd-entry-related,.dkkd-entry-related:visited{
 display:inline-block;padding:.5rem .75rem;border:1px solid #b8a899;border-radius:999px;
 color:#6b4f3a;text-decoration:none;font-size:.9rem;background:#faf8f3;
}
.dkkd-entry-related:hover,.dkkd-entry-related:focus{color:#3f3027;text-decoration:underline}
.dkkd-entry-related-disabled{font-size:.9rem;opacity:.65}

.dkkd-reason{margin:.35rem 0 0;line-height:1.7}


/* v2.4.36: common patient-friendly result explanation */
.dkkd-result-section{margin:1.25rem 0}
.dkkd-result-section h2{margin:0 0 .7rem;line-height:1.5}
.dkkd-result-section>p{line-height:1.9;margin:.45rem 0}
.dkkd-result-guidance,
.dkkd-donguri-explanation,
.dkkd-result-caution{padding:1.1rem 1.15rem;border:1px solid #e3d8c8;border-radius:14px;background:#faf7f0}
.dkkd-donguri-explanation{border-left:4px solid #4a8f6a}
.dkkd-result-guidance{border-left:4px solid #e3d8c8}
.dkkd-result-candidate-section{margin-top:1.35rem}
.dkkd-result-candidate-section .dkkd-card{background:#fff}
.dkkd-result-more{padding-top:.2rem}
.dkkd-result-more-links{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.8rem}
.dkkd-result-more-link,
.dkkd-result-more-link:visited{display:inline-block;padding:.55rem .8rem;border:1px solid #e3d8c8;border-radius:999px;background:#faf7f0;color:#4a8f6a;text-decoration:none}
.dkkd-result-more-link:hover,.dkkd-result-more-link:focus{text-decoration:underline}
.dkkd-result-caution{margin-top:1.4rem}
@media(max-width:600px){
  .dkkd-result-section h2{font-size:1.15rem}
  .dkkd-result-section>p{line-height:1.8}
}
