/* GitHub #28: My Private Health Information (Family / Contacts) */
.hp-entry{padding:0;overflow:hidden}
.hp-open{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:12px 14px;background:#f3f6ff;border:0;border-left:6px solid #1B3A6B;font:inherit;color:#14254a;text-align:left;cursor:pointer}
.hp-open .hp-ic{font-size:1.7rem}
.hp-open b{display:block;font-size:1.1rem;color:#1B3A6B}
.hp-open small{display:block;font-size:.88rem;color:#55637a;line-height:1.35}
.hp-open .chev{margin-left:auto;font-size:1.6rem;color:#1B3A6B}
.hp-open:focus-visible{outline:4px solid #ffb300;outline-offset:-4px}
.hp-ov{position:fixed;inset:0;z-index:2700;background:rgba(10,20,35,.55);display:flex;justify-content:center;align-items:stretch}
.hp-ov[hidden]{display:none!important}
.hp-sheet{background:#f4f7fb;width:100%;max-width:720px;overflow-y:auto;padding:0 14px 40px;-webkit-overflow-scrolling:touch}
.hp-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;background:#f4f7fb;padding:10px 0;border-bottom:2px solid #d9e1ec}
.hp-top{flex-wrap:wrap}
.hp-top h2{margin:0;font-size:1.2rem;color:#1B3A6B;flex:1 1 160px;min-width:0;line-height:1.25;overflow-wrap:anywhere}
.hp-x{min-height:48px;padding:0 14px;border-radius:24px;border:2px solid #1B3A6B;background:#fff;color:#1B3A6B;font:inherit;font-weight:800;cursor:pointer;flex:none;margin-left:auto}
.hp-911{display:flex;align-items:center;justify-content:center;min-height:56px;margin:12px 0;border-radius:14px;background:#b71c1c;color:#fff;font-weight:900;font-size:1.15rem;text-decoration:none}
.hp-msg,.hp-err{margin:6px 0;border-radius:12px;padding:8px 12px;font-weight:700}
.hp-msg{background:#e6f4ea;color:#14532d}.hp-err{background:#fdecea;color:#8a1c14}
.hp-msg:empty,.hp-err:empty{display:none}
.hp-warn{background:#fff4e5;color:#6b3d00;border-radius:12px;padding:10px 12px;font-weight:700}
.hp-sheet h3{color:#1B3A6B;font-size:1.1rem;margin:12px 0 6px}
.hp-lbl{display:block;font-weight:800;margin:10px 0 4px;color:#14254a}
.hp-check,.hp-radio{display:flex;gap:10px;align-items:flex-start;margin:10px 0;line-height:1.4;font-weight:600}
.hp-check input,.hp-radio input{width:26px;height:26px;flex:none;margin-top:2px}
.hp-card{background:#fff;border-radius:16px;padding:10px 14px;margin:12px 0;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.hp-card ul{padding-left:20px;margin:6px 0}.hp-card li{margin:6px 0;line-height:1.4}
.hp-unv{color:#6b3d00;background:#fff4e5;border-radius:10px;padding:6px 10px;font-weight:700;font-size:.92rem}
.hp-row{display:flex;flex-direction:column;border-bottom:1px solid #e3e8ef;padding:8px 0}
.hp-row span{font-size:.88rem;color:#55637a;font-weight:700}.hp-row b{font-size:1.05rem;color:#14254a;overflow-wrap:anywhere}
.hp-row.big b{font-size:1.35rem}.hp-row a{color:#0a78cf}
.hp-small{font-size:.86rem;color:#55637a}
.hp-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}
.hp-red{background:#fdecea!important;color:#8a1c14!important;border:2px solid #f3b8b3}
.hp-fs{border:2px solid #d9e1ec;border-radius:14px;margin:12px 0;padding:4px 12px 10px}
.hp-fs legend{font-weight:800;color:#1B3A6B;padding:0 6px}
.hp-ec{border-bottom:1px dashed #d9e1ec;padding-bottom:8px}
.hp-forgot summary{min-height:48px;display:flex;align-items:center;font-weight:800;color:#1B3A6B;cursor:pointer}
.hp-sheet textarea.input{min-height:84px;font-family:inherit}
.hp-sheet .btn:focus-visible,.hp-x:focus-visible,.hp-911:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
/* 2026-10-22 (#28 follow-up): the entry now sits INSIDE the family card, right under "Add family contact" */
.a5-card .hp-entry{margin:12px 0 6px;border:2px solid #c9d6ea;border-radius:14px;box-shadow:none}
/* 2026-10-22 r6 (#41 audit): at 200% zoom on a phone (about 195 CSS px) the text part of the button could not shrink and was cut off */
.hp-open>span:nth-child(2){flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
@media (max-width:300px){.hp-open{flex-direction:column;align-items:flex-start;gap:4px;padding:10px 10px}.hp-open .hp-ic{font-size:1.4rem}.hp-open .chev{display:none}}
html[lang="ko"] .hp-open>span:nth-child(2){word-break:keep-all;overflow-wrap:break-word}
