.hdhc { --hdhc-ink: #1f3028; --hdhc-border: #dedbd2; color: var(--hdhc-ink); }
.hdhc section { margin-block: 2rem; }
.hdhc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.hdhc-card { border: 1px solid var(--hdhc-border); border-radius: 16px; background: #fcfaf6; padding: 1.25rem; }
.hdhc-card h3 { font-size: 1.15rem; margin: 0 0 .65rem; }
.hdhc a { text-decoration: underline; }
.hdhc-form { display: grid; gap: .9rem; max-width: 37rem; }
.hdhc-form label { display: grid; font-weight: 600; gap: .35rem; }
.hdhc-form input { width: 100%; }
.hdhc-form button { background: var(--hdhc-ink); color: white; border-radius: 8px; }
.hdhc-form output { display: block; min-height: 1.5em; font-weight: 700; }
.hdhc dt { font-weight: 600; }
.hdhc dd { margin-left: 0; margin-bottom: .5rem; }

.hdhc-directory {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 56px);
  font-family: system-ui, sans-serif;
}
.hdhc-directory .hdhc-hero {
  padding: clamp(24px, 5vw, 64px);
  border-radius: 24px;
  background: #20392e;
  color: #fbf8ef;
  box-shadow: 0 8px 0 #a6b6a7;
}
.hdhc-directory .hdhc-hero h1 {
  margin: .6em 0 .24em;
  color: inherit;
  font: 600 clamp(2rem, 5vw, 4rem)/1.08 Georgia, serif;
}
.hdhc-directory .hdhc-brand { color: #fbf8ef; font-weight: 700; }
.hdhc-directory .hdhc-hero nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.hdhc-directory .hdhc-hero nav a { color: #fbf8ef; border: 1px solid #80988b; border-radius: 99px; padding: .4rem .75rem; text-decoration: none; font-size: .85rem; }
.hdhc-directory section { margin-block: clamp(38px, 6vw, 76px); scroll-margin-top: 40px; }
.hdhc-directory section h2 { font: 600 clamp(1.45rem, 3vw, 2.35rem)/1.15 Georgia, serif; color: #20392e; }
.hdhc-directory .hdhc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 24px; }
.hdhc-directory .hdhc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #fffdfa; border-color: #e3ded1; box-shadow: 0 5px 0 #cfdacf, 0 12px 22px #21392e15; }
.hdhc-directory .hdhc-card img { display: block; width: 100%; height: auto; aspect-ratio: 5/3; object-fit: cover; }
.hdhc-directory .hdhc-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.hdhc-directory .hdhc-card h3 { font: 600 1.22rem/1.24 Georgia, serif; }
.hdhc-directory .hdhc-card h3 a { color: #20392e; text-decoration: none; }
.hdhc-directory .hdhc-card p { font-size: .92rem; line-height: 1.55; }
.hdhc-directory .hdhc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: auto; font-weight: 650; font-size: .85rem; }
.hdhc-directory .hdhc-actions a { color: #244739; }
.hdhc-directory .hdhc-actions a:first-child { color: #fff; background: #315645; border-radius: 8px; padding: .48rem .7rem; text-decoration: none; }
.hdhc-directory a:focus-visible { outline: 3px solid #b48846; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hdhc-directory .hdhc-card { transition: transform .18s ease, box-shadow .18s ease; }
  .hdhc-directory .hdhc-card:hover, .hdhc-directory .hdhc-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #b7c8ba, 0 18px 30px #21392e22;
  }
}

.hdhc-canvas { margin: 0; background: #fbfaf6; }
.hdhc-detail { box-sizing: border-box; max-width: 1080px; margin: auto; padding: clamp(16px, 4vw, 48px); font-family: system-ui, sans-serif; }
.hdhc-detail-header { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); overflow: hidden; border-radius: 22px; background: #20392e; color: #fff; box-shadow: 0 5px 0 #b8c8bc; }
.hdhc-detail-intro { align-self: center; padding: clamp(20px, 4vw, 46px); }
.hdhc-detail-header a { color: #fff; font-size: .9rem; }
.hdhc-detail-header h1 { margin: .6em 0 0; color: inherit; font: 600 clamp(1.85rem, 4vw, 3.2rem)/1.13 Georgia, serif; }
.hdhc-detail-header img { width: 100%; height: 100%; max-height: 290px; object-fit: cover; }
.hdhc-detail-section { max-width: 760px; }
.hdhc-detail-section h2 { margin-top: 1.7rem; font: 600 1.6rem/1.2 Georgia, serif; }
.hdhc-detail .hdhc-form { max-width: none; background: #fff; border: 1px solid #d0dbd1; box-shadow: 0 4px 0 #e2eae2; }
.hdhc-detail .hdhc-form input { box-sizing: border-box; background: #f8faf8; border: 1px solid #aabbb0; min-height: 44px; padding: .45rem .65rem; color: #20392e; }
.hdhc-detail button { padding: .55rem .85rem; }
.hdhc-detail button[type="reset"] { color: #20392e; background: #ebf0eb; }
.hdhc-result { background: #edf4eb; color: #20392e; padding: 12px 14px; border-radius: 8px; }
.hdhc-result output { margin-top: 4px; overflow-wrap: anywhere; }
.hdhc-guide-action a { display: inline-block; padding: .5rem .8rem; border-radius: 8px; color: white; background: #315645; text-decoration: none; }
.hdhc-detail :focus-visible { outline: 3px solid #98733d; outline-offset: 3px; }
@media (max-width: 600px) {
  .hdhc-detail-header { grid-template-columns: 1fr; }
  .hdhc-detail-header img { height: auto; aspect-ratio: 5 / 2; }
}

.hdhc-full-guide { line-height: 1.65; }
.hdhc-full-guide li + li { margin-top: .5rem; }
.hdhc-faq { border-bottom: 1px solid #d0dbd1; padding: .65rem 0; }
.hdhc-faq summary { cursor: pointer; font-weight: 650; }
.hdhc-faq p { margin: .65rem 0 .25rem; }
.hdhc-related > h2 { font: 600 clamp(1.5rem,3vw,2.1rem)/1.2 Georgia,serif; }
.hdhc-related .hdhc-card { overflow: hidden; padding: 0; box-shadow: 0 5px 0 #cfdacf, 0 12px 22px #21392e15; }
.hdhc-related .hdhc-card img { width: 100%; height: auto; aspect-ratio: 5/3; object-fit: cover; display: block; }
.hdhc-related .hdhc-card-body { padding: 1rem; }
.hdhc-related .hdhc-card-body p { margin: .5rem 0 0; }
.hdhc-example { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .45rem 1rem; }
.hdhc-example dd { margin: 0; }

#calculator-guide { scroll-margin-top: 32px; }
