/* HOPE reciprocal application switcher, RI Survival Guide crisis gateway, and Civic OS install UI. */
.hope-app-switch{
  --has-navy:#0b2344;--has-navy2:#143d68;--has-gold:#e9b63f;--has-cream:#fffaf0;--has-ink:#17283d;
  position:relative;z-index:3;margin:34px auto 0;padding:0 max(14px,env(safe-area-inset-left));
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.hope-app-switch *{box-sizing:border-box}
.hope-app-switch-inner{width:min(1120px,100%);margin:auto;padding:18px;border:1px solid rgba(11,35,68,.16);border-radius:22px;background:linear-gradient(135deg,#fffdf8 0%,#f7efd9 100%);box-shadow:0 14px 38px rgba(7,26,50,.14)}
.hope-app-switch-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:13px}
.hope-app-switch-kicker{margin:0 0 3px;color:#8a6210;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.hope-app-switch-title{margin:0;color:var(--has-navy);font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,3.2vw,29px);line-height:1.12}
.hope-app-switch-note{max-width:430px;margin:0;color:#58697d;font-size:12.5px;line-height:1.45;text-align:right}
.hope-app-switch-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hope-app-switch-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;min-height:94px;padding:15px 16px;border:1px solid rgba(11,35,68,.18);border-radius:16px;background:#fff;color:var(--has-ink);text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.hope-app-switch-card:hover{transform:translateY(-2px);border-color:rgba(11,35,68,.38);box-shadow:0 10px 24px rgba(7,26,50,.12)}
.hope-app-switch-card:focus-visible{outline:4px solid var(--has-gold);outline-offset:3px}
.hope-app-switch-card[aria-current="page"]{background:linear-gradient(135deg,var(--has-navy) 0%,var(--has-navy2) 100%);border-color:var(--has-gold);color:#fff}
.hope-app-switch-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#eef3f7;color:var(--has-navy);font-size:23px;font-weight:900}
.hope-app-switch-card[aria-current="page"] .hope-app-switch-icon{background:var(--has-gold);color:var(--has-navy)}
.hope-app-switch-copy{min-width:0}.hope-app-switch-copy b{display:block;font-size:15px;line-height:1.25}.hope-app-switch-copy small{display:block;margin-top:4px;color:#607187;font-size:12px;line-height:1.38}
.hope-app-switch-card[aria-current="page"] .hope-app-switch-copy small{color:#d5e0eb}
.hope-app-switch-arrow{font-size:22px;color:#9a6a08}.hope-app-switch-card[aria-current="page"] .hope-app-switch-arrow{color:var(--has-gold)}
body.hope-civic-shell .hope-app-switch{margin-top:20px}

/* Civic OS crisis gateway: visually distinct, calm, and unmistakably connected to the Survival Guide. */
.intent.intent--survival-crisis{
  isolation:isolate;position:relative;overflow:hidden;min-height:158px;padding:18px 18px 16px 20px;
  border:1px solid rgba(233,182,63,.72);border-radius:19px;
  background:
    radial-gradient(circle at 88% 12%,rgba(255,255,255,.19),transparent 24%),
    radial-gradient(circle at 15% 115%,rgba(45,212,191,.30),transparent 42%),
    linear-gradient(142deg,#071d38 0%,#0b3d56 48%,#0b6b67 100%);
  color:#fff;box-shadow:0 16px 34px rgba(4,31,55,.24);
  cursor:pointer;transform:translateZ(0);
}
.intent.intent--survival-crisis::before{
  content:"";position:absolute;z-index:-1;left:-10%;right:-10%;bottom:-42px;height:86px;
  border:2px solid rgba(255,255,255,.13);border-radius:50%;transform:rotate(-4deg);
}
.intent.intent--survival-crisis::after{
  content:"";position:absolute;z-index:-1;inset:0;border-left:5px solid #f5bf3f;pointer-events:none;
}
.intent--survival-crisis .survival-card-anchor{
  position:absolute;top:11px;right:12px;width:35px;height:35px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(3,24,43,.36);
  color:#f5c955;font-size:18px;line-height:1;box-shadow:0 5px 14px rgba(0,0,0,.16);
}
.intent--survival-crisis .survival-card-eyebrow{
  display:block;width:max-content;max-width:calc(100% - 48px);margin:0 0 8px;padding:5px 9px;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.11);
  color:#fff4c9;font-size:10px;font-weight:900;letter-spacing:.13em;line-height:1;text-transform:uppercase;
}
.intent.intent--survival-crisis strong{
  display:block;max-width:13ch;margin:0;color:#fff;font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(19px,2vw,24px);line-height:1.05;letter-spacing:-.015em;
}
.intent.intent--survival-crisis small{
  display:block;max-width:30ch;margin-top:8px;color:rgba(244,251,255,.86);font-size:12.5px;line-height:1.4;
}
.intent--survival-crisis .survival-card-action{
  display:flex;align-items:center;gap:7px;margin-top:12px;color:#ffe59a;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;
}
.intent--survival-crisis .survival-card-action span{font-size:17px;line-height:1;transition:transform .16s ease}
.intent.intent--survival-crisis:hover{
  transform:translateY(-3px);border-color:#ffd86d;box-shadow:0 20px 42px rgba(4,31,55,.30);
}
.intent.intent--survival-crisis:hover .survival-card-action span{transform:translateX(3px)}
.intent.intent--survival-crisis:focus-visible{outline:4px solid #f5bf3f;outline-offset:4px}

/* Stable PWA installation handoff for Android, iPhone, iPad, and desktop browsers. */
.hope-install-prompt{box-sizing:border-box;position:fixed;z-index:9994;left:50%;bottom:max(18px,env(safe-area-inset-bottom));width:min(720px,calc(100% - 24px));transform:translateX(-50%);display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 12px 12px 14px;border:1px solid rgba(233,182,63,.75);border-radius:20px;background:linear-gradient(135deg,rgba(7,27,49,.98),rgba(13,57,82,.98));color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.34);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;backdrop-filter:blur(18px);animation:hopeInstallRise .28s ease-out both}
.hope-install-prompt[hidden],.hope-install-dialog[hidden]{display:none!important}
.hope-install-icon{display:block;width:58px;height:58px;border:1px solid rgba(255,255,255,.18);border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.hope-install-copy{min-width:0}.hope-install-copy b{display:block;color:#fff;font-size:15px;line-height:1.2}.hope-install-copy small{display:block;margin-top:4px;color:#d2dfeb;font-size:12px;line-height:1.35}
.hope-install-open,.hope-install-primary{min-height:44px;border:1px solid #f0c458;border-radius:999px;padding:9px 16px;background:#e9b63f;color:#071b31;font:900 13px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}
.hope-install-open:hover,.hope-install-open:focus-visible,.hope-install-primary:hover,.hope-install-primary:focus-visible{background:#fff;outline:3px solid #e9b63f;outline-offset:2px}
.hope-install-dismiss{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.hope-install-dismiss:hover,.hope-install-dismiss:focus-visible{background:#fff;color:#071b31;outline:3px solid #e9b63f;outline-offset:2px}
.hope-install-dialog{box-sizing:border-box;position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(2,13,25,.72);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;backdrop-filter:blur(8px)}
.hope-install-dialog-card{position:relative;width:min(540px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;padding:28px;border:1px solid rgba(233,182,63,.56);border-radius:26px;background:linear-gradient(155deg,#fffdf8,#f5ead2);color:#17283d;box-shadow:0 28px 90px rgba(0,0,0,.38)}
.hope-install-dialog-card>img{display:block;width:72px;height:72px;border-radius:19px;box-shadow:0 10px 28px rgba(7,27,49,.22)}
.hope-install-dialog-kicker{margin:18px 0 5px;color:#8a6210;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.hope-install-dialog h2{margin:0;color:#0b2344;font-family:Georgia,"Times New Roman",serif;font-size:clamp(25px,5vw,38px);line-height:1.03}
.hope-install-dialog ol{margin:22px 0;padding-left:24px}.hope-install-dialog li{margin:0 0 13px;padding-left:4px;line-height:1.45}.hope-install-dialog li::marker{color:#9a6a08;font-weight:900}
.hope-install-dialog-close{position:absolute;top:13px;right:13px;width:42px;height:42px;border:0;border-radius:50%;background:#0b2344;color:#fff;font-size:25px;cursor:pointer}
.hope-install-dialog-close:hover,.hope-install-dialog-close:focus-visible{background:#e9b63f;color:#071b31;outline:3px solid #0b2344;outline-offset:2px}
.hope-install-dialog-actions{display:flex;gap:9px;flex-wrap:wrap}.hope-install-secondary{min-height:44px;border:1px solid rgba(11,35,68,.28);border-radius:999px;padding:9px 16px;background:transparent;color:#0b2344;font:900 13px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}.hope-install-secondary:hover,.hope-install-secondary:focus-visible{background:#0b2344;color:#fff;outline:3px solid #e9b63f;outline-offset:2px}
.hope-install-dialog-note{margin:18px 0 0;padding-top:15px;border-top:1px solid rgba(11,35,68,.13);color:#607187;font-size:12px;line-height:1.45}
body.hope-install-open{overflow:hidden}
@keyframes hopeInstallRise{from{opacity:0;transform:translate(-50%,18px)}to{opacity:1;transform:translate(-50%,0)}}

/* Always-visible civic participation controls, promoted from the existing footer links. */
html.hope-civic-context .os-footer a[href^="corkboard.html"],
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"],
html.hope-civic-context .os-footer a[href^="report-problem.html"],
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]{
  box-sizing:border-box!important;position:fixed!important;z-index:9992!important;right:max(16px,env(safe-area-inset-right))!important;
  width:58px;height:58px;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  overflow:hidden;border:1px solid rgba(255,255,255,.58)!important;border-radius:999px!important;color:#fff!important;text-decoration:none!important;
  font:900 13px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:.01em!important;
  box-shadow:0 14px 34px rgba(4,24,43,.30)!important;transition:width .22s ease,transform .18s ease,box-shadow .18s ease!important;
  isolation:isolate;white-space:nowrap;
}
html.hope-civic-context .os-footer a[href^="corkboard.html"],
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]{bottom:94px!important;background:linear-gradient(145deg,#9a5b24,#d69145)!important;animation:hopeCorkboardFloat 3.8s ease-in-out infinite}
html.hope-civic-context .os-footer a[href^="report-problem.html"],
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]{bottom:26px!important;background:linear-gradient(145deg,#0b5663,#0c8a83)!important;animation:hopeFeedbackPulse 3.2s ease-in-out infinite}
html.hope-civic-context .os-footer a[href^="corkboard.html"]::before,
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]::before,
html.hope-civic-context .os-footer a[href^="report-problem.html"]::before,
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]::before{
  flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;font-size:25px;line-height:1;text-shadow:0 2px 5px rgba(0,0,0,.22)
}
html.hope-civic-context .os-footer a[href^="corkboard.html"]::before,
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]::before{content:"📌";animation:hopePinWiggle 2.8s ease-in-out infinite}
html.hope-civic-context .os-footer a[href^="report-problem.html"]::before,
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]::before{content:"💬";animation:hopeBubbleNod 2.4s ease-in-out infinite}
html.hope-civic-context .os-footer a[href^="corkboard.html"]::after,
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]::after{content:"Corkboard"}
html[lang^="es"].hope-civic-context .os-footer a[href^="corkboard.html"]::after,
html[lang^="es"].hope-civic-context .hope-civic-footer a[href^="corkboard.html"]::after{content:"Tablón"}
html.hope-civic-context .os-footer a[href^="report-problem.html"]::after,
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]::after{content:"Feedback"}
html[lang^="es"].hope-civic-context .os-footer a[href^="report-problem.html"]::after,
html[lang^="es"].hope-civic-context .hope-civic-footer a[href^="report-problem.html"]::after{content:"Comentarios"}
html.hope-civic-context .os-footer a[href^="corkboard.html"]:hover,
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]:hover,
html.hope-civic-context .os-footer a[href^="report-problem.html"]:hover,
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]:hover,
html.hope-civic-context .os-footer a[href^="corkboard.html"]:focus-visible,
html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]:focus-visible,
html.hope-civic-context .os-footer a[href^="report-problem.html"]:focus-visible,
html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]:focus-visible{
  width:154px;transform:translateY(-2px);box-shadow:0 18px 40px rgba(4,24,43,.38)!important;outline:4px solid #f1c75b!important;outline-offset:3px!important
}
body:has(.hope-install-prompt:not([hidden])) .os-footer a[href^="report-problem.html"],
body:has(.hope-install-prompt:not([hidden])) .hope-civic-footer a[href^="report-problem.html"]{bottom:122px!important}
body:has(.hope-install-prompt:not([hidden])) .os-footer a[href^="corkboard.html"],
body:has(.hope-install-prompt:not([hidden])) .hope-civic-footer a[href^="corkboard.html"]{bottom:190px!important}
@keyframes hopeCorkboardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes hopeFeedbackPulse{0%,100%{box-shadow:0 14px 34px rgba(4,24,43,.30),0 0 0 0 rgba(12,138,131,.28)}50%{box-shadow:0 14px 34px rgba(4,24,43,.30),0 0 0 10px rgba(12,138,131,0)}}
@keyframes hopePinWiggle{0%,75%,100%{transform:rotate(0)}82%{transform:rotate(-9deg)}90%{transform:rotate(7deg)}}
@keyframes hopeBubbleNod{0%,70%,100%{transform:translateY(0) scale(1)}80%{transform:translateY(-3px) scale(1.06)}90%{transform:translateY(1px) scale(.98)}}

@media(max-width:700px){.hope-app-switch-head{display:block}.hope-app-switch-note{margin-top:6px;text-align:left}.hope-app-switch-grid{grid-template-columns:1fr}.hope-app-switch-card{min-height:86px}.hope-install-prompt{bottom:calc(82px + env(safe-area-inset-bottom));grid-template-columns:auto minmax(0,1fr) auto;padding:10px}.hope-install-dismiss{position:absolute;right:-5px;top:-14px;background:#071b31;border:1px solid rgba(255,255,255,.3)}.hope-install-copy small{font-size:11.5px}.hope-install-open{padding:9px 13px}.hope-install-dialog-card{padding:24px 20px}html.hope-civic-context .os-footer a[href^="report-problem.html"],html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]{bottom:calc(84px + env(safe-area-inset-bottom))!important}html.hope-civic-context .os-footer a[href^="corkboard.html"],html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]{bottom:calc(150px + env(safe-area-inset-bottom))!important}body:has(.hope-install-prompt:not([hidden])) .os-footer a[href^="report-problem.html"],body:has(.hope-install-prompt:not([hidden])) .hope-civic-footer a[href^="report-problem.html"]{bottom:calc(176px + env(safe-area-inset-bottom))!important}body:has(.hope-install-prompt:not([hidden])) .os-footer a[href^="corkboard.html"],body:has(.hope-install-prompt:not([hidden])) .hope-civic-footer a[href^="corkboard.html"]{bottom:calc(242px + env(safe-area-inset-bottom))!important}html.hope-civic-context .os-footer a[href^="corkboard.html"]:hover,html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]:hover,html.hope-civic-context .os-footer a[href^="report-problem.html"]:hover,html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]:hover{width:58px}}
@media(max-width:500px){.hope-install-icon{width:50px;height:50px;border-radius:14px}.hope-install-copy b{font-size:14px}.hope-install-copy small{display:none}.hope-install-prompt{gap:9px}.hope-install-open{font-size:12px}}
@media(max-width:380px){.hope-app-switch-inner{padding:12px}.hope-app-switch-card{grid-template-columns:auto 1fr;padding:13px}.hope-app-switch-arrow{display:none}.hope-app-switch-icon{width:42px;height:42px}.hope-install-prompt{grid-template-columns:auto 1fr}.hope-install-open{grid-column:1/-1;width:100%}}
@media(prefers-reduced-motion:reduce){.hope-app-switch-card,.intent.intent--survival-crisis,.survival-card-action span,.hope-install-prompt{transition:none;animation:none}.hope-app-switch-card:hover,.intent.intent--survival-crisis:hover{transform:none}html.hope-civic-context .os-footer a[href^="corkboard.html"],html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"],html.hope-civic-context .os-footer a[href^="report-problem.html"],html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"],html.hope-civic-context .os-footer a[href^="corkboard.html"]::before,html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"]::before,html.hope-civic-context .os-footer a[href^="report-problem.html"]::before,html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]::before{animation:none!important;transition:none!important}}
@media print{.hope-app-switch,.hope-install-prompt,.hope-install-dialog,html.hope-civic-context .os-footer a[href^="corkboard.html"],html.hope-civic-context .hope-civic-footer a[href^="corkboard.html"],html.hope-civic-context .os-footer a[href^="report-problem.html"],html.hope-civic-context .hope-civic-footer a[href^="report-problem.html"]{display:none!important}}


/* Site-wide HOPE application banner: present on every published HTML page. */
.hope-site-banner{box-sizing:border-box;position:relative;z-index:10020;width:100%;border-bottom:1px solid rgba(233,182,63,.52);background:linear-gradient(90deg,#06192f,#0b3153 58%,#0c5360);color:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 5px 18px rgba(3,18,34,.22)}
.hope-site-banner *{box-sizing:border-box}
.hope-site-banner__inner{width:min(1120px,100%);min-height:50px;margin:auto;padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px}
.hope-site-banner__brand{display:flex;align-items:center;gap:7px;color:#f2c75c;font-size:12px;font-weight:950;letter-spacing:.11em;white-space:nowrap}
.hope-site-banner__brand-mark{font-size:17px}
.hope-site-banner__links{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.hope-site-banner__link{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.08);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:850;line-height:1.1;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.hope-site-banner__link:hover{transform:translateY(-1px);border-color:#f2c75c;background:rgba(255,255,255,.16)}
.hope-site-banner__link:focus-visible{outline:3px solid #f2c75c;outline-offset:2px}
.hope-site-banner__link[aria-current="page"]{border-color:#f2c75c;background:#f2c75c;color:#071b31!important}
.hope-site-banner .hope-label-es{display:none}
html[lang^="es"] .hope-site-banner .hope-label-en{display:none}
html[lang^="es"] .hope-site-banner .hope-label-es{display:inline}
@media(max-width:520px){.hope-site-banner__inner{gap:7px}.hope-site-banner__brand{font-size:0;letter-spacing:0}.hope-site-banner__brand-mark{font-size:19px}.hope-site-banner__links{flex:1}.hope-site-banner__link{flex:1;min-width:0;padding:7px 8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.hope-site-banner__link{transition:none}.hope-site-banner__link:hover{transform:none}}
@media print{.hope-site-banner{display:none!important}}
