/* A calm, scannable contact sheet. Emergency calling remains a deliberate tap. */
#emergency-dialog .emergency-label { margin:22px 0 10px; font-size:14px; font-weight:600; }
.emergency-country-buttons { display:flex; gap:6px; padding:5px; border-radius:14px; background:var(--pale-green,#e8f0e8); }
.emergency-country-buttons button { flex:1; min-height:46px; border:0; border-radius:10px; padding:10px 14px; color:var(--green,#245e4d); background:transparent; font-size:15px; font-weight:600; }
.emergency-country-buttons button[aria-pressed="true"] { color:#fff; background:var(--green,#245e4d); }
.emergency-country-buttons button:active { opacity:.8; }
.emergency-intro,.emergency-note,.emergency-detail-note { color:var(--muted,#626d64); font-size:13px; line-height:1.55; }
.emergency-intro { margin:12px 1px 15px; }
.emergency-note { margin:12px 1px; }
.emergency-numbers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.emergency-number { display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:62px; padding:13px 14px; border:1px solid var(--line,#e5e7df); border-radius:13px; background:var(--surface,#fff); color:var(--ink,#292e2a); text-decoration:none; }
.emergency-number-copy { display:block; min-width:0; }
.emergency-number-name { display:block; font-size:14px; line-height:1.35; font-weight:650; overflow-wrap:anywhere; }
.emergency-number-copy small { display:block; color:var(--muted,#626d64); font-size:12px; line-height:1.45; margin-top:4px; }
.emergency-number-value { color:#9b3426; font-size:16px; font-variant-numeric:tabular-nums; line-height:1.3; overflow-wrap:anywhere; }
.emergency-number.emergency-service { align-items:flex-start; flex-direction:column; gap:12px; min-height:112px; background:#fff3ed; border-color:#eed8cd; }
.emergency-service .emergency-number-value { font-size:27px; font-weight:700; }
.emergency-number:hover { border-color:#ba8a7d; }
.emergency-number:active { background:#f7e9e1; }
.emergency-phrase-button { width:100%; min-height:46px; margin:0 0 12px; padding:11px 14px; border:0; border-radius:12px; color:var(--green,#245e4d); background:var(--pale-green,#e8f0e8); text-align:left; font-size:14px; font-weight:600; }
.emergency-details { border-top:1px solid var(--line,#e5e7df); }
.emergency-details>summary { display:list-item; min-height:54px; padding:17px 2px; color:var(--ink,#292e2a); font-size:14px; font-weight:600; line-height:1.4; cursor:pointer; }
.emergency-details[open] { padding-bottom:15px; }
.emergency-details[open]>summary { padding-bottom:10px; }
.emergency-details .emergency-number+.emergency-number { margin-top:9px; }
.emergency-detail-note { margin:3px 0 12px; }
.emergency-personal-contact { padding:12px 0; border-top:1px solid var(--line,#e5e7df); }
.emergency-personal-contact:first-of-type { border-top:0; }
.emergency-personal-contact h3 { margin:0 0 6px; font-size:15px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
.emergency-personal-text { margin:0; color:var(--muted,#626d64); font-size:14px; white-space:pre-wrap; line-height:1.6; overflow-wrap:anywhere; }
.emergency-personal-call { display:inline-flex; align-items:center; min-height:44px; padding:10px 12px; border-radius:10px; background:var(--pale-green,#e8f0e8); color:var(--green,#245e4d); font-size:15px; font-weight:600; text-decoration:none; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.emergency-sources ul { margin:5px 0 0; padding:0; list-style:none; }
.emergency-source-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 1px; font-size:13px; line-height:1.45; color:var(--green,#245e4d); text-decoration:underline; text-underline-offset:3px; }
#emergency-dialog button:focus-visible,#emergency-dialog a:focus-visible,#emergency-dialog summary:focus-visible { outline:3px solid #176887; outline-offset:3px; }
@media(max-width:420px) { .emergency-details .emergency-number { align-items:flex-start; flex-direction:column; gap:8px; } }

/* Frasebook controls retain the companion sheet's shared styling. */
.phrase-search { width:100%; min-height:48px; margin:0 0 12px; padding:10px 14px; border:1px solid #d7c8bb; border-radius:12px; background:#fff; color:var(--ink); font:inherit; }
.phrase-empty { color:#5c534b; font-size:13px; line-height:1.5; }
.cambodia-phrases { margin:0 0 14px; padding:12px 14px; background:#f5eddd; border-radius:12px; font-size:13px; line-height:1.45; }
.cambodia-phrases summary { cursor:pointer; color:#225b4c; font-weight:700; min-height:28px; }
.cambodia-phrases p { color:#5c534b; }
.cambodia-phrases dl { margin:0; }
.cambodia-phrases dt { font-weight:700; margin-top:10px; }
.cambodia-phrases dd { margin:2px 0 0; }
