/* My HEW member concept: bold HEW energy, mobile first. Layout: one app column, an explainer beside it on wide screens. */
:root {
  --y: #ffd249;
  --y-2: #f2c22f;
  --y-soft: #fff6d8;
  --navy: #021f2d;
  --navy-2: #0a2b3c;
  --blue: #4473b4;
  --blue-2: #2f5c99;
  --cloud: #f2f3ef;
  --text: #021f2d;
  --text-2: #42565f;
  --dis: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
body.mbr { background: var(--cloud); color: var(--text); font-family: var(--body); font-size: 16px; }
.mbr .wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.mbr :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.concept-bar { background: #fff; border-bottom: 1px solid #e2e4e3; }
.concept-bar .wrap { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.concept-bar p { margin: 0; font-size: 14px; color: var(--text-2); }
.concept-bar p b { color: var(--text); }
@media (max-width: 600px) { .concept-bar .wrap { flex-direction: column; gap: 6px; } }
.mlay { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 36px; padding: 28px 0 30px; align-items: start; justify-content: center; }
@media (max-width: 880px) { .mlay { grid-template-columns: minmax(0, 1fr); } }
.app { display: grid; gap: 14px; min-width: 0; }
.app-h { display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 16px; border-radius: 18px; box-shadow: inset 0 -4px 0 var(--y); }
.app-h img { height: 20px; width: auto; }
.app-name { font-family: var(--dis); font-size: 24px; letter-spacing: .06em; padding-left: 12px; border-left: 2px solid #e2e4e3; line-height: 1; padding-top: 3px; }
.me { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--y); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.hello { background: var(--navy) url(../img/hew-topo.webp) center / cover; background-blend-mode: soft-light; color: #fff; border-radius: 22px; padding: 22px 20px; position: relative; overflow: hidden; }
.hello::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(2, 31, 45, .92), rgba(2, 31, 45, .78)); }
.hello > * { position: relative; }
.hello .hi { margin: 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--y); font-weight: 700; }
.hello h1 { font-family: var(--dis); font-weight: 400; font-size: 56px; line-height: .95; letter-spacing: .02em; margin: 6px 0 14px; text-transform: uppercase; }
.hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hstats div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.hstats b { display: block; font-family: var(--dis); font-weight: 400; font-size: 34px; line-height: 1; color: var(--y); font-variant-numeric: tabular-nums; }
.hstats span { font-size: 12.5px; color: #c9d6dd; }
.next-ms { margin-top: 14px; }
.nm-top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.nm-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); margin: 6px 0; overflow: hidden; }
.nm-bar span { display: block; height: 100%; background: var(--y); border-radius: 8px; transition: width .8s ease; }
.next-ms small { font-size: 11.5px; color: #a9bcc6; }
.mcard { background: #fff; border-radius: 20px; padding: 18px; scroll-margin-top: calc(var(--bar-h) + 12px); }
.mc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mc-h h2 { font-family: var(--dis); font-weight: 400; font-size: 28px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f { display: grid; gap: 5px; margin-bottom: 10px; min-width: 0; }
.f label { font-size: 13.5px; font-weight: 700; }
.f input, .f select { font: inherit; padding: 11px 12px; border: 1.5px solid #d5dbde; border-radius: 12px; background: #fff; width: 100%; min-width: 0; }
.f input:focus, .f select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(68, 115, 180, .2); }
.f input[aria-invalid="true"] { border-color: #a33a2a; }
.f small { font-size: 12px; color: var(--text-2); }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 2px 0 8px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.err { color: #a33a2a; font-size: 14px; margin: 0 0 8px; min-height: 0; }
.err:empty { display: none; }
.mbtn { width: 100%; font-family: var(--dis); font-size: 24px; letter-spacing: .06em; padding: 13px 18px 10px; border: 0; border-radius: 14px; background: var(--y); color: var(--navy); cursor: pointer; transition: transform .15s, background .15s; }
.mbtn:hover { background: #ffdc6e; transform: translateY(-1px); }
.mbtn.n { background: var(--navy); color: var(--y); }
.mbtn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.mbtn.sm { font-size: 19px; padding: 10px 14px 8px; width: auto; }
.res { margin-top: 12px; border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.res.pr { background: var(--navy); color: #fff; }
.res.pr .big { font-family: var(--dis); font-size: 44px; line-height: .95; color: var(--y); letter-spacing: .02em; }
.res.pr p { margin: 0; color: #d9e3e8; }
.res.plain { background: var(--cloud); }
.res.plain p { margin: 0; }
.earned { display: flex; gap: 12px; align-items: center; background: var(--y); color: var(--navy); border-radius: 12px; padding: 10px 12px; font-weight: 700; animation: pop .6s ease; }
.earned .medal { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--y); display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }
.res a { color: var(--y); font-weight: 700; }
.ltabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ltabs button { border: 1.5px solid #d5dbde; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ltabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#chart svg { width: 100%; height: auto; display: block; }
.sum { font-size: 14px; color: var(--text-2); margin: 8px 0 10px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hist li { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 10px; border-radius: 10px; background: var(--cloud); font-variant-numeric: tabular-nums; }
.hist li.top { background: var(--y-soft); font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bdg { border-radius: 14px; padding: 12px 8px; text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--cloud); font-size: 13px; font-weight: 600; }
.bdg .m { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--y); color: var(--navy); }
.bdg.locked { color: #7d8b92; }
.bdg.locked .m { background: #e2e4e3; color: #7d8b92; }
.bdg small { font-weight: 400; color: var(--text-2); font-size: 11.5px; }
.note { border-left: 4px solid var(--y); background: var(--cloud); border-radius: 0 12px 12px 0; padding: 12px 14px; }
.note + .note { margin-top: 8px; }
.note b { display: block; font-size: 14px; }
.note p { margin: 4px 0 0; }
.empty-m { color: var(--text-2); font-size: 14.5px; background: var(--cloud); border-radius: 12px; padding: 14px; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 12px; }
.wk { border-radius: 12px; padding: 10px; background: var(--cloud); text-align: center; font-size: 13px; }
.wk b { display: block; font-family: var(--dis); font-weight: 400; font-size: 26px; line-height: 1; }
.wk.now { background: var(--y-soft); box-shadow: inset 0 0 0 2px var(--y-2); }
.wk.done { background: var(--navy); color: #fff; }
.wk.done b { color: var(--y); }
.wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wins li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 9px 12px; border-radius: 12px; background: var(--cloud); }
.wins li::before { content: "\2605"; color: var(--y-2); }
.wins li.me-row { background: var(--y-soft); font-weight: 700; }
.sw { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid #eceeed; cursor: pointer; }
.sw:first-of-type { border-top: 0; }
.sw input { appearance: none; width: 44px; height: 26px; border-radius: 26px; background: #cfd6d9; position: relative; cursor: pointer; margin: 2px 0 0; transition: background .2s; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw input:checked { background: var(--navy); }
.sw input:checked::after { transform: translateX(18px); }
.sw b { display: block; font-size: 15px; }
.sw small { color: var(--text-2); font-size: 13px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.ideas button { border: 1.5px dashed #b9c3c8; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ideas button:hover { border-color: var(--navy); border-style: solid; }
.explain { position: sticky; top: calc(var(--bar-h) + 20px); min-width: 0; }
.explain h2 { font-family: var(--dis); font-weight: 400; font-size: 40px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; margin-bottom: 10px; }
.explain h3 { font-size: 15px; margin: 20px 0 6px; }
.explain p, .explain li { color: var(--text-2); font-size: 15px; }
.explain ol { padding-left: 20px; display: grid; gap: 6px; }
.explain a { color: var(--blue-2); font-weight: 700; }
.explain .legend { margin: 14px 0 0; }
@media (max-width: 880px) { .explain { position: static; } }
.mfoot { font-size: 12.5px; color: var(--text-2); padding: 0 0 40px; margin: 0; }
.small { font-size: 13.5px; color: var(--text-2); }
