/* Malo Help (0.34.1; FR-141; mockup malo26-0.34.1-help_mockup-*.png). Tokens come from styles.css. */
.help-page { background: var(--bg); min-height: 100vh; }
.help-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .6rem; background: var(--green); color: #fff;
  padding: .85rem 1rem; padding-top: calc(.85rem + env(safe-area-inset-top, 0px)); }
.help-top h1 { flex: 1; margin: 0; font-size: 1.1rem; font-weight: 600; }
.help-top a { color: #fff; text-decoration: none; font-size: .9rem; }
.h-back { font-weight: 600; font-size: 1.05rem !important; }
.h-back:not([hidden]) + h1 { display: none; }
.h-actions { display: flex; gap: 1rem; margin-left: auto; }
.help-wrap { max-width: 1440px; margin: 0 auto; }
.h-main { padding: .9rem; max-width: 46rem; margin: 0 auto; }
.h-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: .9rem; }
.h-card h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.h-sub { font-size: 1rem; margin: 1.1rem .1rem .6rem; }
.h-search input { width: 100%; font: inherit; padding: .7rem .9rem .7rem 2.3rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235b665f' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .75rem center; margin-bottom: .9rem; }
.h-start { list-style: none; margin: .5rem 0 .4rem; padding: 0; }
.h-start li + li { border-top: 1px solid var(--line); }
.h-start a { display: flex; gap: .8rem; align-items: center; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.h-start a > span:last-child { display: flex; flex-direction: column; }
.h-start .n { flex: none; width: 2rem; height: 2rem; border-radius: 8px; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-weight: 600; }
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.h-mod { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .85rem; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: .2rem; }
.h-mod .ico { width: 2rem; height: 2rem; border-radius: 8px; background: var(--green-50); display: grid; place-items: center; margin-bottom: .35rem; }
.h-mod.soon { opacity: .6; }
.h-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .2rem 1rem; margin: .9rem 0; }
.h-row { display: flex; align-items: center; gap: .6rem; padding: .8rem 0; color: var(--ink); text-decoration: none; }
.h-row + .h-row { border-top: 1px solid var(--line); }
.h-row > span:first-child { flex: 1; display: flex; flex-direction: column; }
.h-row .chev { color: var(--faint); font-size: 1.2rem; }
.h-cap { margin: .9rem 0 .1rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.h-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.h-chips button { font: inherit; font-size: .88rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); min-height: 36px; }
.h-chips button.on { background: var(--green); border-color: var(--green); color: #fff; }
.h-badge { margin: .6rem 0 0; font-size: .88rem; padding: .45rem .7rem; border-radius: var(--radius-s); }
.h-badge.on { background: var(--green-50); color: var(--green); } .h-badge.off { background: var(--due-bg); color: var(--due); }
.h-guide ol.steps { list-style: none; counter-reset: s; padding: 0; margin: .9rem 0; }
.h-guide ol.steps li { counter-increment: s; position: relative; padding: .1rem 0 .75rem 2.4rem; }
.h-guide ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--green); color: #fff;
  font-size: .85rem; font-weight: 600; display: grid; place-items: center; }
.h-guide h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.h-guide .note { background: var(--paid-bg); color: #1d3f86; padding: .7rem .85rem; border-radius: var(--radius-s); }
.h-pic { margin: .9rem 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem; text-align: center; }
/* 0.34.2: both sides auto, so the 375 x 760 picture keeps its shape when max-height shrinks it (it was squeezed) */
.h-pic img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.h-pic figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
/* 0.54.0 (FR-357 to FR-362): videos on a guide. One: the poster with its Play line. Several: a list of small posters. */
.h-vids { margin: .9rem 0; }
.h-vids .h-cap { margin-top: 0; }
.h-vid + .h-vid { margin-top: .5rem; }
.h-vid-open { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; padding: .7rem; min-height: 0; font: inherit; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); cursor: pointer; }
.h-vid-poster { position: relative; display: block; line-height: 0; }
.h-vid-poster img { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; border-radius: 8px; border: 1px solid var(--line); }
.h-vid-play { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; background: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.h-vid-play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .6rem 0 .6rem 1rem; border-color: transparent transparent transparent #fff; }
.h-vid-text { display: flex; flex-direction: column; gap: .1rem; }
.h-vid-text small { color: var(--green); font-weight: 600; }
.h-vids.many .h-vid-open { flex-direction: row; text-align: left; gap: .8rem; padding: .5rem .7rem; }
.h-vids.many .h-vid-poster img { max-height: 84px; }
.h-vids.many .h-vid-play { width: 1.7rem; height: 1.7rem; margin: -.85rem 0 0 -.85rem; }
.h-vids.many .h-vid-play::after { border-width: .32rem 0 .32rem .55rem; }
.h-vid.open { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem; text-align: center; }
.h-vid-title { margin: 0 0 .5rem; } .h-vid-title small { color: var(--muted); }
.h-vid video { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 72vh; border-radius: 8px; background: #000; }
.h-vid-links { margin: .6rem 0 0; font-size: .92rem; } .h-vid-links small { display: block; color: var(--muted); }
.h-vote { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .4rem; }
.h-vote button { font: inherit; font-size: .85rem; padding: .25rem .8rem; border-radius: 999px; border: 0; background: var(--bg); color: var(--muted); min-height: 32px; }
.h-vote button.yes { background: var(--green-50); color: var(--green); }
.h-related { font-size: .92rem; margin: .5rem 0; }
.h-foot { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .9rem; }
.h-crumb { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.h-crumb a { color: var(--green); text-decoration: none; font-weight: 600; }
.h-guide a, .h-related a, .small-link { color: var(--green); font-weight: 600; }
mark { background: var(--due-bg); color: inherit; padding: 0 .1em; border-radius: 3px; }
.h-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.h-contents, .h-side { display: none; }
@media (min-width: 1024px) {
  .help-top { padding: 1rem 1.6rem; }
  .help-top h1 { display: block !important; font-size: 1.2rem; }
  .h-back { display: none; }
  .help-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr) 420px; gap: 1.6rem; align-items: start; min-height: calc(100vh - 56px); }
  .h-contents { display: block; background: var(--card); padding: 1.2rem 1rem; align-self: stretch; }
  .h-contents a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
  .h-contents a.on { background: var(--green-50); color: var(--green); font-weight: 600; }
  .h-contents a.soon { color: var(--faint); }
  .h-contents .h-cap:first-child { margin-top: 0; }
  .h-main { max-width: none; padding: 1.4rem 0; margin: 0; }
  .h-guide { padding: 1.5rem; }
  .h-side { display: block; padding: 1.4rem 1.6rem 1.4rem 0; }
  .h-side .h-rel { display: block; padding: .6rem 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
  .h-side .h-rel:first-of-type { border-top: 0; }
  .h-side .button { display: inline-block; margin-top: .3rem; }
  .h-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 0.80.0 (FR-538; mock-up 0.80.0-help_chatbot_r2): Ask Malo, the free help chatbot. Malo's own tokens only. */
.ask-log { display: flex; flex-direction: column; gap: .5rem; min-height: 8rem; }
.ask-b { max-width: 86%; padding: .6rem .75rem; border-radius: 14px; font-size: .92rem; line-height: 1.4; }
.ask-b.me { align-self: flex-end; background: var(--green-2); color: #fff; border-bottom-right-radius: 4px; }
.ask-b.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-b ol { margin: .35rem 0 .35rem 1.1rem; padding: 0; }
.ask-b p { margin: .35rem 0 0; }
.ask-link { display: block; margin-top: .45rem; color: var(--green); font-weight: 600; text-decoration: none; }
.ask-also { font-size: .82rem; color: var(--muted); }
.ask-also a { color: var(--green); }
.ask-fb { font-size: .85rem; color: var(--muted); }
.ask-fb button, .ask-fb .button { font: inherit; font-size: .85rem; padding: .3rem .8rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); min-height: 32px; text-decoration: none; display: inline-block; }
.ask-fb .button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.ask-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .5rem; }
.ask-chip { font: inherit; font-size: .82rem; border: 1px solid var(--green); color: var(--green); background: var(--card); border-radius: 999px; padding: .35rem .75rem; min-height: 32px; }
.ask-form { display: flex; gap: .5rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.ask-form input { flex: 1; font: inherit; border: 1px solid var(--line-2); border-radius: 999px; padding: .55rem .8rem; min-height: 40px; }
.ask-form button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 0 1.1rem; background: var(--green); color: #fff; min-height: 40px; }
.ask-vid { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: .35rem; font: inherit; text-align: left; width: 100%; }
.ask-vid img { width: 36px; height: auto; border-radius: 4px; }
.ask-vid strong { display: block; color: var(--green); }
.ask-vid small { color: var(--muted); }
.ask-video { display: block; max-width: 100%; max-height: 60vh; margin-top: .5rem; border-radius: 8px; background: #000; }
