/* Incomenomics v3 depth layer: HEADER and FOOTER as brand moments (Ashuti's standing rule, 11/18: "every detail matters, and
   every detail is a chance to market the brand"; no generic header or link-list footer).
   Header: the front rail of the Circuit console. Under it runs the same milled track as the Circuit, and the page's
           scroll position is the jade coin from the logo riding that track. The page you are on is an engraved plate.
           The Services menu is a tray of cream file cards.
   Footer: the closing scene. The console's base plate with the coin, and the site's directory as three ruled index
           cards (typed headings, dark ink) leaning on it; the last line is a brass maker's plate.
   The logo itself is untouched. Brand name once per screen. One light, top-left. (c) Incomenomics LLC. All rights reserved. */

/* ---------- header ---------- */
.hdr{background:repeating-linear-gradient(92deg,rgba(255,255,255,.018) 0 1px,rgba(255,255,255,0) 1px 3px),linear-gradient(180deg,#16251e,#0c1611 70%,#08100c);
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -1px 0 rgba(0,0,0,.7) inset,0 10px 18px -8px rgba(0,0,0,.8)}
.hdr::after{content:none}
/* the track under the rail: a milled slot with the jade double line in it */
.dp-rail{bottom:-4px;height:7px;border:0;border-radius:0;
  background:linear-gradient(180deg,#000 0 1.5px,#06140d 1.5px 5.5px,rgba(196,240,218,.22) 5.5px)}
.dp-rail i{top:2px;bottom:2px;border:0;height:auto;background:linear-gradient(180deg,#46cf90 0 1px,#06140d 1px 2px,#46cf90 2px 3px);box-shadow:0 0 7px rgba(70,207,144,.7)}
/* the coin from the logo rides the track */
.dp-rail b{width:15px;height:15px;margin:-7.5px 0 0 -7.5px;
  background:radial-gradient(circle at 34% 28%,#f1fff7,rgba(255,255,255,0) 30%),radial-gradient(circle,#46cf90 0 52%,#22955f 53% 61%,#74e3ae 62% 68%,#2aae78 69%);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 -2px 3px rgba(0,60,35,.5) inset,1px 2px 0 #083523,3px 5px 4px rgba(0,0,0,.7),0 0 10px rgba(70,207,144,.55)}
/* nav links: flush engraved labels; the page you are on is a raised plate with the double line under it */
.nav-links>a,.nav-dd>button{border-radius:5px;text-shadow:0 -1px 0 rgba(0,0,0,.8);transition:color .15s,background .15s,transform .2s,box-shadow .2s}
.nav-links>a:hover,.nav-dd>button:hover{color:var(--cream);background:linear-gradient(180deg,#2a3d33,#15211b);transform:translateY(-1px);
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 -1px 0 rgba(0,0,0,.5) inset,1px 2px 0 #040806,4px 6px 6px rgba(0,0,0,.6)}
.nav-links>a:active,.nav-dd>button:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(255,255,255,.14) inset,1px 1px 0 #040806}
.nav-links>a.here,.nav-dd.here>button{color:var(--cream);
  background:linear-gradient(180deg,rgba(0,0,0,0) calc(100% - 7px),#46cf90 calc(100% - 7px) calc(100% - 5.5px),rgba(0,0,0,0) calc(100% - 5.5px) calc(100% - 4px),rgba(70,207,144,.6) calc(100% - 4px) calc(100% - 3px),rgba(0,0,0,0) calc(100% - 3px)) 12px 0/calc(100% - 24px) 100% no-repeat,linear-gradient(180deg,#2a3d33,#15211b);
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 -1px 0 rgba(0,0,0,.5) inset,1px 2px 0 #040806,4px 6px 6px rgba(0,0,0,.6)}
/* Services menu: a tray of cream file cards */
.dd{border:0;border-radius:8px;padding:14px;gap:10px;
  background:radial-gradient(90% 70% at 18% 0%,rgba(140,220,180,.14),rgba(140,220,180,0) 60%),linear-gradient(150deg,#1d4233,#132b20 55%,#0d1f17);
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 -2px 0 rgba(0,0,0,.5) inset,2px 3px 0 #06100b,4px 6px 0 #030806,12px 18px 16px rgba(0,0,0,.75),40px 60px 80px -20px rgba(0,0,0,.9)}
.dd a{border-radius:3px;color:#3b4640;
  background:linear-gradient(180deg,rgba(196,62,50,.45) 0 1px,transparent 1px) 0 7px/100% 1px no-repeat,linear-gradient(135deg,rgba(255,255,255,.35),rgba(255,255,255,0) 40%),linear-gradient(176deg,#f5efdc,#e8e0c9);
  box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,6px 9px 7px rgba(0,0,0,.5);transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s}
.dd a:hover{background:linear-gradient(180deg,rgba(196,62,50,.45) 0 1px,transparent 1px) 0 7px/100% 1px no-repeat,linear-gradient(135deg,rgba(255,255,255,.5),rgba(255,255,255,0) 40%),linear-gradient(176deg,#f8f3e2,#ece5cf);
  transform:translate(-1px,-3px);box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,10px 14px 10px rgba(0,0,0,.5)}
.dd a:active{transform:translate(1px,2px)}
.dd a b{color:#17201b}
.dd a span{color:#4a554f}
.dd a.dd-feature{border:0;margin-bottom:0;outline:1px solid rgba(31,90,64,.5);outline-offset:-6px;
  background:repeating-linear-gradient(45deg,rgba(31,122,86,.1) 0 1px,transparent 1px 5px),repeating-linear-gradient(-45deg,rgba(31,122,86,.1) 0 1px,transparent 1px 5px),linear-gradient(176deg,#e9f3e6,#d4e5d2)}
.dd a.dd-feature:hover{background:repeating-linear-gradient(45deg,rgba(31,122,86,.1) 0 1px,transparent 1px 5px),repeating-linear-gradient(-45deg,rgba(31,122,86,.1) 0 1px,transparent 1px 5px),linear-gradient(176deg,#eef7ea,#d9ead6)}

/* ---------- footer: the closing scene ---------- */
/* the directory: three ruled index cards leaning on the base plate, each a degree off the next */
.ftr .col{position:relative;padding:16px 16px 14px;border-radius:3px;align-self:start;
  background:linear-gradient(180deg,rgba(196,62,50,.5) 0 1px,transparent 1px) 0 40px/100% 1px no-repeat,linear-gradient(135deg,rgba(255,255,255,.38),rgba(255,255,255,0) 36%,rgba(0,0,0,0) 70%,rgba(0,0,0,.07)),
   repeating-linear-gradient(180deg,transparent 0 31px,rgba(47,96,130,.16) 31px 32px) 0 41px,linear-gradient(176deg,#f5efdc,#e8e0c9);
  box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 0 0 rgba(255,255,255,.5) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,
   6px 8px 0 -2px #dad1b9,7px 9px 0 -2px #7d7562,9px 13px 9px rgba(0,0,0,.65),24px 36px 34px -10px rgba(0,0,0,.7);
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.ftr .col:nth-child(2){transform:rotate(-.6deg)}
.ftr .col:nth-child(3){transform:rotate(.6deg)}
.ftr .col:nth-child(4){transform:rotate(-.6deg)}
.ftr .col:hover{transform:translate(-1px,-4px);box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 0 0 rgba(255,255,255,.5) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,
   6px 8px 0 -2px #dad1b9,7px 9px 0 -2px #7d7562,13px 19px 13px rgba(0,0,0,.55),32px 48px 42px -10px rgba(0,0,0,.7)}
/* typed heading on the card's top line */
.ftr .col h5{margin:0 0 12px;font:700 12px/1 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.16em;color:#6b4f1c;text-shadow:none}
.ftr .col a{padding:6px 0;line-height:20px;font-size:14.5px;font-weight:500;color:#232b27;text-shadow:none}
.ftr .col a:hover{color:#0a4f34;text-decoration:underline;text-decoration-color:rgba(13,107,71,.5);text-underline-offset:4px}
/* the last line: a brass maker's plate screwed to the desk edge */
.ftr .fbot{border-top:0;margin-top:30px;padding:12px 30px;border-radius:4px;color:#2e2109;font-weight:600;letter-spacing:.02em;align-items:center;
  text-shadow:0 1px 0 rgba(255,243,201,.55);
  background:radial-gradient(circle at 13px 50%,#3a2a0c 0 1px,#f6dfa0 1.4px 2px,#7a5c20 2.4px 4.2px,rgba(0,0,0,0) 4.8px),radial-gradient(circle at calc(100% - 13px) 50%,#3a2a0c 0 1px,#f6dfa0 1.4px 2px,#7a5c20 2.4px 4.2px,rgba(0,0,0,0) 4.8px),
   repeating-linear-gradient(92deg,rgba(255,255,255,.07) 0 1px,rgba(255,255,255,0) 1px 3px),linear-gradient(170deg,#ead08a,#c9a04a 55%,#a57a2a);
  box-shadow:0 1px 0 rgba(255,243,201,.85) inset,1px 0 0 rgba(255,243,201,.4) inset,0 -1px 0 rgba(60,40,5,.6) inset,1px 2px 0 #5c4316,2px 4px 0 #2e2109,7px 11px 9px rgba(0,0,0,.7)}
@media(max-width:980px){.ftr .col:nth-child(n){transform:none}.ftr .col:hover{transform:translate(-1px,-4px)}}
@media(max-width:560px){.ftr .fbot{padding:12px 26px}}
@media(prefers-reduced-motion:reduce){.nav-links>a,.nav-dd>button,.dd a,.ftr .col{transition:none}.nav-links>a:hover,.nav-dd>button:hover,.dd a:hover{transform:none}
  .ftr .col:nth-child(n):hover{transform:none}}

/* ---------- phone menu: the same tray of cream file cards, on the leather blotter, the coin on its corner (coordinator ruling 11/18) ---------- */
.burger{border:0;border-radius:6px;background:linear-gradient(180deg,#2a3d33,#15211b);
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 -1px 0 rgba(0,0,0,.5) inset,1px 2px 0 #040806,4px 6px 6px rgba(0,0,0,.6);transition:transform .15s,box-shadow .15s}
.burger:active,.burger[aria-expanded=true]{transform:translateY(2px);box-shadow:0 1px 0 rgba(255,255,255,.14) inset,1px 1px 0 #040806,2px 3px 3px rgba(0,0,0,.6)}
@media(max-width:1100px){
  .mnav{border-bottom:0;padding-top:20px;padding-bottom:28px;
    background:radial-gradient(90% 60% at 18% 0%,rgba(140,220,180,.14),rgba(140,220,180,0) 60%),linear-gradient(150deg,#1d4233,#132b20 55%,#0d1f17);
    box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 -2px 0 rgba(0,0,0,.5) inset,0 4px 0 #06100b,0 7px 0 #030806,0 26px 30px rgba(0,0,0,.8)}
  /* the loose coin on the tray's corner is gone (coordinator r4: an orb with no job reads as a dead button); the
     jade node now has a job: it marks the page you are on (aria-current), on its row and on its Circuit station */
  .mnav .mlabel{margin:6px 0 0;padding-right:0;font:700 12px/1.6 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.16em;color:#e0bd78;text-shadow:0 -1px 0 rgba(0,0,0,.8)}
  .mnav .mlabel~.mlabel{margin-top:12px}
  .mnav a:not(.btn){padding:13px 14px;min-height:48px;border-bottom:0;border-radius:3px;font-size:15.5px;font-weight:600;color:#17201b;
    background:linear-gradient(180deg,rgba(196,62,50,.45) 0 1px,transparent 1px) 0 7px/100% 1px no-repeat,linear-gradient(135deg,rgba(255,255,255,.35),rgba(255,255,255,0) 40%),linear-gradient(176deg,#f5efdc,#e8e0c9);
    box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,6px 9px 7px rgba(0,0,0,.5);transition:transform .15s,box-shadow .15s}
  .mnav a:not(.btn):hover{transform:translate(-1px,-2px);box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 1px 0 #d2c9b1,2px 2px 0 #a39a82,3px 3px 0 #7d7562,9px 13px 9px rgba(0,0,0,.5)}
  .mnav a:not(.btn):active{transform:translate(1px,2px);box-shadow:0 1px 0 rgba(255,255,255,.85) inset,1px 1px 0 #d2c9b1,2px 2px 0 #7d7562,2px 3px 3px rgba(0,0,0,.5)}
  .mnav .btn-row{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){.burger,.mnav a:not(.btn){transition:none}.mnav a:not(.btn):hover,.mnav a:not(.btn):active{transform:none}}

/* seen on the 14:15 stills: the tray's icon tiles were dark blobs with no glyph, and the plate's second line was faint */
.hdr .dd a .ico.ico{background:linear-gradient(160deg,#2f9a6e,#1c6044);border:0;
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 -2px 0 rgba(0,40,24,.45) inset,1px 2px 0 #0d3a28,3px 5px 5px rgba(0,0,0,.35)}
.hdr .dd a .ico.ico::before,.hdr .dd a .ico.ico::after{content:none}
.hdr .dd a .ico.ico i{color:#f3fff8;opacity:1;position:relative;z-index:1;text-shadow:0 1px 0 rgba(0,40,24,.5)}
.ftr .fbot.fbot,.ftr .fbot.fbot *{color:#2e2109!important;opacity:1!important;text-shadow:0 1px 0 rgba(255,243,201,.35)!important;-webkit-text-fill-color:#2e2109}

/* footer balance (coordinator 11/18): the three cards ended at different heights with empty panel under the shortest.
   From two columns up every card runs the full height of the row, so all three share one bottom line; the spare lines
   stay ruled, as on a real index card. */
@media(min-width:561px){.ftr .col.col{align-self:stretch;display:flex;flex-direction:column}}
/* phone menu, opened (audit 0zm; portal lane's fix 11/21; coordinator round 3): it fills the screen, a lone service on a
   row of two spans the full width, and the space under the links holds a small live Circuit with the main actions */
/* menufit (checklist 0zs, coordinator 11/21): every row is its own block of the tray, so the tray can end on a whole row;
   the tray scrolls inside itself and never the page; the actions ride a sticky bar at the bottom */
@media(max-width:1100px){
  /* max-content rows (r4): in a full tray an auto row stops at its card's min-height, and a card with more in it (the Bundles plate at 390) spilled out below its row */
  html .mnav{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:max-content;align-content:start;gap:10px 12px;overflow-y:auto;overscroll-behavior:contain}
  html .mnav.open{height:calc(100dvh - 78px);max-height:none}
  html .mnav>.mlabel,html .mnav>.mtrace,html .mnav>.btn-row{grid-column:1/-1}
  /* the tray comes to rest on whole rows: it snaps each row's top to the top of the tray (inner-link check, 11/21) */
  html .mnav.open.more{scroll-snap-type:y mandatory;scroll-padding-top:0}
  html .mnav>:not(.btn-row){scroll-snap-align:start}
  /* the first row's snap area reaches up over the tray's top padding, so the opened position (top 0) is a rest point: 20px padding plus the label's 6px margin */
  html .mnav>:first-child{scroll-margin-top:26px}
  html .mnav>a.mwide{grid-column:1/-1}
  html .mnav.open{padding-bottom:0}
  html .mnav>.btn-row{position:sticky;bottom:0;z-index:2;margin:6px calc(var(--pad) * -1) 0;padding:14px var(--pad) calc(22px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg,#123024,#0d1f17 70%);box-shadow:0 -1px 0 rgba(140,220,180,.18),0 -14px 18px -8px rgba(0,0,0,.75)}
  html .mnav>.btn-row .mmore{display:none}
  html .mnav.more>.btn-row .mmore{display:flex;grid-column:1/-1;justify-content:center;align-items:center;gap:8px;margin:-4px 0 2px;
    font:700 11.5px/1.3 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.16em;text-transform:uppercase;color:#e0bd78}
  html .mnav.more.at-end>.btn-row .mmore{visibility:hidden}
}
/* lock the page by its root only: overflow on body as well would make body the sticky header's scroll box and leave the header (and the menu it carries) behind at the old scroll spot */
html.mlock{overflow:hidden;overscroll-behavior:none}   /* r4: a window with a real scrollbar keeps it as an empty track while locked (mgap, set by site.js), so widths and vw never change; scrollbar-gutter:stable reserved 15px where scrollbars are hidden and re-anchored the page on close */
html.mlock.mgap{overflow-y:scroll}
/* round 4: the body is pinned at its scroll spot (top set by site.js), so nothing behind the open menu can move */
html.mlock body{position:fixed;left:0;right:0;width:100%}
@media(max-width:600px){html .mnav{grid-template-columns:1fr}html .mnav.open{height:calc(100dvh - 70px)}
  html .mnav>.btn-row.btn-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}html .mnav>.btn-row .btn{padding-left:6px;padding-right:6px;font-size:14px}}
@media(max-width:399px){html .mnav>.btn-row.btn-row{grid-template-columns:1fr 1fr}html .mnav>.btn-row .btn-primary{grid-column:1/-1}}

/* the live Circuit in the opened menu (round 3, coordinator ruling 11/21): four stations on a double rail, a pulse
   travelling books > tax > credit > funding, each station a link; it sits in the free space above the actions */
.mtrace{display:none}
@media(max-width:1100px){
  html .mnav .mtrace{display:flex;flex-direction:column;justify-content:center;margin:22px 0 0;padding:16px 14px 14px;border-radius:14px;
    background:radial-gradient(120% 90% at 50% 0,rgba(70,207,144,.10),rgba(0,0,0,0) 60%),linear-gradient(180deg,#0f1a15,#0a120e);
    border:1px solid rgba(70,207,144,.22);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 -1px 0 rgba(0,0,0,.6) inset,0 14px 26px -12px rgba(0,0,0,.8)}
  html .mnav.open .mtrace{margin-top:12px}
  .mtrace .mc-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:14px}
  .mtrace .mc-k{font:700 12px/1.4 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.16em;text-transform:uppercase;color:#e0bd78}
  .mtrace .mc-s{font-size:12.5px;color:#a9b8b0}
  .mtrace .mc-rail{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .mtrace .mc-line{position:absolute;left:12.5%;right:12.5%;top:22px;height:6px;margin-top:-3px;border-top:1.5px solid rgba(70,207,144,.55);border-bottom:1.5px solid rgba(70,207,144,.55);pointer-events:none}
  .mtrace .mc-pulse{position:absolute;top:50%;left:0;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:#bff5da;box-shadow:0 0 8px 2px rgba(70,207,144,.85);animation:mtRun 3.6s cubic-bezier(.45,0,.55,1) infinite}
  @keyframes mtRun{0%{left:0;opacity:0}8%{opacity:1}92%{opacity:1}100%{left:100%;opacity:0}}
  html .mnav .mtrace a.mc-st{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;text-decoration:none;min-width:0;transform:none}
  html .mnav .mtrace a.mc-st:hover,html .mnav .mtrace a.mc-st:active{transform:none;box-shadow:none}
  .mtrace .mc-n{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#46cf90;font-size:21px;
    background:radial-gradient(circle at 35% 28%,#2f4a3d,#13201a 62%,#0b130f);border:1px solid rgba(70,207,144,.45);
    box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -2px 3px rgba(0,0,0,.6) inset,0 6px 10px -4px rgba(0,0,0,.9),0 0 0 4px rgba(10,18,14,.9);transition:transform .18s,box-shadow .18s}
  .mtrace a.mc-st:hover .mc-n{transform:translateY(-2px);box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 -2px 3px rgba(0,0,0,.6) inset,0 9px 14px -4px rgba(0,0,0,.9),0 0 0 4px rgba(10,18,14,.9),0 0 14px rgba(70,207,144,.45)}
  .mtrace a.mc-st:active .mc-n{transform:translateY(1px) scale(.97)}
  .mtrace .mc-l{font-size:12.5px;font-weight:600;line-height:1.25;color:#e9e4d6;text-align:center;white-space:nowrap}
  .mtrace a.mc-st:focus-visible{outline:none}
  .mtrace a.mc-st:focus-visible .mc-n{outline:2px solid #46cf90;outline-offset:3px}
}
@media(max-width:360px){.mtrace .mc-l{font-size:11.5px}.mtrace .mc-n{width:40px;height:40px;font-size:19px}.mtrace .mc-line{top:20px}}
@media(prefers-reduced-motion:reduce){.mtrace .mc-pulse{animation:none;left:50%}}
/* the full Circuit panel (11/21): when the tray holds the links with room to spare, the Circuit grows into the free
   space instead of leaving a void above it: bigger stations, each with a one-line note */
.mtrace .mc-d{display:none}
@media(max-width:1100px){
  html .mnav .mtrace.tall{justify-content:flex-start;padding:24px 18px 26px}
  html .mnav .mtrace.tall .mc-head{margin-bottom:26px}
  html .mnav .mtrace.tall .mc-k{font-size:13.5px}
  html .mnav .mtrace.tall .mc-s{font-size:14px}
  html .mnav .mtrace.tall .mc-rail{gap:10px}
  html .mnav .mtrace.tall .mc-n{width:72px;height:72px;font-size:32px}
  html .mnav .mtrace.tall .mc-line{top:36px}
  html .mnav .mtrace.tall .mc-l{font-size:15px;white-space:normal}
  html .mnav .mtrace.tall .mc-d{display:block;max-width:19ch;font-size:13px;line-height:1.35;color:#a9b8b0;text-align:center;text-wrap:balance}
}
/* the return track (tall panel only): the Circuit is a loop, so the rail runs down from Funding, back along the
   bottom and up into Clean books, as the same double jade line; a second pulse rides it home */
.mtrace .mc-loop{display:none}
@media(max-width:1100px){
  html .mnav .mtrace.tall .mc-loop{display:block;position:relative;flex:1 1 auto;min-height:70px;margin:18px 12.5% 4px;
    border:1.5px solid rgba(70,207,144,.55);border-top:0;border-radius:0 0 46px 46px}
  html .mnav .mtrace.tall .mc-loop::before{content:"";position:absolute;inset:0 4px 4px;border:1.5px solid rgba(70,207,144,.3);border-top:0;border-radius:0 0 42px 42px}
  html .mnav .mtrace.tall .mc-back{position:absolute;bottom:-4px;right:0;width:8px;height:8px;margin-right:-4px;border-radius:50%;background:#bff5da;
    box-shadow:0 0 8px 2px rgba(70,207,144,.85);animation:mcBack 3.6s cubic-bezier(.45,0,.55,1) 1.8s infinite}
  @keyframes mcBack{0%{right:8%;opacity:0}10%{opacity:1}90%{opacity:1}100%{right:92%;opacity:0}}
  html .mnav .mtrace.tall .mc-lk{position:absolute;left:50%;bottom:0;transform:translate(-50%,50%);padding:2px 12px;background:#0c1611;
    font:700 11.5px/1.3 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.16em;text-transform:uppercase;color:#e0bd78;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){html .mnav .mtrace.tall .mc-back{animation:none;right:50%}}
/* tall tablets (601 to 1100 wide, 1000+ high): the spare height goes first to the link cards (bigger taps), then to
   the Circuit's return track, so the tray has no wide empty field */
@media(min-width:601px) and (max-width:1100px) and (min-height:1000px){
  html .mnav>a:not(.btn){min-height:66px;padding:21px 20px;font-size:17px}
  html .mnav{row-gap:14px}
  html .mnav>.mlabel{font-size:13px}
}

/* round 4 (coordinator 11/21): Business Bundles is the bundle that holds the other services, so in the opened menu it is
   its own object: a thicker plate with two sheets fanned behind it and the package on a jade disc, across the full row;
   the six services under it then pair evenly (no lone card; tools/menulone.py) */
@media(max-width:1100px){
  html .mnav>a.mfeat{grid-column:1/-1;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 14px;
    padding:14px 16px 14px 14px;min-height:78px;margin:4px 0 6px;border-radius:5px;
    background:linear-gradient(180deg,rgba(196,62,50,.45) 0 1px,transparent 1px) 0 8px/100% 1px no-repeat,linear-gradient(135deg,rgba(255,255,255,.45),rgba(255,255,255,0) 45%),linear-gradient(176deg,#f8f2e0,#e6dcc2);
    box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 -2px 0 rgba(120,100,60,.25) inset,1px 1px 0 #d2c9b1,2px 2px 0 #b3a98f,3px 3px 0 #958b73,4px 4px 0 #7d7562,8px 12px 10px rgba(0,0,0,.55)}
  /* the two sheets of the bundle, fanned out behind the plate */
  html .mnav>a.mfeat::before,html .mnav>a.mfeat::after{content:"";position:absolute;inset:0 6px;z-index:-1;border-radius:5px;pointer-events:none;
    background:linear-gradient(176deg,#ede5cf,#d9cfb5);box-shadow:1px 1px 0 #a39a82,3px 5px 6px rgba(0,0,0,.45)}
  /* the sheets sit 6px in from each side so their fan stays inside the plate's own box (portal lane r4 note: scrollWidth +5px) */
  html .mnav>a.mfeat::before{transform:rotate(-1.4deg) translate(-3px,5px)}
  html .mnav>a.mfeat::after{transform:rotate(.9deg) translate(4px,7px);background:linear-gradient(176deg,#e4dbc2,#cfc5aa)}
  html .mnav .mf-stack{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:24px;color:#7ee0b2;
    background:radial-gradient(circle at 35% 28%,#2c6a4d,#143525 70%);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 -2px 3px rgba(0,0,0,.6) inset,0 0 0 3px #e9e1c8,0 0 0 4px #b9ae92,0 5px 8px rgba(0,0,0,.4)}
  html .mnav .mf-t{display:grid;gap:3px;min-width:0}
  html .mnav .mf-t b{font-size:17px;font-weight:700;color:#17201b;line-height:21px}
  html .mnav .mf-t span{font-size:13.5px;font-weight:500;line-height:18px;color:#4a524c;text-wrap:balance}
  html .mnav .mf-p{font-size:13px;font-weight:600;color:#4a524c;text-align:right;white-space:nowrap;line-height:16px}
  html .mnav .mf-p b{display:block;line-height:28px;font-family:'Fraunces',serif;font-size:22px;font-weight:600;color:#0a4f34;font-variant-numeric:tabular-nums}
  html .mnav>a.mfeat:hover,html .mnav>a.mfeat:active{transform:translateY(-1px)}
  /* whole-pixel line heights: a fractional plate height (115.42px) left the tray's last stop 1 to 2px off a row */
  /* where you are: the Circuit's jade node sits on the row of the page you are on, and its station on the Circuit lights */
  html .mnav>a[aria-current=page]:not(.mfeat){position:relative;padding-right:40px}
  html .mnav>a[aria-current=page]:not(.mfeat)::after{content:"";position:absolute;right:14px;top:50%;width:13px;height:13px;margin-top:-6.5px;border-radius:50%;pointer-events:none;
    background:radial-gradient(circle at 34% 28%,#f1fff7,rgba(255,255,255,0) 32%),radial-gradient(circle,#46cf90 0 55%,#1f8a59 56%);
    box-shadow:0 0 0 3px rgba(70,207,144,.22),0 1px 2px rgba(0,0,0,.45)}
  html .mnav>a.mfeat[aria-current=page] .mf-stack{box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 -2px 3px rgba(0,0,0,.6) inset,0 0 0 3px #46cf90,0 0 0 4px #1f8a59,0 0 14px rgba(70,207,144,.55)}
  html .mnav .mtrace a.mc-st[aria-current=page] .mc-n{box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 -2px 3px rgba(0,0,0,.6) inset,0 0 0 3px #46cf90,0 0 16px rgba(70,207,144,.6)}
}
@media(max-width:600px){
  html .mnav>a.mfeat{grid-template-columns:auto minmax(0,1fr);padding:14px}
  html .mnav .mf-p{grid-column:2;text-align:left}
  html .mnav .mf-p b{display:inline;font-size:18px;margin:0 2px}
}
@media(prefers-reduced-motion:reduce){html .mnav>a.mfeat:hover,html .mnav>a.mfeat:active{transform:none}}
/* short landscape screens (portal lane, r3 at 568x320): a 250px tray could not hold the action bar (141px) and the
   134px Circuit panel at once, so the Circuit sat under the bar at every stop and the tray never reached its end. Under
   420px tall the bar is one slim row and the Circuit stays out (its four stations are all in the rows above) */
@media(max-width:1100px) and (max-height:420px){
  /* audit r3 f3: the Circuit stays (hiding it left Contact as the last row, stretched tall and empty at the end stop);
     on a phone on its side it runs as the bare rail: the station names leave the screen but stay for screen readers */
  html .mnav .mtrace{margin-top:10px;padding-top:12px;padding-bottom:12px}
  html .mnav .mtrace .mc-head{margin-bottom:10px}
  html .mnav .mtrace .mc-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  html .mnav .mtrace .mc-d,html .mnav .mtrace .mc-loop{display:none}
  html .mnav>.btn-row{padding-top:8px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  html .mnav>.btn-row .btn{min-height:40px;padding-top:8px;padding-bottom:8px}
  html .mnav.more>.btn-row .mmore{margin:-2px 0 0;font-size:11px}
}

/* ===== round 4: site audit r3 findings ===== */
/* f2: the cookie slip never lies over the open menu's action bar; it is back the moment the menu closes */
html.mlock #ck{display:none}
/* f5: at 360 and under, "Clean books" stayed inside its column only by crossing the panel's padding (about 4px from
   "Tax plan" at 320). The compact panel takes a slimmer side padding and gap so each column is wider than its label. */
@media(max-width:360px){
  html .mnav .mtrace:not(.tall){padding-left:8px;padding-right:8px}
  html .mnav .mtrace:not(.tall) .mc-rail{gap:4px}
}
/* f6: every button and footer link answers a press (checklist 0zq, 0zr): it sinks 2px and its shadow tightens */
html body .btn:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(255,255,255,.16) inset,0 1px 2px rgba(0,0,0,.55);filter:brightness(.96)}
html body .ftr .col a:active,html body .ftr .addr a:active{position:relative;top:1px;color:var(--jade)}
@media(prefers-reduced-motion:reduce){html body .btn:active{transform:none}}
/* r5: "Clean books" sat 0.2px past the panel padding at 320 (audit r4 P3); a touch smaller and tighter only at the narrowest phones */
@media(max-width:400px){.mtrace .mc-l{font-size:11px;letter-spacing:-.01em}}
/* r5 audit P3 + btnrow check: in the three-across price-card range, long plan labels wrapped to two lines beside one-line buttons. Narrower side padding keeps every label on one line. */
@media(min-width:981px) and (max-width:1120px){.price-card .buy .btn-block{padding-left:9px;padding-right:9px;white-space:nowrap}}

/* r5b audit P3 3+4: Cash App wrapped beside one-line PayPal and Venmo (/pay 1070-1200); Client Portal wrapped beside Pay in the footer (570-620, 320). */
.paygrid-alt .pbtn{white-space:nowrap;padding-left:10px;padding-right:10px}
.ftr .fbtns{max-width:340px}.ftr .fbtns .btn{white-space:nowrap;padding-left:12px;padding-right:12px}

/* 11/27 form fields: on the paper form cards every field is a pressed well in the paper, not a white browser box.
   Warm paper tint, darker at the top edge (pressed in), a light lip below, ink text, green focus ring. Same on phone and computer. */
html main .form-card .field :is(input,select,textarea){color:#17201b;border:1px solid rgba(23,32,27,.30);border-radius:10px;
  background:linear-gradient(180deg,#e8e4d8 0,#f3f0e7 38%,#faf8f2 100%);
  box-shadow:inset 0 2px 3px rgba(23,32,27,.18),inset 0 -1px 0 rgba(255,255,255,.85),0 1px 0 rgba(255,255,255,.9);
  transition:border-color .15s,box-shadow .15s,background .15s}
html main .form-card .field :is(input,select,textarea):hover{border-color:rgba(13,107,71,.55)}
html main .form-card .field :is(input,select,textarea):focus{outline:none;border-color:#0d6b47;background:linear-gradient(180deg,#f1eee5 0,#fbfaf5 40%,#fffefa 100%);
  box-shadow:inset 0 2px 3px rgba(23,32,27,.12),0 0 0 3px rgba(70,207,144,.30)}
html main .form-card .field :is(input,textarea)::placeholder{color:#7d867f}
html main .form-card .field select{appearance:none;-webkit-appearance:none;padding-right:42px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d6b47' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center,
    linear-gradient(180deg,#e8e4d8 0,#f3f0e7 38%,#faf8f2 100%)}
html main .form-card .field select:focus{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d6b47' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center,
    linear-gradient(180deg,#f1eee5 0,#fbfaf5 40%,#fffefa 100%)}
html main .form-card .field select option{background:#fbfaf5;color:#17201b}
html main .form-card .field.invalid :is(input,select,textarea){border-color:#a3271f;box-shadow:inset 0 2px 3px rgba(23,32,27,.14),0 0 0 3px rgba(163,39,31,.16)}
html main .form-card .consent input{border:1px solid rgba(23,32,27,.38);border-radius:6px;background:linear-gradient(180deg,#e8e4d8,#faf8f2);
  box-shadow:inset 0 2px 2px rgba(23,32,27,.18),0 1px 0 rgba(255,255,255,.9)}
html main .form-card .consent input:checked{border-color:#0d3a28;background:linear-gradient(180deg,#2fae78,#0d6b47);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 2px rgba(0,0,0,.2)}
html main .form-card .consent input:checked::after{border-color:#fff}
html main .form-card .consent input:focus-visible{outline:none;box-shadow:inset 0 2px 2px rgba(23,32,27,.18),0 0 0 3px rgba(70,207,144,.30)}
