/* ==========================================================
   📲 Care-Connect patient app — app.html + the band on the home page
   Own class names (pa-…) so nothing else on the site is affected.
   Fluid at every width: no fixed widths, everything wraps.
========================================================== */
.pa-band{ padding:clamp(40px,7vw,80px) 0; background:linear-gradient(135deg,#e6f6f6,#f4fbfb); overflow:hidden; }
.pa-wrap{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:clamp(24px,4vw,56px); align-items:center; }
.pa-copy h2{ font-size:clamp(1.6rem,3.4vw,2.4rem); line-height:1.25; margin:.3em 0 .4em; color:#0f2f35; overflow-wrap:anywhere; }
.pa-copy p{ color:#3e5a60; font-size:clamp(1rem,1.6vw,1.1rem); line-height:1.7; margin:0 0 1em; overflow-wrap:anywhere; }
.pa-list{ list-style:none; padding:0; margin:0 0 1.4em; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:10px 18px; }
.pa-list li{ display:flex; gap:10px; align-items:flex-start; color:#17363c; line-height:1.5; min-width:0; overflow-wrap:anywhere; }
.pa-list li i{ flex:none; color:var(--primary,#0B7285); margin-top:4px; width:18px; text-align:center; }
.pa-actions{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.pa-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:12px 22px; border-radius:14px; font-weight:700; font-size:1.05rem; text-decoration:none; line-height:1.3; text-align:center; max-width:100%; }
.pa-btn-main{ background:linear-gradient(135deg,var(--primary,#0B7285),var(--accent,#15A3A5)); color:#fff !important; box-shadow:0 10px 26px rgba(11,114,133,.28); }
.pa-btn-main:hover{ transform:translateY(-2px); }
.pa-btn-alt{ background:#fff; color:var(--primary,#0B7285) !important; border:2px solid #cfe3e5; }
.pa-meta{ display:block; width:100%; color:#5b6d73; font-size:.9rem; margin-top:4px; }
.pa-phone{ justify-self:center; width:min(100%,260px); aspect-ratio:9/17; border-radius:34px; background:#0f2f35; padding:12px; box-shadow:0 24px 60px rgba(0,0,0,.25); }
.pa-screen{ height:100%; border-radius:24px; background:linear-gradient(180deg,#064e3b,#0b6b52 38%,#f4fbfb 38%); display:flex; flex-direction:column; align-items:center; padding:22px 14px; gap:10px; color:#fff; text-align:center; overflow:hidden; }
.pa-screen .pa-logo{ width:58px; height:58px; border-radius:16px; background:#fff; display:flex; align-items:center; justify-content:center; color:#0b6b52; font-size:28px; }
.pa-screen b{ font-size:1.1rem; } .pa-screen small{ opacity:.9; font-size:.8rem; }
.pa-tile{ width:100%; background:#fff; color:#17363c; border-radius:12px; padding:9px 10px; font-size:.82rem; display:flex; gap:8px; align-items:center; box-shadow:0 4px 12px rgba(0,0,0,.06); text-align:start; }
.pa-tile i{ color:#0b6b52; width:16px; text-align:center; }

/* app.html */
.pa-steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:18px; margin-top:24px; }
.pa-card{ background:#fff; border:1px solid #dbe9eb; border-radius:18px; padding:22px; min-width:0; box-shadow:0 8px 24px rgba(15,47,53,.06); }
.pa-card h3{ margin:0 0 10px; font-size:1.15rem; color:#0f2f35; display:flex; gap:10px; align-items:center; }
.pa-card ol, .pa-card ul{ margin:0; padding-inline-start:20px; line-height:1.75; color:#3e5a60; }
.pa-card li{ overflow-wrap:anywhere; }
.pa-addr{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.pa-addr code{ flex:1 1 180px; min-width:0; background:#f1f7f8; border:1px dashed #9cc7cc; border-radius:10px; padding:9px 11px; font-size:.95rem; overflow-wrap:anywhere; direction:ltr; text-align:left; }
.pa-addr button{ border:0; border-radius:10px; padding:9px 14px; background:var(--primary,#0B7285); color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.pa-note{ margin-top:22px; padding:14px 16px; border-radius:14px; background:#fff8e6; border:1px solid #f5d98b; color:#5b4a14; line-height:1.6; overflow-wrap:anywhere; }
.pa-hero{ padding:clamp(110px,14vw,150px) 0 clamp(30px,5vw,50px); }

[dir="rtl"] .pa-btn i{ transform:scaleX(-1); }
[dir="rtl"] .pa-addr code{ text-align:left; }

@media (max-width:860px){
  .pa-wrap{ grid-template-columns:minmax(0,1fr); }
  .pa-phone{ width:min(70%,230px); order:-1; }
}
@media (max-width:480px){
  .pa-actions{ flex-direction:column; align-items:stretch; }
  .pa-btn{ width:100%; }
  .pa-card{ padding:18px; }
}
.pa-addr[hidden], .pa-btn[hidden], [data-app-web][hidden]{ display:none !important; }
/* The desktop header was measured for nine links (css/responsive.css); a tenth pushed "Emergency" under the
   scrollbar. On desktops the patient app is reached from the home-page section, the footer and the 💬 assistant;
   the phone / tablet menu (below 1251px) shows it. */
/* 3.25.0: on desktops the "Patient App" link shows as a small 📲 App pill (narrow, so the nine other links keep their place) */
@media (min-width:1251px){
  .nav li.nav-app{ display:list-item !important; }
  .nav li.nav-app > a{ font-size:0 !important; padding-left:6px !important; padding-right:6px !important; letter-spacing:0 !important; }
  .nav li.nav-app > a::before{ content:"📲 App"; font-size:13px; font-weight:700; line-height:1; display:inline-block; padding:6px 10px; border-radius:999px; background:#0f766e; color:#fff; white-space:nowrap; }
  .nav li.nav-app > a:hover::before, .nav li.nav-app > a.active::before{ background:#115e59; }
}

/* ---------------------------------------------------------- app.html v2: download, steps with pictures, how to use */
.pa-shot{ margin:0; border-radius:26px; background:#0f2f35; padding:8px; box-shadow:0 16px 40px rgba(15,47,53,.18); }
.pa-shot img{ display:block; width:100%; height:auto; border-radius:19px; background:#f4fbfb; }
.pa-hero-shot{ justify-self:center; width:min(100%,290px); }
.pa-dl{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin:6px 0 18px; }
.pa-btn-xl{ min-height:60px; padding:14px 28px; font-size:1.15rem; }
.pa-direct{ margin:4px 0 0 !important; font-size:.95rem !important; overflow-wrap:anywhere; }
.pa-direct a{ color:var(--primary,#0B7285); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.pa-qr{ display:flex; gap:14px; align-items:center; background:#fff; border:1px solid #d5e7ea; border-radius:16px; padding:12px; max-width:440px; }
.pa-qr img{ flex:none; width:112px; height:112px; }
.pa-qr p{ margin:0 !important; font-size:.95rem !important; display:flex; flex-direction:column; gap:4px; }
.pa-qr b{ color:#0f2f35; }
.pa-sec{ padding:clamp(40px,6vw,72px) 0; background:#fff; }
.pa-sec.pa-alt{ background:#f4fbfb; }
.pa-head{ text-align:center; max-width:720px; margin:0 auto 26px; }
.pa-head h2{ font-size:clamp(1.5rem,3vw,2.1rem); color:#0f2f35; margin:.3em 0 .3em; line-height:1.25; }
.pa-head p{ color:#3e5a60; margin:0; line-height:1.6; }
.pa-steps-img{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
.pa-step{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.pa-step .pa-shot{ padding:6px; border-radius:22px; }
.pa-step .pa-shot img{ border-radius:16px; }
.pa-step p{ margin:0; display:flex; gap:10px; align-items:flex-start; color:#17363c; line-height:1.5; font-size:.98rem; overflow-wrap:anywhere; }
.pa-step p b{ flex:none; width:28px; height:28px; border-radius:50%; background:var(--primary,#0B7285); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.9rem; }
.pa-small{ text-align:center; color:#5b6d73; font-size:.88rem; margin:18px 0 0; }
.pa-first{ display:grid; grid-template-columns:minmax(0,240px) minmax(0,240px) minmax(0,1fr); gap:22px; align-items:start; }
.pa-first .pa-card ol{ line-height:1.8; }
.pa-uses{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:24px; }
.pa-use{ background:#fff; border:1px solid #dbe9eb; border-radius:22px; padding:16px; display:flex; flex-direction:column; gap:14px; min-width:0; box-shadow:0 8px 24px rgba(15,47,53,.05); }
.pa-use .pa-shot{ width:min(100%,250px); align-self:center; }
.pa-use h3{ margin:0 0 6px; font-size:1.12rem; color:#0f2f35; display:flex; gap:10px; align-items:center; }
.pa-use h3 i{ color:var(--primary,#0B7285); }
.pa-use p{ margin:0; color:#3e5a60; line-height:1.6; overflow-wrap:anywhere; }
.pa-narrow{ max-width:640px; margin:0 auto; }
@media (max-width:1100px){ .pa-steps-img{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:860px){ .pa-first{ grid-template-columns:repeat(2,minmax(0,1fr)); } .pa-first .pa-card{ grid-column:1 / -1; } .pa-hero-shot{ order:-1; width:min(62%,250px); } }
@media (max-width:600px){ .pa-steps-img{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; } .pa-step p{ font-size:.92rem; } .pa-qr{ display:none; } .pa-dl{ align-items:stretch; } }
@media (max-width:380px){ .pa-steps-img{ grid-template-columns:minmax(0,1fr); } .pa-step .pa-shot{ width:min(100%,230px); align-self:center; } }
.pa-way{ margin:0 0 22px; }
.pa-way h3{ display:flex; gap:12px; align-items:center; font-size:1.2rem; flex-wrap:wrap; }
.pa-badge{ flex:none; width:34px; height:34px; border-radius:50%; background:var(--primary,#0B7285); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; }
.pa-way > p{ color:#3e5a60; line-height:1.6; }
.pa-steps-4{ grid-template-columns:repeat(4,minmax(0,1fr)); margin:16px 0 6px; }
.pa-mt{ margin-top:14px !important; }
.pa-left{ text-align:start; }
.pa-jb{ border-color:#f5d98b; }
.pa-jb .pa-badge{ background:#b45309; }
.pa-jb-in{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,220px); gap:22px; align-items:start; }
.pa-jb ul{ margin:8px 0 0; padding-inline-start:20px; line-height:1.75; color:#3e5a60; }
.pa-warn{ background:#fff8e6; border:1px solid #f5d98b; color:#5b4a14; border-radius:12px; padding:10px 12px; margin:0; line-height:1.55; }
@media (max-width:860px){ .pa-steps-4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .pa-jb-in{ grid-template-columns:minmax(0,1fr); } .pa-jb-in .pa-shot{ width:min(100%,220px); justify-self:center; } }
#play-protect{ margin-top:26px; }
.pa-pp{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,200px) minmax(0,200px); gap:20px; align-items:start; }
.pa-pp ol{ margin:8px 0 0; padding-inline-start:20px; line-height:1.75; color:#3e5a60; }
.pa-pp p{ margin:0; color:#3e5a60; line-height:1.6; }
@media (max-width:860px){ .pa-pp{ grid-template-columns:repeat(2,minmax(0,1fr)); } .pa-pp > div{ grid-column:1 / -1; } }
.pa-upd h3{ display:flex; gap:10px; align-items:center; margin:0 0 8px; color:#0f2f35; }
.pa-upd h3 i{ color:var(--primary,#0B7285); }
.pa-upd p{ color:#3e5a60; line-height:1.65; margin:0 0 8px; }
.pa-update{ display:flex; gap:12px; align-items:flex-start; max-width:820px; margin:18px auto 0 !important; padding:12px 16px; border-radius:14px; background:#e8f5f5; color:#0f3f45; line-height:1.6; }
.pa-update i{ margin-top:5px; color:var(--primary,#0B7285); }

/* A12 (2026-12): filled grids — the 10 "everything the app does" cards fill whole rows (5 / 2 / 1 per row),
   and the 5 install steps never leave a hole (3 + 2 centred on tablets, last one centred on phones) */
@media (min-width:1240px){ .pa-uses{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; } }
@media (min-width:601px) and (max-width:1239px){ .pa-uses{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:601px) and (max-width:1100px){
  .pa-steps-img{ grid-template-columns:repeat(6,minmax(0,1fr)); }
  .pa-steps-img > li{ grid-column:span 2; }
  .pa-steps-img > li:nth-child(4):nth-last-child(2){ grid-column:2 / span 2; }
}
@media (min-width:381px) and (max-width:600px){
  .pa-steps-img > li:last-child:nth-child(odd){ grid-column:1 / -1; justify-self:center; width:calc(50% - 7px); }
}

/* 2026-12: the "📲 App" pill in each site language; in Urdu (right-to-left) the icon sits on the right and the
   taller Nastaliq letters get room, so nothing is clipped */
@media (min-width:1251px){
  html[data-lang="hi"] .nav li.nav-app > a::before{ content:"📲 ऐप"; font-size:14px; line-height:1.35; padding:5px 12px; }
  html[data-lang="mr"] .nav li.nav-app > a::before{ content:"📲 अ‍ॅप"; font-size:14px; line-height:1.35; padding:5px 12px; }
  html[data-lang="ur"] .nav li.nav-app > a::before{ content:"📲 ایپ"; direction:rtl; unicode-bidi:isolate; font-size:15px; line-height:1.9; padding:2px 14px 4px; }
}

/* 2026-12: the "📲 App" pill must not look like the selected item — on every other page it is a light outline
   (white, teal border, teal text); only on the App page itself it turns solid teal (= the page you are on) */
@media (min-width:1251px){
  .nav li.nav-app > a::before{ background:#ffffff; color:#0B7285; border:1.5px solid #0B7285; box-shadow:0 2px 8px rgba(11,114,133,.12); transition:background .2s ease, color .2s ease; }
  .nav li.nav-app > a:hover::before{ background:#e6f6f5; color:#075563; }
  .nav li.nav-app > a[aria-current="page"]::before,
  .nav li.nav-app > a.active::before{ background:#0B7285; color:#ffffff; border-color:#0B7285; }
}
