/* Helio app shell v1.5 · helio-app.css · the frame of every design/app screen (PLAN-100 section 2), drawn by
   Helio.shell in helio-app.js: skip link, header (.h-top: public, app, neutral), nav, inbox, account menu (.h-acct),
   phone menu sheet (.h-sheet), the shell's phone dock (.h-sdock), footer (.h-sfoot), the mail envelope, and the
   parts a page writes itself: crumb (.h-crumb), page head (.h-phead) and, since v1.5, the legal page (.h-lg) with its
   open fields (.h-open). The review bar (.h-revbar) is a review tool,
   never part of a screen. Only kit tokens, sizes and easings; breakpoints 1100, 860, 760, 560 are already in use. */

/* ---------- skip link ---------- */
.h-skip{position:absolute;left:12px;top:-120px;z-index:60}
.h-skip:focus{top:12px}

/* ---------- header: sticky with a solid ground once the page moves under it (landing grammar) ---------- */
.h-top{position:sticky;top:0;z-index:8;transition:box-shadow .35s ease}
.h-top.stuck{background:var(--bg);box-shadow:0 1px 0 var(--ln)}
.h-hdr.h-top>.h-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;height:var(--hdr)}
.h-hdr.h-top[data-kind="public"]>.h-wrap{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.h-top-l{display:flex;align-items:center;gap:clamp(28px,3.6vw,56px);min-width:0;justify-self:start}
.h-top-c{display:flex;justify-self:center}
.h-top-r{display:flex;align-items:center;justify-self:end;gap:clamp(10px,1.6vw,24px)}
.h-top .h-logo{flex:none}

/* nav: quiet words, the current one in ink with its underline drawn */
.h-nav{display:flex;align-items:center;gap:clamp(18px,2.2vw,32px)}
.h-nav>a{display:inline-flex;align-items:center;min-height:44px;color:var(--t3);transition:color .3s}
.h-nav>a::after{bottom:8px}
.h-nav>a:hover,.h-nav>a[aria-current="page"]{color:var(--fg)}
.h-nav>a[aria-current="page"]::after{transform:scaleX(1)}

/* inbox: the count in mono, never a red badge */
.h-inbox{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);text-decoration:none;white-space:nowrap;transition:color .3s}
.h-inbox b{font-weight:500;color:var(--fg)}
.h-inbox:hover,.h-inbox[aria-current="page"]{color:var(--fg)}
.h-inbox[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px}

.h-signin{display:inline-flex;align-items:center;min-height:44px}
.h-signin::after{bottom:8px}

/* account: avatar and first name; the menu drops from it on desktop and lives in the sheet on phone */
.h-acct{position:relative}
.h-acct-b{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:none;color:var(--fg);font-weight:600;font-size:15px;letter-spacing:-.01em;cursor:pointer}
.h-acct-b .h-acct-n{position:relative}
.h-acct-b .h-acct-n::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1.5px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .55s var(--ease)}
.h-acct-b:hover .h-acct-n::after,.h-acct-b[aria-expanded="true"] .h-acct-n::after{transform:scaleX(1);transform-origin:left}
.h-acct-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:9;width:min(320px,calc(100vw - 32px));padding:20px 22px 14px;animation:hFadeUp .45s var(--ease) both}
.h-acct-who{display:flex;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--rule)}
.h-acct-id{display:grid;gap:3px;min-width:0}
.h-acct-id b{font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
.h-acct-meta{font-family:var(--mono);font-size:12px;line-height:1.4;color:var(--t3)}
.h-acct-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;border-bottom:1px solid var(--ln);font-size:15.5px;font-weight:600;letter-spacing:-.01em;color:var(--fg);text-decoration:none;transition:color .3s}
.h-acct-list a:hover{color:var(--t2)}
.h-acct-list a[aria-current="page"]::after,.h-sheet-nav a[aria-current="page"]::after{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:#FFC800;box-shadow:inset 0 0 0 1.5px #0A0A0A}
.h-acct-lang{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ln)}
.h-acct-lang>.h-label{color:var(--t3)}
.h-acct-out{display:flex;align-items:center;min-height:46px;font-size:15.5px;font-weight:600;letter-spacing:-.01em;color:var(--t3);text-decoration:none;transition:color .3s}
.h-acct-out:hover{color:var(--fg)}

/* the Menu button: shown where the nav folds; avatar when signed in, else two short lines */
.h-menu-b{display:none;align-items:center;gap:10px;min-height:44px;padding:0 0 0 2px;border:0;background:none;color:var(--fg);font-weight:600;font-size:15px;letter-spacing:-.01em;cursor:pointer;white-space:nowrap}
.h-menu-b>i{display:block;width:16px;height:9px;border-top:1.5px solid currentColor;border-bottom:1.5px solid currentColor}

/* public: the nav folds into the sheet under 1100px; under 760px the role switch takes a second row and Sign in
   moves into the sheet (the landing's phone grammar) */
@media (max-width:1100px){
  .h-top[data-kind="public"] .h-nav{display:none}
  .h-top[data-kind="public"] .h-menu-b{display:inline-flex}
  .h-top[data-kind="public"] .h-menu-b>.h-av{display:none}
  .h-top[data-kind="public"] .h-menu-b>i{display:block}
}
@media (max-width:860px){
  .h-top[data-nav]:not([data-kind="public"]) .h-nav{display:none}
  .h-top[data-nav]:not([data-kind="public"]) .h-menu-b,.h-top[data-user]:not([data-kind="public"]) .h-menu-b{display:inline-flex}
  .h-top[data-user]:not([data-kind="public"]) .h-acct{display:none}
  html.h-has-dock .h-sfoot{padding-bottom:88px}
}
@media (min-width:861px){.h-sdock{display:none}}
.h-sdock .h-btn.ghost{background:var(--bg)}
@media (max-width:760px){
  .h-top{position:relative}
  .h-top.stuck{background:none;box-shadow:none}
  .h-hdr.h-top[data-kind="public"]>.h-wrap{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"l r" "c c";height:auto;min-height:0;padding-top:10px;padding-bottom:4px;row-gap:0}
  .h-top[data-kind="public"] .h-top-l{grid-area:l}
  .h-top[data-kind="public"] .h-top-r{grid-area:r}
  .h-top[data-kind="public"] .h-top-c{grid-area:c;justify-self:start;margin-left:2px}
  .h-top[data-kind="public"]:not([data-role]) .h-top-c{display:none}
  .h-top[data-kind="public"]:not([data-role])>.h-wrap{padding-bottom:10px}
  .h-top[data-kind="public"] .h-signin,.h-top[data-kind="public"] .h-acct{display:none}
  .h-top[data-kind="public"][data-user] .h-menu-b>.h-av{display:inline-grid}
  .h-top[data-kind="public"][data-user] .h-menu-b>i{display:none}
}
@media (max-width:560px){
  .h-top-r{gap:8px}
  .h-top .h-lang>button{min-width:44px}
}

/* ---------- phone menu sheet: rises from the bottom over a scrim; Escape, the scrim or Close shut it ---------- */
html.h-sheet-open{overflow:hidden}
.h-sheet{position:fixed;inset:0;z-index:30}
.h-sheet-bg{position:absolute;inset:0;background:rgba(10,10,10,.42);opacity:0;transition:opacity .45s var(--ease)}
.night .h-sheet-bg{background:rgba(0,0,0,.62)}
.h-sheet-p{position:absolute;left:0;right:0;bottom:0;max-height:calc(100% - 28px);overflow:auto;overscroll-behavior:contain;padding:12px var(--pad) calc(26px + env(safe-area-inset-bottom,0px));border-radius:var(--r-card) var(--r-card) 0 0;background:var(--bg);box-shadow:var(--shadow);transform:translate3d(0,104%,0);transition:transform .6s var(--ease)}
.h-sheet-p:focus{outline:none}
.h-sheet.on .h-sheet-bg{opacity:1}
.h-sheet.on .h-sheet-p{transform:none}
.h-sheet-h{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:6px;border-bottom:1px solid var(--rule)}
.h-sheet-h>.h-label{color:var(--t3)}
.h-sheet-x{min-height:44px;padding:0;border:0;background:none;cursor:pointer}
.h-sheet-x::after{bottom:8px}
.h-sheet-nav a{display:flex;align-items:center;gap:14px;min-height:62px;border-bottom:1px solid var(--ln);font-size:28px;font-weight:700;line-height:1.1;letter-spacing:-.045em;color:var(--fg);text-decoration:none}
.h-sheet-nav a>b{margin-left:auto;font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:.01em;color:var(--t3)}
.h-sheet-nav a[aria-current="page"]>b{margin-left:auto}
.h-sheet-nav a[aria-current="page"]:not(:has(>b))::after{margin-left:auto}
.h-sheet-acct{margin-top:28px}
.h-acct-lang.sheet{margin-top:18px;border-top:1px solid var(--ln)}
.h-acct-lang.sheet .h-lang-l{top:auto;bottom:calc(100% + 4px)}
.h-sheet-end{display:flex;align-items:center;justify-content:space-between;min-height:52px;font-size:16px;font-weight:700;letter-spacing:-.01em;color:var(--fg);text-decoration:none}
.h-sheet-end:not(.h-sheet-in){color:var(--t3);font-weight:600}
.h-sheet-in .ar{color:var(--t3);transition:transform .5s var(--ease)}
.h-sheet-in:hover .ar{transform:translateX(6px)}

/* ---------- crumb: the way back, in the paperwork voice ---------- */
.h-crumb ol{display:flex;flex-wrap:wrap;align-items:center;font-family:var(--mono);font-size:13px;letter-spacing:.01em;color:var(--t3)}
.h-crumb li{display:inline-flex;align-items:center;min-height:32px}
.h-crumb li+li::before{content:"/";margin:0 10px;color:var(--t4)}
.h-crumb a{color:var(--t3);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--ghost);transition:color .3s,text-decoration-color .3s}
.h-crumb a:hover{color:var(--fg);text-decoration-color:currentColor}
.h-crumb a{position:relative}
.h-crumb a::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px}
.h-crumb [aria-current]{color:var(--fg)}
/* .fit: on a phone the crumb keeps one line; a long middle item ends in an ellipsis, the first and the current stay whole */
@media (max-width:560px){
  .h-crumb.fit ol{flex-wrap:nowrap}
  .h-crumb.fit li{flex:none}
  .h-crumb.fit li:not(:first-child):not([aria-current]){display:block;flex:0 1 auto;min-width:0;overflow:hidden;line-height:32px;white-space:nowrap;text-overflow:ellipsis}
}

/* ---------- page head: crumb, kicker, h1, the meta line, and the place of the one action ---------- */
.h-phead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px 48px;padding-top:clamp(24px,4.4vh,52px);padding-bottom:clamp(32px,5vh,56px)}
.h-phead>:first-child{min-width:0}
.h-phead .h-crumb{margin-bottom:clamp(14px,2.2vh,24px)}
.h-phead .h-kicker{margin-bottom:14px}
.h-phead-m{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:16px;font-family:var(--mono);font-size:13px;letter-spacing:.01em;color:var(--t3)}
.h-phead-a{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;padding-bottom:6px}
/* the partner's side of a deal (X-029): "What Ana sees" under the switch; the line is kept, empty, on the viewer's side */
.h-role-cap{flex-basis:100%;min-height:1.4em;margin:0;color:var(--t3)}
@media (max-width:860px){.h-phead{grid-template-columns:minmax(0,1fr)}.h-phead-a{padding-bottom:0}}

/* ---------- legal page: contents beside the text, each section in plain words beside its legal wording ---------- */
.h-lg-lede{margin-top:18px}
.h-lg{align-items:start;padding-bottom:clamp(64px,10vh,128px)}
.h-lg-toc{grid-column:1/span 3;position:sticky;top:calc(var(--hdr) + 20px)}
.h-lg-toc summary{display:flex;justify-content:space-between;align-items:center;min-height:44px;list-style:none;cursor:pointer}
.h-lg-toc summary::-webkit-details-marker{display:none}
.h-lg-toc summary::after{content:"+";font:400 20px/1 var(--mono);color:var(--t3);transition:transform .45s var(--ease)}
.h-lg-toc details[open] summary::after{transform:rotate(45deg)}
.h-lg-toc ol{border-top:1px solid var(--rule)}
.h-lg-toc a{display:grid;grid-template-columns:2.6em minmax(0,1fr);align-items:baseline;min-height:44px;padding:11px 0;border-bottom:1px solid var(--ln);font-size:15px;font-weight:500;line-height:1.35;color:var(--t2);text-decoration:none;transition:color .3s}
.h-lg-toc a .h-m{color:var(--t3)}
.h-lg-toc a:hover,.h-lg-toc a[aria-current]{color:var(--fg)}
.h-lg-toc a[aria-current]{font-weight:700}
.h-lg-toc a[aria-current] .h-m{color:var(--fg)}
.h-lg-main{grid-column:4/span 9;min-width:0;padding-left:clamp(0px,2.4vw,40px)}
.h-lg-top,.h-lg-b{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:24px 36px;align-items:start}
.h-lg-top{padding-bottom:clamp(48px,7vh,80px)}
.h-lg-short{margin-top:2px}
.h-lg-short .h-clause{grid-template-columns:2em minmax(0,1fr);color:var(--fg);font-weight:500}
.h-lg-short .h-clause:last-child{border-bottom:0;padding-bottom:0}
.h-lg-s{padding:40px 0 48px;border-top:1px solid var(--rule);scroll-margin-top:calc(var(--hdr) + 12px)}
.h-lg-h{display:flex;align-items:baseline;gap:16px;margin-bottom:22px}
.h-lg-n{flex:none;min-width:2.2em;color:var(--t3)}
.h-lg-plain .h-body+.h-body{margin-top:14px}
.h-lg-legal{padding:14px 20px 4px;border-radius:var(--r-field);background:var(--panel)}
.h-lg-legal .h-clause{grid-template-columns:2.4em minmax(0,1fr);column-gap:12px;font-size:15px;padding:12px 0}
.h-lg-legal .h-clause:last-child{border-bottom:0}
.h-lg-legal .h-clause p{color:var(--t2)}
.h-lg-k{color:var(--t3)}
.h-lg-links{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:20px}
.h-lg-links .h-link{display:inline-flex;align-items:center;min-height:44px}
.h-lg-x{margin-top:32px}
/* open fields: rows whose value may still be a placeholder with its Open tag; the value wraps, the tag does not */
.h-open .h-row>:first-child{min-width:34%}
.h-open .h-row>:last-child{white-space:normal;text-align:right}
.h-open .h-row .h-tag{white-space:nowrap;vertical-align:1px}
.h-open .h-row>span>.h-tag{margin-left:8px}
@media (min-width:861px){.h-lg-toc summary{cursor:default}.h-lg-toc summary::after{content:none}}
@media (max-width:860px){
  .h-lg-toc{grid-column:1/-1;position:static;order:2;margin-bottom:8px}
  .h-lg-main{display:contents}
  .h-lg-top{grid-column:1/-1;order:1;padding-bottom:36px}
  .h-lg-sec{grid-column:1/-1;order:3}
  .h-lg-top,.h-lg-b{grid-template-columns:minmax(0,1fr);gap:20px}
  .h-lg-s{padding:32px 0 36px}
}
@media (max-width:560px){.h-lg-legal{padding:12px 16px 2px}}
@media print{
  .h-top,.h-skip,.h-sfoot,.h-sheet,.h-dock,.h-lg-toc,.h-phead-a{display:none!important}
  .h-lg-main{grid-column:1/-1;padding-left:0}
  .h-lg-s{break-inside:avoid-page}
  .h-open{box-shadow:none;border:1px solid var(--ln)}
}

/* ---------- footer: the examples line and the legal links ---------- */
.h-sfoot{margin-top:clamp(80px,12vh,140px);border-top:1px solid var(--ln)}
.h-sfoot .h-foot{align-items:center;padding-top:14px;padding-bottom:14px}
.h-sfoot-ex{color:var(--t3)}
.h-sfoot nav{display:flex;flex-wrap:wrap;column-gap:18px}
.h-sfoot nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--t3);text-decoration:none;transition:color .3s}
.h-sfoot nav a:hover{color:var(--fg)}
@media (max-width:560px){.h-sfoot .h-foot{flex-direction:column;align-items:flex-start;gap:6px;padding-top:22px}.h-sfoot nav{column-gap:16px}}

/* ---------- mail: the review envelope round a 600px email; light for every recipient ---------- */
html.h-k-mail{background:var(--panel)}
html.h-k-mail main{width:min(600px,calc(100% - 32px));max-width:none;margin:0 auto;padding:0}
.h-mailenv,.h-mailfoot{width:min(600px,calc(100% - 32px));margin:0 auto}
.h-mailenv{padding:clamp(24px,5vh,56px) 0 18px}
.h-mailenv dl{display:grid;gap:6px;margin:0}
.h-mailenv dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:baseline;gap:12px}
.h-mailenv dt{color:var(--t3)}
.h-mailenv dd{margin:0;font-size:15px;font-weight:600}
.h-mailenv .subj dd{font-size:17px;font-weight:700;letter-spacing:-.015em}
.h-mailenv-pre{margin-top:8px;padding-left:84px;font-size:14.5px;color:var(--t3)}
.h-mailenv dd.h-m{font-size:13px;font-weight:400}
.h-mailenv-att{display:flex;align-items:center;gap:10px;margin-top:8px;padding-left:84px;font-family:var(--mono);font-size:12px;letter-spacing:.01em;color:var(--t3)}
.h-mailenv-att::before{content:"";flex:none;width:10px;height:12px;border:1.5px solid currentColor;border-radius:2px}
.h-mailfoot{padding:16px 0 64px;color:var(--t3)}

/* ---------- review bar: a review tool, bottom left, mono; never in a screen's design (?clean hides it) ---------- */
.h-revbar{position:fixed;left:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:50;display:flex;align-items:flex-start;max-width:calc(100vw - 24px);padding:4px;border-radius:var(--r-field);font-family:var(--mono);font-size:11.5px;font-weight:400;line-height:1.3;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 0 0 1px var(--ln),0 14px 34px -14px rgba(0,0,0,.55)}
.h-revbar button,.h-revbar a{display:inline-flex;align-items:center;min-height:28px;padding:0 7px;border:0;border-radius:3px;background:none;color:var(--t3);font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .25s}
.h-revbar button:hover,.h-revbar a:hover{color:var(--fg)}
.h-revbar [aria-pressed="true"],.h-revbar [aria-current="true"]{color:#FFC800;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.h-rv-tg{color:var(--fg)!important;font-weight:500!important}
.h-rv-in{display:flex;flex-wrap:wrap;align-items:center;row-gap:2px;min-width:0;max-width:min(1000px,calc(100vw - 260px))}
.h-rv-g{display:inline-flex;flex-wrap:wrap;align-items:center;margin-left:4px;padding-left:6px;box-shadow:inset 1px 0 0 var(--ln)}
.h-rv-k{padding:0 4px 0 2px;color:var(--t4)}
.h-revbar.min .h-rv-in{display:none}
html.h-has-rev body{padding-bottom:64px}
html.h-sheet-open .h-revbar{visibility:hidden}
@media (max-width:860px){
  .h-revbar{flex-direction:column}
  .h-rv-in{max-width:none;padding:2px 0 2px}
  .h-rv-g{margin-left:0;padding-left:0;box-shadow:none;width:100%}
  html.h-has-dock body:has(.h-dock.on) .h-revbar{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media print{.h-revbar{display:none}}

/* ---------- TEMP until kit v1.3 (W0-A) lands .h-av in helio.css: delete this layer then. It sits in a cascade
   layer, so any rule the kit ships for .h-av wins over it whatever the load order. ---------- */
@layer helio-temp{
  .h-av{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--panel);color:var(--fg);font-family:var(--sans);font-weight:800;font-size:15px;line-height:1;letter-spacing:-.02em;text-transform:uppercase}
  .h-av.s{width:32px;height:32px;font-size:12px}
  .h-av.m{width:44px;height:44px;font-size:15px}
  .h-av.l{width:96px;height:96px;font-size:32px}
  .h-av.xl{width:128px;height:128px;font-size:42px}
  .h-av>img{width:100%;height:100%;object-fit:cover}
}
