/* Hop Academy – HOP Weekly, HOP Habits and the Parent Approval Centre */
/* in-page sub-tabs: one swipeable line of pills (wraps on wide screens) */
.hsub{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;margin:10px -14px 6px;padding:2px 14px 6px}
.hsub::-webkit-scrollbar{display:none}
.hsub .btn{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;margin:0;border-radius:99px}
.hsub .nb{position:static;display:inline-block;margin-left:6px;vertical-align:1px;box-shadow:none}
/* community sections stay in view under the header while scrolling */
.csub{position:sticky;top:var(--toph,52px);z-index:5;background:#eef3f7;margin-top:0;padding-top:8px;padding-bottom:8px;border-bottom:1px solid #d3e2ea}
.csub .sep{flex:0 0 2px;align-self:stretch;margin:4px 4px;border-radius:2px;background:#c5d5de}
.csub .btn.ic{min-width:44px;font-size:1.05rem}
.cintro{margin:4px 2px 0}
@media (min-width:821px){.hsub{flex-wrap:wrap;margin-left:0;margin-right:0;padding-left:0;padding-right:0}}
@media (max-width:520px){.hsub{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}}
h2.hh{margin:18px 0 2px;font-size:1.25rem}
label.ck{display:inline-flex;gap:6px;align-items:center;margin:4px 12px 4px 0;font-weight:700;cursor:pointer}
label.ck input{width:auto;margin:0;accent-color:var(--grape)}

/* kids: board + habit cards */
.hhero{background:linear-gradient(135deg,#00b4d8,#7b5cff 60%,#ff5fa2)}
.hhero::after{background-image:url(/icons/1f9e9.svg)}
.hhero.g{background:linear-gradient(135deg,#21c08b,#0e8fb0 60%,#7b5cff)}
.hhero.g::after{background-image:url(/icons/1f331.svg)}
.hopc{display:flex;gap:12px;align-items:center;cursor:pointer;transition:transform .15s}
.hopc:hover{transform:translateY(-2px)}
.hopc .ic{flex:0 0 54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:1.75rem;background:linear-gradient(135deg,#efe7ff,#d9f3ff)}
.hopc .ic.g{background:linear-gradient(135deg,#d4f7e9,#fff1bf)}
.hopc .bd{flex:1;min-width:0}
.hopc h3{font-size:1.08rem;margin:0 0 3px}
.hopc .go{font:700 1.6rem Fredoka,system-ui,sans-serif;color:#c9bfff}
.hopc.done{background:#f6fffb}
.hopc.done .ic{background:#d4f7e9}
.cheer{background:linear-gradient(135deg,#d4f7e9,#fff1bf);font-weight:800}
.hban{background:linear-gradient(135deg,#00b4d8,#7b5cff)}
.hban.g{background:linear-gradient(135deg,#21c08b,#0e8fb0)}
.hhome{background:linear-gradient(135deg,#e5f8ff,#efe7ff);cursor:pointer}
.dots{display:flex;gap:5px;margin:8px 0;flex-wrap:wrap}
.dots i{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font:800 .62rem Nunito,system-ui,sans-serif;font-style:normal;background:#f0ecff;color:var(--mut)}
.dots i.on{background:var(--mint);color:#fff;font-size:.9rem}
.dots i.td{box-shadow:0 0 0 3px var(--sun)}
.safe{background:#fff7e0;border:2px solid #ffd76a;border-radius:16px;padding:10px 12px;margin:10px 0}
.steps label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:#fbfaff;margin:6px 0;border:2px solid var(--line);cursor:pointer}
.steps input{width:auto;margin:3px 0 0;accent-color:var(--mint);transform:scale(1.3)}

/* parents */
.hphead{background:linear-gradient(135deg,#0d2b3e,#0e7490);color:#fff}
.hphead .m{color:#d9f3ff}
.hphead .brand{font:700 .8rem Nunito,system-ui,sans-serif;letter-spacing:.12em;opacity:.85}
.soon{background:#f8fafc;border:2px dashed #cbd5e1;box-shadow:none}
.tilep[data-a]{cursor:pointer}
.tilep[data-a]:hover{border-color:#0e7490}

@media (prefers-reduced-motion: reduce){.hopc{transition:none}.hopc:hover{transform:none}}

.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:10px 0}

/* HOP Community */
.lnk{border:0;background:none;color:var(--sea);font:inherit;font-weight:700;cursor:pointer;padding:0;text-decoration:underline}
.cmsgs{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow-y:auto;padding:6px 2px;margin:8px 0}
.cmsg{max-width:82%;padding:8px 12px;border-radius:16px;background:#f1f5f9;align-self:flex-start;white-space:pre-wrap;word-wrap:break-word}
.cmsg.me{align-self:flex-end;background:#0e7490;color:#fff}
.cmsg .cwho{display:block;font-size:.72rem;font-weight:800;opacity:.75;margin-bottom:2px}
.cmsg.me .lnk{color:#fff}
.pp{margin:0 0 4px}.pp select:disabled{opacity:.55}
.cks{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.ckc{position:relative;cursor:pointer;margin:0}
.ckc input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.ckc span{display:inline-block;padding:7px 12px;min-height:36px;line-height:20px;border-radius:99px;border:1.5px solid #cbd5e1;background:#fff;color:#334155;font-weight:700;font-size:.85rem}
.ckc input:checked+span{background:#0e7490;border-color:#0e7490;color:#fff}
.ckc input:checked+span::before{content:'✓ '}
.ckc input:focus-visible+span{outline:2px solid #0e7490;outline-offset:2px}
.kidp{border:1px solid #e3e9ef;border-radius:12px;padding:8px 10px;margin:6px 0}.kidp select{width:auto;min-width:130px}
.pcard label.ck,.card label.ck.blk{display:flex;align-items:flex-start}.pcard label.ck input{margin-top:4px}
