/* Phones and larger text (with portal/readable.js and js/pwa.js).
   Everything is sized in rem, so the page grows with the chosen text size. js/pwa.js tags <html> by how many
   characters of body text fit across the screen, and the layout reorganizes for that rather than for pixels:
     .vw-phone   fewer than 42 characters across (every phone)
     .vw-tight   fewer than 21 (a phone at Large text)
     .vw-xtight  fewer than 17.5 (a phone at Extra large text)
   Top bar and tab bar grow with the text too, but capped, so they never crowd out the page. */

html.ios-type{font:-apple-system-body}
:root{--slate-2:#667085}                                      /* secondary text dark enough to read (4.9:1 on white) */
.tabbar,.side-scrim,.top-home{display:none}

/* ---------- text size control ---------- */
.ts-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0.5rem}
.ts-pick button{display:grid;justify-items:center;align-content:center;gap:0.25rem;min-height:5.25rem;padding:0.625rem 0.375rem;border:0;border-radius:1rem;background:#fff;box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;font:600 .82rem/1.2 var(--text);color:var(--slate);text-align:center}
.ts-pick button:hover{box-shadow:inset 0 0 0 1px var(--slate-2)}
.ts-pick button[aria-checked=true]{background:var(--ink);color:#fff;box-shadow:none}
.ts-pick button:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.ts-a{font:800 1.25rem/1 var(--display);letter-spacing:-.03em;color:inherit}
.ts-card{margin-bottom:1.25rem}
.ts-lead{color:var(--slate);margin:-0.25rem 0 1rem;line-height:1.55}
.side-ts{padding:0.75rem 0.25rem 1rem;border-top:1px solid var(--line);margin-top:0.5rem}
.side-ts h6{margin:0 0 0.5rem;padding:0 0.5rem;font:600 .72rem var(--text);color:var(--slate-2)}
.side-ts .ts-pick button{min-height:4rem;font-size:.72rem;border-radius:0.75rem;background:var(--paper);box-shadow:none}
.side-ts .ts-pick button[aria-checked=true]{background:var(--ink)}
.side-ts .ts-a{font-size:1rem}
@media (min-width:961px){.side-ts{display:none}}

/* ---------- every phone ---------- */
.vw-phone body{font-size:1rem;line-height:1.55}
.vw-phone .mobile-menu,.vw-phone .top .sp{display:none}
.vw-phone .content{padding:0.25rem 1rem calc(7rem + env(safe-area-inset-bottom))}

/* top bar: the community's name on the left, search and alerts on the right */
.vw-phone .top{font-size:min(1rem,19px);gap:0.5em;padding:env(safe-area-inset-top) 0.875rem 0;height:calc(3.75em + env(safe-area-inset-top))}
.vw-phone .top-home{display:flex;align-items:center;gap:0.5em;flex:1;min-width:0;order:-1;text-decoration:none;color:var(--ink)}
.vw-phone .top-home img{width:1.875em;height:1.875em;flex:none;padding:0.3em;border-radius:0.6em;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.1)}
.vw-phone .top-home b{font:700 0.95em/1.2 var(--display);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vw-phone .top .btn-icon{width:2.625em;height:2.625em;min-height:0;padding:0;flex:none}
.vw-phone .top .btn-icon .ic{width:1.25em;height:1.25em}
.vw-phone .top .bell .dot{top:0.5em;right:0.55em;width:0.55em;height:0.55em}
.vw-phone .top .search{order:2;flex:0 0 2.625em;max-width:2.625em}
.vw-phone .top .search input{width:2.625em;height:2.625em;font-size:1em}
.vw-phone .top .search .ic{left:0.72em;width:1.2em;height:1.2em}
.vw-phone .top .search:focus-within{left:0.875rem;right:0.875rem;top:calc(0.55em + env(safe-area-inset-top))}
.vw-phone .top .search:focus-within input{padding:0 1em 0 2.6em}
.vw-phone .top .search .results{top:3.1em}
.vw-phone .top .sync-note{order:3;height:2.2em;font-size:.78em;padding:0 0.75em;flex:none}
.vw-phone .top .bell{order:4}

/* the tab bar */
.vw-phone .tabbar{display:flex;position:fixed;z-index:60;left:0;right:0;bottom:0;font-size:min(1rem,21px);padding:0.3em 0.375em calc(0.3em + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-top:1px solid var(--line)}
.tabbar a,.tabbar button{flex:1 1 0;min-width:0;display:grid;justify-items:center;align-content:center;gap:0.2em;min-height:3.6em;padding:0.25em 0.125em;border:0;border-radius:0.9em;background:none;cursor:pointer;text-decoration:none;color:var(--slate);font:600 .72em/1.15 var(--text);letter-spacing:-.01em;-webkit-tap-highlight-color:transparent}
.tabbar .tb-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabbar .tb-i{display:grid;place-items:center;width:3.6em;height:2em;border-radius:62.4375rem;transition:background .2s}
.tabbar .ic{width:1.5em;height:1.5em}
.tabbar a.on{color:var(--ink);font-weight:700}
.tabbar a.on .tb-i{background:var(--red-soft);color:var(--red)}
.tabbar a:focus-visible,.tabbar button:focus-visible{outline:3px solid var(--red);outline-offset:-3px}
.tabbar button[aria-expanded=true]{color:var(--ink)}

/* the menu as a sheet from the left, over a backdrop */
.vw-phone .side{width:min(22rem,88vw);padding-bottom:calc(1.125rem + env(safe-area-inset-bottom));padding-top:calc(1.375rem + env(safe-area-inset-top))}
.vw-phone .side-scrim{display:block;position:fixed;inset:0;z-index:65;background:rgba(15,23,42,.42);opacity:0;pointer-events:none;transition:opacity .3s}
.vw-phone .side-scrim.open{opacity:1;pointer-events:auto}
.vw-phone .nav-g a{height:auto;min-height:3rem;font-size:1rem;padding:0.5rem 0.75rem;line-height:1.25}
.vw-phone .nav-g a .ic{width:1.25rem;height:1.25rem;flex:none}
.vw-phone .nav-g h6{font-size:.8rem}

/* page headings, buttons, fields: bigger targets, words that wrap rather than run off */
.vw-phone .ph{margin:1rem 0 1.25rem;gap:0.875rem}
.vw-phone .ph>div:first-child{min-width:0;flex:1 1 100%}
.vw-phone .ph h1{font-size:1.6rem;line-height:1.15;overflow-wrap:anywhere}
.vw-phone .ph p{font-size:.95rem;line-height:1.5}
.vw-phone .ph .acts{margin-left:0;width:100%}
.vw-phone .ph .acts>.btn{flex:1 1 auto}
.vw-phone .btn{height:auto;min-height:2.875rem;padding:0.5rem 1.125rem;white-space:normal;line-height:1.2;text-align:center;font-size:.92rem}
.vw-phone .btn-sm{min-height:2.5rem;padding:0.375rem 0.875rem;font-size:.86rem}
.vw-phone .btn-icon{width:2.875rem;min-height:2.875rem;padding:0}
.vw-phone .btn-sm.btn-icon{width:2.5rem;min-height:2.5rem}
.vw-phone .btn .ic{width:1.15em;height:1.15em;flex:none}
.vw-phone .in{height:auto;min-height:3rem;font-size:1rem}
.vw-phone textarea.in{padding-top:0.75rem;padding-bottom:0.75rem}
.vw-phone .field label{font-size:.92rem}
.vw-phone .field small{font-size:.86rem;line-height:1.45}
.vw-phone .seg{display:flex;max-width:100%;overflow-x:auto;scrollbar-width:none}
.vw-phone .seg button{height:auto;min-height:2.5rem;font-size:.88rem;white-space:nowrap;flex:none}

/* cards and lists: room to breathe, full titles */
.vw-phone .grid,.vw-phone .stack{gap:1rem}
.vw-phone .card{padding:1.25rem 1.125rem;border-radius:1.25rem}
.vw-phone .card.flush{padding:0}
.vw-phone .card h3{font-size:1.08rem;line-height:1.3}
.vw-phone .card .ch{flex-wrap:wrap;row-gap:0.375rem}
.vw-phone .card .ch a,.vw-phone .card .ch .r{font-size:.88rem}
.vw-phone .li{gap:0.875rem;padding:0.9375rem 0;align-items:flex-start}
.vw-phone .li .ib,.vw-phone .li .av{margin-top:0.125rem}
.vw-phone .li .tx b{white-space:normal;overflow:visible;font-size:.98rem;line-height:1.35;overflow-wrap:anywhere}
.vw-phone .li .tx span{font-size:.88rem;line-height:1.45;margin-top:0.125rem}
.vw-phone .li .end{align-self:center}
.vw-phone .chip{height:auto;min-height:1.75rem;padding:0.125rem 0.75rem;font-size:.8rem}
.vw-phone .badge{font-size:.75rem;min-width:1.5rem;height:1.5rem}
.vw-phone .kpi .l{font-size:.88rem}
.vw-phone .kpi .d{font-size:.84rem;line-height:1.4}
.vw-phone .kpi .v{font-size:1.65rem}
.vw-phone .empty{padding:2.25rem 1rem}
.vw-phone .kan{grid-template-columns:repeat(4,minmax(80%,1fr));scroll-snap-type:x mandatory;margin:0 -1rem;padding:0 1rem 0.5rem;scroll-padding:0 1rem}
.vw-phone .kan .col{scroll-snap-align:start}

/* the welcome panel */
.vw-phone .welcome{padding:1.5rem 1.375rem;border-radius:1.5rem}
.vw-phone .welcome::after{display:none}
.vw-phone .welcome h2{font-size:1.6rem;line-height:1.12}
.vw-phone .welcome p{font-size:.98rem;line-height:1.5;color:#C9D0DC}
.vw-phone .welcome .acts{margin-top:1.25rem}

/* tables become one block per row, each value under its column's name (labels set by readable.js) */
.vw-phone .tbl-wrap{overflow:visible}
.vw-phone .tbl.stacked,.vw-phone .tbl.stacked tbody{display:block}
.vw-phone .tbl.stacked thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.vw-phone .tbl.stacked tr{display:grid;grid-template-columns:minmax(0,1fr);gap:0.375rem;padding:1rem 1.125rem;border-bottom:1px solid var(--line)}
.vw-phone .tbl.stacked tbody tr:last-child{border-bottom:0}
.vw-phone .tbl.stacked td{display:grid;grid-template-columns:minmax(5.5rem,38%) minmax(0,1fr);gap:0.75rem;align-items:baseline;padding:0;border:0;font-size:.95rem;text-align:left;overflow-wrap:anywhere}
.vw-phone .tbl.stacked td::before{content:attr(data-label);color:var(--slate-2);font-size:.84rem;font-weight:500}
.vw-phone .tbl.stacked td:first-child{display:block;font-size:1rem;margin-bottom:0.125rem}
.vw-phone .tbl.stacked td:first-child::before,.vw-phone .tbl.stacked td[data-label=""]::before{display:none}
.vw-phone .tbl.stacked td[data-label=""]{display:block}
.vw-phone .tbl.stacked td:empty{display:none}
.vw-phone .tbl.stacked tfoot{display:block}
.vw-phone .tbl.stacked tfoot tr{background:var(--paper)}

/* panels slide up from the bottom, full width */
.vw-phone .drawer{top:auto;left:0;right:0;bottom:0;width:100%;height:auto;max-height:calc(100dvh - 2.5rem - env(safe-area-inset-top));border-radius:1.5rem 1.5rem 0 0;transform:translateY(105%)}
.vw-phone .drawer.open{transform:none}
.vw-phone .drawer .dh{padding:1.25rem 1.25rem 1rem}
.vw-phone .drawer .dh h2{font-size:1.3rem;line-height:1.2}
.vw-phone .drawer .db{padding:1.25rem}
.vw-phone .drawer .df{padding:0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom));flex-wrap:wrap}
.vw-phone .drawer .df .btn{flex:1 1 auto}
.vw-phone .toasts{bottom:calc(5.75rem + env(safe-area-inset-bottom));width:calc(100% - 2rem)}
.vw-phone .toast{border-radius:1rem;white-space:normal;line-height:1.35;font-size:.95rem;justify-content:center}

/* ---------- Large text on a phone: one thing per row ---------- */
.vw-tight .content{padding-left:0.875rem;padding-right:0.875rem}
.vw-tight .g4,.vw-tight .row2,.vw-tight .own-hero{grid-template-columns:minmax(0,1fr)}
.vw-tight .tabbar .tab-opt{display:none}
.vw-tight .top-home b{display:none}
/* figures read as statement lines: what it is on the left, the amount on the right */
.vw-tight .kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:1rem;padding:1rem 1.125rem}
.vw-tight .kpi .l{grid-column:1;grid-row:1}
.vw-tight .kpi .d{grid-column:1;grid-row:2;margin-top:0.125rem}
.vw-tight .kpi .v{grid-column:2;grid-row:1/span 2;margin:0;font-size:1.5rem;text-align:right}
.vw-tight .kpi>:not(.l):not(.v):not(.d){grid-column:1/-1}
.vw-tight .welcome .acts .btn,.vw-tight .ph .acts>.btn{flex:1 1 100%}
.vw-tight .li .tx{flex:1 1 9rem}
.vw-tight .li{flex-wrap:wrap}
.vw-tight .li .end{margin-left:auto}
.vw-tight .tbl.stacked td{grid-template-columns:minmax(0,1fr)}
.vw-tight .tbl.stacked td::before{margin-bottom:-0.25rem}
.vw-tight .ts-pick{grid-template-columns:minmax(0,1fr)}
.vw-tight .ts-pick button{grid-template-columns:3.5rem 1fr;justify-items:start;align-items:center;min-height:3.5rem;text-align:left;font-size:.95rem;padding:0.5rem 1rem}
.vw-tight .ts-pick .ts-a{justify-self:center}
.vw-tight .sec-grid{grid-template-columns:minmax(0,1fr)}
.vw-tight .sec-qrimg{width:100%;height:auto;aspect-ratio:1;max-width:14rem}

/* ---------- Extra large text on a phone ---------- */
.vw-xtight .ph h1,.vw-xtight .welcome h2{font-size:1.4rem}
.vw-xtight .card{padding:1.125rem 1rem}
.vw-xtight .li .ib{display:none}
.vw-xtight .top .sync-note{font-size:.72em}
.vw-xtight .card .ch .btn{flex:1 1 100%}

/* bars with a caption and a figure: caption above the bar when space is short */
.vw-tight .meter{flex-wrap:wrap;row-gap:0.375rem}
.vw-tight .meter>span:first-child{width:100%}
.vw-tight .meter em{width:auto}
.vw-phone .meter{font-size:.9rem}

/* columns that hold cards never grow wider than the screen because of what is inside them */
.vw-phone .stack,.vw-phone .prf{grid-template-columns:minmax(0,1fr)}
.vw-phone .bars{gap:0.5rem}
.vw-phone .bars .b{flex:1 1 0;min-width:0}
.vw-phone .bars .b span{font-size:.78rem}
/* at Extra large, the amount goes under its name */
.vw-xtight .kpi{display:block}
.vw-xtight .kpi .v{text-align:left;margin-top:0.375rem;font-size:1.45rem}

/* fixed widths written into the page code: let them give way on a phone with large text */
.vw-tight #view [style*="min-width"]:not(.tbl-wrap):not(.kan){min-width:0!important}
.vw-tight #view [style*="display:flex"]{flex-wrap:wrap}
.vw-phone .prf-vis>span{flex:1;min-width:0;grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}
.vw-phone #view small,.vw-phone #view .dim{overflow-wrap:anywhere}
.vw-xtight #view [style*="display:flex"]>.ib:first-child{display:none}

/* sign-in on a phone: a short photo header so the form is close to the top */
.vw-phone .login .art{min-height:0;padding:calc(1.5rem + env(safe-area-inset-top)) 1.25rem 1.75rem}
.vw-phone .login .art img.logo{height:min(2.25rem,36px);max-width:100%}
.vw-phone .login .art h1{margin-top:2.25rem;font-size:min(2.25rem,10.5vw);line-height:1}
.vw-phone .login .art p{font-size:.98rem;line-height:1.5;margin-top:0.875rem}
.vw-phone .login .form{padding:1.75rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));place-items:start stretch}
.vw-phone .login .box h2{font-size:1.65rem}
.vw-tight .login .art p{display:none}
.vw-tight .login .art h1{margin-top:1.75rem}
/* table rows: name and value side by side while there is room */
.vw-tight .tbl.stacked td{grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:0.625rem}
.vw-tight .tbl.stacked td::before{margin:0}
.vw-xtight .tbl.stacked td{grid-template-columns:minmax(0,1fr);gap:0}
.vw-phone .tbl.stacked td>*{justify-self:start}
/* sticky form buttons sit just above the tab bar */
.vw-phone .nx-foot{bottom:calc(min(1rem,21px) * 4.3 + env(safe-area-inset-bottom));flex-wrap:wrap;padding:0.75rem 0}
.vw-phone .nx-foot .btn{flex:1 1 auto}
.vw-tight .nx-foot{position:static;background:none}
/* expenses and quote requests */
.vw-phone .xgrid,.vw-phone .xmain,.vw-phone .xrail{grid-template-columns:minmax(0,1fr)}
.vw-phone .ex-st{flex-wrap:wrap;min-width:0;justify-content:flex-start}
.vw-tight .qcols{grid-template-columns:minmax(0,1fr)}
.vw-tight .walk-when{align-items:flex-start}
.vw-phone .thread{grid-template-columns:minmax(0,1fr)}
.vw-phone .tm p{overflow-wrap:anywhere}
.vw-tight .banner>div{min-width:0}
.vw-tight .banner{flex-wrap:wrap}
