/* HomeSquare - the partner portal page (templates/pages/partner_portal.php), board 03.
   Its own darker look: navy, sun yellow, teal. Every class is hsp-* so nothing here meets the
   national page's rules (theme.css). Minimum text 14px (owner rule). */
body.hsp {
    --hsp-navy: #071A2B;
    --hsp-deep: #04111D;
    --hsp-sun: #FFC93C;
    --hsp-teal: #14B8A6;
    --hsp-coral: #FF6B5B;
    --hsp-violet: #8B5CF6;
    --hsp-cyan: #38D9F5;
    --hsp-mint: #7FF0DE;
    --hsp-muted: #4A5F6E;
    --hsp-soft: #B7C7D6;
    background: var(--hsp-navy);
    color: var(--hsp-navy);
}
.hsp-main { background: #FFFBF3; }
.hsp-main img { display: block; max-width: 100%; }
.hsp-main :is(h1, h2, h3, p, dl, dd) { margin: 0; }

/* buttons */
.hsp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 16px 16px 16px 5px; font: 800 15.5px var(--hs-body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .25s, box-shadow .3s, background-position .6s; }
.hsp-btn:hover { transform: translateY(-3px); }
.hsp-sun { background: linear-gradient(110deg, var(--hsp-sun-a, #FFD54F), var(--hsp-sun, #FFC93C) 40%, var(--hsp-sun-b, #FF9F43)); background-size: 200% 100%; color: var(--hsp-navy); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -14px rgba(255, 170, 40, .85); }
.hsp-sun:hover { color: var(--hsp-navy); background-position: 100% 0; }
.hsp-glass-btn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #FFFFFF; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hsp-glass-btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, .14); }
.hsp-ink { background: var(--hsp-navy); color: #FFFFFF; box-shadow: 0 16px 30px -16px rgba(7, 26, 43, .9); }
.hsp-ink:hover { color: #FFFFFF; }
.hsp-white { background: #FFFFFF; border: 1px solid rgba(7, 26, 43, .12); color: var(--hsp-navy); }
.hsp-white:hover { color: var(--hsp-navy); }
.hsp-ic { flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; }
.hsp-grad { background: linear-gradient(95deg, var(--hsp-sun, #FFC93C) 0%, #FF6B5B 40%, #C084FC 70%, #38D9F5 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hsp-shim 9s ease-in-out infinite alternate; }
@keyframes hsp-shim { to { background-position: 100% 0; } }
.hsp-mark { background: linear-gradient(transparent 60%, rgba(var(--hsp-sun-rgb, 255, 201, 60), .75) 60%); padding: 0 .05em; }
.hsp-card { background: #FFFFFF; border: 1px solid rgba(7, 26, 43, .06); border-radius: 22px; box-shadow: 0 1px 2px rgba(7, 26, 43, .05), 0 24px 44px -26px rgba(7, 26, 43, .35); }
.hsp-lift { transition: transform .35s, box-shadow .35s; }
.hsp-lift:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -30px rgba(11, 116, 102, .55); }
.hsp-glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 22px; }
.hsp-mono { font: 600 14px var(--hs-mono); letter-spacing: .1em; }

/* sections */
.hsp-sec { position: relative; padding: 88px 0; overflow: hidden; }
.hsp-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .7fr); gap: 20px 26px; align-items: end; margin-bottom: 36px; }
.hsp-num { position: relative; width: 70px; height: 70px; border-radius: 22px 22px 22px 7px; display: grid; place-items: center; font: 800 23px var(--hs-mono); color: var(--hsp-navy); background: linear-gradient(135deg, var(--hsp-sun-a, #FFE08A), var(--hsp-sun, #FFC93C)); box-shadow: 0 18px 30px -14px rgba(255, 170, 40, .8); }
.hsp-num.t { background: linear-gradient(135deg, #7FF0DE, #14B8A6); box-shadow: 0 18px 30px -14px rgba(20, 184, 166, .8); }
.hsp-num.c { background: linear-gradient(135deg, #FFB4A8, #FF6B5B); box-shadow: 0 18px 30px -14px rgba(255, 107, 91, .8); }
.hsp-num.v { background: linear-gradient(135deg, #D8C7FF, #8B5CF6); color: #FFFFFF; box-shadow: 0 18px 30px -14px rgba(139, 92, 246, .8); }
.hsp-num.a { background: linear-gradient(135deg, #B6F3FF, #38D9F5); box-shadow: 0 18px 30px -14px rgba(56, 217, 245, .8); }
.hsp-kick { display: block; font: 600 14px var(--hs-mono); letter-spacing: .14em; text-transform: uppercase; color: #E2553F; margin-bottom: 10px; }
.hsp-dark .hsp-kick { color: var(--hsp-sun); }
.hsp-h2 { font: 900 clamp(32px, 4vw, 54px)/1.02 var(--hs-display); letter-spacing: -.035em; }
.hsp-lede { font-size: 16.5px; line-height: 1.55; color: var(--hsp-muted); }
.hsp-dark .hsp-lede { color: var(--hsp-soft); }
.hsp-dark { background: var(--hsp-navy); color: #FFFFFF; }
.hsp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hsp-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hsp-g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hsp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hsp-photo { position: relative; overflow: hidden; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(7, 26, 43, .7); }
.hsp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hsp-photo:hover img { transform: scale(1.06); }
.hsp-kb img { animation: hsp-kb 22s ease-in-out infinite alternate; }
@keyframes hsp-kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -1%); } }

/* the home check */
.hsp-opt { min-height: 44px; padding: 8px 16px; border-radius: 12px 12px 12px 3px; font: 700 14.5px var(--hs-body); cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #FFFFFF; transition: background .2s, border-color .2s; }
.hsp-opt:hover { border-color: rgba(var(--hsp-sun-rgb, 255, 201, 60), .7); }
.hsp-opt[aria-pressed="true"] { background: var(--hsp-sun); border-color: var(--hsp-sun); color: var(--hsp-navy); box-shadow: 0 10px 22px -10px rgba(var(--hsp-sun-rgb, 255, 201, 60), .9); }
.hsp-q { padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .03); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; align-items: center; transition: background .3s, border-color .3s; }
.hsp-q.is-answered { background: rgba(var(--hsp-sun-rgb, 255, 201, 60), .08); border-color: rgba(var(--hsp-sun-rgb, 255, 201, 60), .45); }
.hsp-res { position: relative; border-radius: 26px; padding: 26px; display: grid; gap: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: linear-gradient(140deg, #FFFFFF, #EEF3F6); color: var(--hsp-navy); transition: background .3s; }
.hsp-res[data-tone="yes"] { background: linear-gradient(140deg, var(--hsp-sun-a, #FFE08A), var(--hsp-sun, #FFC93C) 55%, var(--hsp-sun-b, #FF9F43)); }
.hsp-res[data-tone="maybe"] { background: linear-gradient(140deg, #B6F3FF, #7FF0DE); color: #05302B; }
.hsp-res[data-tone="out"] { background: linear-gradient(140deg, #FFD9D2, #FFB4A8); color: #4A1209; }

/* who we help: the path tabs */
.hsp-tab { flex: 1 0 auto; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 0; font: 700 15px var(--hs-body); cursor: pointer; background: transparent; color: var(--hsp-muted); }
.hsp-tab[aria-selected="true"] { background: var(--hsp-navy); color: #FFFFFF; box-shadow: 0 12px 24px -14px rgba(7, 26, 43, .9); }

/* the packet */
.hsp-doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; min-height: 116px; padding: 20px; cursor: pointer; }
.hsp-doc input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: #0B7466; }
.hsp-doc:has(input:checked) { background: #F0FBF7; border-color: rgba(20, 184, 166, .5); }

/* section nav */
.hsp-sn { position: sticky; top: 72px; z-index: 30; background: rgba(255, 251, 243, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(7, 26, 43, .08); box-shadow: 0 10px 30px -26px rgba(7, 26, 43, .6); }
.hsp-sn .wrap { display: flex; gap: 22px; overflow-x: auto; justify-content: space-between; }
.hsp-sn a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--hsp-muted); white-space: nowrap; }
.hsp-sn a b { font: 600 14px var(--hs-mono); color: #E2553F; }
.hsp-sn a:hover { color: var(--hsp-navy); }

/* faq */
details.hsp-faq { border-bottom: 1px solid rgba(7, 26, 43, .1); }
details.hsp-faq:last-child { border-bottom: 0; }
details.hsp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 62px; padding: 14px 0; font: 700 17px var(--hs-body); }
details.hsp-faq summary::-webkit-details-marker { display: none; }
details.hsp-faq summary::after { content: "+"; flex: 0 0 34px; height: 34px; border-radius: 11px 11px 11px 3px; background: var(--hsp-navy); color: var(--hsp-sun); display: grid; place-items: center; font: 700 20px var(--hs-body); }
details.hsp-faq[open] summary::after { content: "–"; background: var(--hsp-sun); color: var(--hsp-navy); }
details.hsp-faq p { padding: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--hsp-muted); max-width: 70ch; }

/* chrome: the notice, header and footer */
.hsp-notice { background: var(--hsp-deep); color: #FFE08A; font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hsp-head { position: sticky; top: 0; z-index: 40; background: rgba(7, 26, 43, .86); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hsp-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.hsp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; }
.hsp-brand:hover { color: #FFFFFF; }
.hsp-brand b { font: 800 16px/1.1 var(--hs-display); }
.hsp-brand small { display: block; font: 600 14px var(--hs-mono); letter-spacing: .04em; color: #9FB4C7; }
.hsp-nav { display: flex; gap: 24px; margin-left: auto; font-weight: 700; font-size: 14.5px; }
.hsp-nav a { color: #DCE6EF; text-decoration: none; }
.hsp-nav a:hover { color: #FFFFFF; }
.hsp-head .acts { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.hsp-foot { background: var(--hsp-navy); color: #9FB4C7; padding: 34px 0 100px; font-size: 14px; } /* the bottom clears the fixed Copilot button (.hsp-fab), which covered the legal links */
.hsp-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; }
.hsp-foot a { color: var(--hsp-sun); }
.hsp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--hsp-navy); border: 1px solid rgba(var(--hsp-sun-rgb, 255, 201, 60), .45); color: #FFFFFF; text-decoration: none; box-shadow: 0 20px 50px -14px rgba(7, 26, 43, .7); }
.hsp-fab:hover { color: #FFFFFF; }
.hsp-fab .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #14B8A6, #0B7466); display: grid; place-items: center; }
.hsp-fab b { display: block; font-size: 14px; }
.hsp-fab small { color: #9FB4C7; font-size: 14px; }

/* living background */
.hsp-mesh { position: absolute; inset: -10%; pointer-events: none; filter: blur(70px); opacity: .9; }
.hsp-blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: hsp-blob 26s ease-in-out infinite alternate; }
.hsp-b1 { width: 46%; height: 56%; left: -6%; top: -10%; background: radial-gradient(closest-side, #14B8A6, transparent); }
.hsp-b2 { width: 40%; height: 50%; right: -4%; top: -6%; background: radial-gradient(closest-side, #8B5CF6, transparent); animation-duration: 32s; animation-delay: -8s; }
.hsp-b3 { width: 44%; height: 50%; left: 30%; bottom: -20%; background: radial-gradient(closest-side, #FF6B5B, transparent); animation-duration: 28s; animation-delay: -14s; opacity: .75; }
.hsp-b4 { width: 30%; height: 36%; right: 18%; bottom: 6%; background: radial-gradient(closest-side, var(--hsp-sun, #FFC93C), transparent); animation-duration: 24s; animation-delay: -4s; opacity: .6; }
@keyframes hsp-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } 100% { transform: translate(-6%, 10%) scale(.95); } }
.hsp-grain { position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; }
.hsp-float { animation: hsp-float 7s ease-in-out infinite alternate; }
.hsp-f2 { animation-duration: 8.5s; animation-delay: -2s; }
.hsp-f3 { animation-duration: 6.5s; animation-delay: -4s; }
.hsp-f4 { animation-duration: 9s; animation-delay: -1s; }
@keyframes hsp-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.hsp-twinkle { animation: hsp-tw 3.2s ease-in-out infinite; }
@keyframes hsp-tw { 50% { opacity: .25; } }
.hsp-flow { stroke-dasharray: 4 10; animation: hsp-flow 1.6s linear infinite; }
@keyframes hsp-flow { to { stroke-dashoffset: -28; } }
.hsp-pulse { animation: hsp-pulse 2.2s ease-out infinite; }
@keyframes hsp-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--hsp-sun-rgb, 255, 201, 60), .65); } 100% { box-shadow: 0 0 0 18px rgba(var(--hsp-sun-rgb, 255, 201, 60), 0); } }
.hsp-marq { display: flex; gap: 16px; width: max-content; animation: hsp-marq 60s linear infinite; }
.hsp-marq:hover { animation-play-state: paused; }
@keyframes hsp-marq { to { transform: translateX(-50%); } }
.hsp-prog { animation: hsp-prog 6s ease-in-out infinite; }
@keyframes hsp-prog { from { stroke-dashoffset: 1200; } 60%, to { stroke-dashoffset: 0; } }
.hsp-spin { animation: hsp-spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hsp-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .hsp-nav { display: none; } }
@media (max-width: 1020px) {
    .hsp-split { grid-template-columns: 1fr !important; gap: 28px; }
    .hsp-g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hsp-g3 { grid-template-columns: 1fr 1fr; }
    .hsp-hd { grid-template-columns: auto minmax(0, 1fr); }
    .hsp-hd > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
    .hsp-bento { grid-template-columns: 1fr 1fr !important; grid-template-rows: auto !important; }
    .hsp-bento > * { grid-column: auto !important; grid-row: auto !important; min-height: 220px; }
    .hsp-check-side { position: static !important; }
}
@media (max-width: 640px) {
    .hsp-g2, .hsp-g3, .hsp-g5, .hsp-docs, .hsp-pts { grid-template-columns: 1fr !important; }
    .hsp-sec { padding: 64px 0; }
    .hsp-num { width: 56px; height: 56px; font-size: 19px; }
    .hsp-mosaic { margin-top: 12px; }
    .hsp-bento { grid-template-columns: 1fr !important; }
    .hsp-head .wrap { gap: 10px; min-height: 64px; }
    .hsp-brand small, .hsp-head .hsp-call { display: none; }
    .hsp-head .hsp-btn { min-height: 44px; padding: 10px 14px; font-size: 14px; }
    .hsp-sn { top: 64px; }
    .hsp-fab { padding: 6px; right: 14px; bottom: 14px; }
    .hsp-fab .hs-wide { display: none; }
    .hsp-story-mini { grid-template-columns: 110px minmax(0, 1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .hsp-blob, .hsp-float, .hsp-twinkle, .hsp-flow, .hsp-pulse, .hsp-marq, .hsp-prog, .hsp-spin, .hsp-kb img, .hsp-grad { animation: none; }
}
