/* Current-patient portal guide. Tebra remains the authentication and PHI boundary. */
.current-patient-hero{background:radial-gradient(circle at 85% 18%,rgba(129,155,138,.18),transparent 24%),linear-gradient(135deg,var(--cream),#edf3ef 58%,#f4e9db)}
.portal-provider-note{margin-top:18px!important;font-size:13px!important;color:var(--ink-soft)!important}
.current-patient-hero .summary-link-list a{position:relative;display:flex;justify-content:space-between;gap:18px;padding:14px 28px 14px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;transition:background .18s ease,color .18s ease,padding .18s ease}
.current-patient-hero .summary-link-list a:last-child{border-bottom:0}
.current-patient-hero .summary-link-list a::after{content:"→";position:absolute;right:2px;top:50%;transform:translateY(-50%);color:var(--sage-dark);font-size:16px;opacity:.48;transition:transform .18s ease,opacity .18s ease}
.current-patient-hero .summary-link-list a:hover{padding-left:8px;background:rgba(129,155,138,.08)}
.current-patient-hero .summary-link-list a:hover::after{transform:translate(3px,-50%);opacity:1}
.current-patient-hero .summary-link-list a:focus-visible{outline:2px solid var(--sage-dark);outline-offset:3px;border-radius:8px}
.current-patient-hero .summary-link-list span{color:var(--ink-soft);font-size:13px}
.current-patient-hero .summary-link-list strong{font-size:13px;text-align:right}
.portal-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.portal-action-card{min-height:360px;display:flex;flex-direction:column;padding:30px;border:1px solid var(--line);border-radius:24px;background:white;box-shadow:0 16px 40px rgba(23,50,58,.06)}
.portal-action-card.portal-action-primary{background:var(--ink);color:white;border-color:transparent;box-shadow:0 24px 55px rgba(23,50,58,.2)}
.portal-action-card.portal-action-telehealth{background:linear-gradient(160deg,#f7fbf8,var(--sage-soft))}
.portal-action-card p{color:var(--ink-soft);font-size:15px}
.portal-action-card.portal-action-primary p{color:rgba(255,255,255,.72)}
.portal-action-card .button,.portal-action-card .portal-card-link{margin-top:auto;align-self:flex-start}
.portal-card-kicker{display:block;margin:17px 0 7px;color:var(--terracotta);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.portal-action-primary .portal-card-kicker{color:#e8d6bd}
.portal-action-card h3,.portal-help-card h3,.portal-tool-card h3,.portal-feature-card h3{margin:0 0 12px;font-family:"Playfair Display",Georgia,serif;font-size:31px;line-height:1.15}
.portal-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:var(--sage-soft);color:var(--sage-dark)}
.portal-action-primary .portal-icon{background:rgba(255,255,255,.1);color:white}
.portal-icon svg,.portal-security-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-card-link{color:var(--sage-dark);font-size:14px;font-weight:800}
.portal-card-link:hover{text-decoration:underline;text-underline-offset:4px}
.portal-inline-action{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin-top:28px;padding:20px 22px;border:1px solid rgba(23,50,58,.1);border-radius:18px;background:white}
.portal-inline-action span{color:var(--ink-soft);font-size:14px}

.portal-telehealth-band{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:48px;align-items:center;padding:42px;border:1px solid rgba(23,50,58,.1);border-radius:30px;background:linear-gradient(135deg,#fffdf9 0%,#edf4ef 62%,#e4ece7 100%);box-shadow:var(--shadow)}
.portal-telehealth-copy h2{margin:8px 0 14px;font-size:clamp(36px,5vw,54px)}
.portal-telehealth-copy p{color:var(--ink-soft);font-size:17px}
.portal-telehealth-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.button-outline-ink{border:1px solid rgba(23,50,58,.28);background:transparent;color:var(--ink)}
.button-outline-ink:hover{background:var(--ink);color:white}
.portal-telehealth-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.portal-telehealth-steps>div{min-height:166px;padding:22px;border:1px solid rgba(23,50,58,.09);border-radius:19px;background:rgba(255,255,255,.78)}
.portal-telehealth-steps span{display:block;margin-bottom:24px;color:var(--terracotta);font-size:11px;font-weight:800;letter-spacing:.16em}
.portal-telehealth-steps strong{display:block;margin-bottom:7px;font-family:"Playfair Display",Georgia,serif;font-size:21px}
.portal-telehealth-steps p{margin:0;color:var(--ink-soft);font-size:13px}
.portal-config-note{max-width:900px;margin:20px auto 0;padding:14px 18px;border-left:3px solid var(--sage);background:rgba(255,255,255,.7);color:var(--ink-soft);font-size:13px}

.portal-tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.portal-tool-card{display:flex;flex-direction:column;min-height:440px;padding:32px;border:1px solid var(--line);border-radius:24px;background:white}
.portal-tool-card-soft{background:var(--sage-soft)}
.portal-tool-card p{color:var(--ink-soft)}
.portal-tool-card .button{margin-top:auto;align-self:flex-start}
.portal-tool-number{display:block;margin-bottom:44px;color:var(--terracotta);font-size:11px;font-weight:800;letter-spacing:.16em}
.portal-mini-list{display:grid;gap:10px;margin:18px 0 24px;padding:0;list-style:none;color:var(--ink-soft)}
.portal-mini-list li{position:relative;padding-left:22px;font-size:14px}
.portal-mini-list li::before{content:"✓";position:absolute;left:0;color:var(--sage-dark);font-weight:800}

.portal-help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.portal-help-card{display:flex;flex-direction:column;padding:34px;border:1px solid var(--line);border-radius:24px;background:white}
.portal-help-card.portal-help-soft{background:var(--sage-soft)}
.portal-help-card.portal-help-dark{background:var(--ink);color:white;border-color:transparent}
.portal-help-card p{color:var(--ink-soft)}
.portal-help-card.portal-help-dark p,.portal-help-card.portal-help-dark .portal-steps{color:rgba(255,255,255,.72)}
.portal-help-card.portal-help-dark .portal-card-kicker{color:#e8d6bd}
.portal-help-card.portal-help-dark .portal-steps strong{color:white}
.portal-help-card .button{margin-top:auto;align-self:flex-start}
.portal-steps{display:grid;gap:11px;margin:22px 0 28px;padding-left:21px;color:var(--ink-soft)}
.portal-steps strong{color:var(--ink)}
.portal-small-note{font-size:13px}

.portal-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.portal-feature-card{min-height:265px;display:flex;flex-direction:column;padding:30px;border:1px solid var(--line);border-radius:23px;background:white}
.portal-feature-card p{color:var(--ink-soft)}
.portal-feature-card .portal-card-link{margin-top:auto;align-self:flex-start}
.portal-feature-card-dark{background:var(--ink);color:white;border-color:transparent}
.portal-feature-card-dark p{color:rgba(255,255,255,.72)}
.portal-feature-card-dark .portal-card-kicker{color:#e8d6bd}

.portal-security-band{display:grid;grid-template-columns:72px minmax(0,1fr);gap:28px;align-items:start;padding:38px;border:1px solid rgba(23,50,58,.1);border-radius:28px;background:linear-gradient(135deg,#fffdf9,var(--sage-soft));box-shadow:var(--shadow)}
.portal-security-band h2{margin:6px 0 12px;font-size:clamp(30px,4vw,43px)}
.portal-security-band p{max-width:900px;color:var(--ink-soft)}
.portal-security-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:22px;background:var(--ink);color:white}
.portal-security-icon svg{width:36px;height:36px}
.portal-urgent-note{margin-top:17px!important;padding-top:17px;border-top:1px solid rgba(23,50,58,.12);font-size:13px;font-weight:700}

@media(max-width:1120px){
  .portal-action-grid{grid-template-columns:1fr 1fr}
  .portal-action-card{min-height:320px}
  .portal-help-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:980px){
  .portal-telehealth-band{grid-template-columns:1fr;padding:34px}
  .portal-tool-grid{grid-template-columns:1fr}
  .portal-tool-card{min-height:0}
  .portal-help-grid{grid-template-columns:1fr}
  .portal-inline-action{grid-template-columns:1fr;justify-items:start}
}
@media(max-width:680px){
  .current-patient-hero .summary-link-list a{display:grid;gap:3px;padding-right:28px}
  .current-patient-hero .summary-link-list strong{text-align:left}
  .portal-action-grid,.portal-feature-grid,.portal-telehealth-steps{grid-template-columns:1fr}
  .portal-action-card,.portal-help-card,.portal-tool-card,.portal-feature-card{padding:25px}
  .portal-action-card{min-height:0}
  .portal-telehealth-band{padding:26px}
  .portal-telehealth-actions{display:grid}
  .portal-telehealth-actions .button{width:100%}
  .portal-security-band{grid-template-columns:1fr;padding:26px}
  .portal-security-icon{width:60px;height:60px;border-radius:18px}
}
