/* emergency-dental-care: page-specific styles from the design */
/* ---------- Hero ---------- */
    .e-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
    .e-hero .h1 { max-width: 8.5em; }
    .e-hero .btn-row { align-items: center; }
    .status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 22px; }
    .status i { width: 10px; height: 10px; border-radius: 50%; background: #9aa9a8; position: relative; flex: none; }
    .status[data-state="open"] i { background: #2f9b6b; }
    .status[data-state="open"] i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2f9b6b; opacity: .5; animation: ping 2.2s var(--ease-out) infinite; }
    .status a { font-weight: 500; color: var(--teal); }
    @keyframes ping { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .status i::after { animation: none; } }
    .e-photo { position: relative; aspect-ratio: 5 / 5.4; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -32px rgba(20,64,62,.55); }
    .e-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 40%; }
    .e-review {
      position: absolute; left: 16px; right: 16px; bottom: 16px;
      background: rgba(255,247,242,.9); backdrop-filter: blur(8px);
      border-radius: var(--r); padding: 20px 22px;
    }
    .e-review p { font-size: 16px; color: var(--ink); }
    .e-review footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; }
    .stars { display: flex; gap: 2px; }
    .stars svg { width: 14px; height: 14px; fill: var(--star); }
    @media (max-width: 920px) { .e-hero__grid { grid-template-columns: 1fr; } .e-photo { aspect-ratio: 4/3.4; } }

    /* ---------- Triage guide ---------- */
    .guide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; align-items: start; }
    .tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--hh) + 24px); }
    .tab {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      text-align: left; padding: 16px 20px; border-radius: var(--r);
      background: transparent; border: 1px solid transparent; font-size: 17px; font-weight: 500; color: var(--ink);
      transition: background .25s, border-color .25s;
    }
    .tab:hover { background: var(--mint); }
    .tab[aria-selected="true"] { background: var(--ink); color: #fff; }
    .tab i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
    .lvl-now { background: var(--brand); }
    .lvl-today { background: #c19a3a; }
    .lvl-soon { background: var(--teal); }
    .tab[aria-selected="true"] .lvl-soon { background: var(--mint-2); }

    .panel { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 48px); }
    .panel[hidden] { display: none; }
    .panel.is-shown { animation: panelIn .55s var(--ease-out); }
    @keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
    .panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
    .urgency { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--cream); color: var(--ink); border: 1px solid var(--hairline); }
    .urgency i { width: 9px; height: 9px; border-radius: 50%; }
    .panel__intro { margin-top: 14px; color: var(--teal); max-width: 40em; }
    .panel__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: 32px; }
    .panel h3.label { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
    .steps { counter-reset: s; display: grid; gap: 14px; }
    .steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; color: var(--ink); }
    .steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--ink); }
    .avoid { display: grid; gap: 10px; }
    .avoid li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink); font-size: 16px; }
    .avoid svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
    .tip { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--mint); font-size: 16px; color: var(--ink); }
    .tip b { font-weight: 600; }
    .panel__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); }
    .panel__cta p { font-size: 15px; color: var(--teal); }
    @media (max-width: 980px) {
      .guide { grid-template-columns: 1fr; }
      .tabs { position: sticky; top: var(--hh); z-index: 20; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; margin: 0 -16px; background: rgba(255,247,242,.94); backdrop-filter: blur(10px); }
      .tabs::-webkit-scrollbar { display: none; }
      .tab { flex: none; padding: 10px 16px; border: 1px solid rgba(20,64,62,.2); border-radius: 99px; font-size: 15px; }
    }
    @media (max-width: 640px) { .panel__cols { grid-template-columns: 1fr; } }

    /* ---------- Hospital callout ---------- */
    .hospital { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 28px; align-items: start; margin-top: 16px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--white); border: 1px solid #f3cfc8; }
    .hospital__icon { width: 52px; height: 52px; border-radius: 50%; background: #fde3df; display: grid; place-items: center; color: #b3321f; }
    .hospital__icon svg { width: 24px; height: 24px; }
    .hospital ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 14px; }
    .hospital li { position: relative; padding-left: 18px; color: var(--ink); font-size: 16px; }
    .hospital li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
    .hospital .btn { align-self: center; }
    @media (max-width: 860px) { .hospital { grid-template-columns: 1fr; } .hospital ul { grid-template-columns: 1fr; } .hospital .btn { justify-self: start; } }

    /* ---------- Process ---------- */
    .process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
    .process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); opacity: .35; }
    .pstep { position: relative; }
    .pstep__n { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); border: 1px solid var(--mint-line); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink); }
    .pstep:first-child .pstep__n { background: var(--gold); background-image: var(--gold); border-color: var(--gold-line); color: var(--gold-ink); }
    .pstep h3 { margin-top: 22px; }
    .pstep p { margin-top: 8px; color: var(--teal); }
    @media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 40px; } .process::before { display: none; } }
    @media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

    .calm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
    .calm__img { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; }
    .calm__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
    .calm__text { background: var(--mint-2); border-radius: var(--r); padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; justify-content: center; }
    .calm__text p { margin-top: 16px; color: var(--ink); }
    .calm__text ul { margin-top: 22px; display: grid; gap: 10px; }
    .calm__text li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
    .calm__text li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-line); transform: translateY(-2px); }
    @media (max-width: 860px) { .calm { grid-template-columns: 1fr; } .calm__img { min-height: 300px; } }
