/* Incomenomics v3 depth layer: the portal example on the home page, rebuilt to match the client-portal lane's new look
   (portal-facelift\proposals\overview-*.png): the client's own file on the same desk. A file drawer of manila tabs with a
   typed label in a brass holder, then a leather blotter holding today's papers (a letter to sign, the tax folder, this
   month's invoice on safety paper), then index cards for what was filed lately. It replaces the green glass dashboard.
   One light, top-left. (c) Incomenomics LLC. All rights reserved. */

main .pdesk{position:relative;container-type:inline-size;margin:0;isolation:isolate}
/* the drawer: manila tabs standing behind its front lip */
.pd-tabs{display:flex;align-items:flex-end;gap:3px;padding:0 10px;position:relative;z-index:1}
.pd-tabs span{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 6px;border-radius:8px 9px 0 0;white-space:nowrap;
  font:600 11.5px/1 'Inter',sans-serif;letter-spacing:.02em;color:#4a3a12;
  background:linear-gradient(180deg,rgba(255,255,255,.7) 0 1.5px,transparent 1.5px),linear-gradient(180deg,#e2c582,#cdaa62);
  box-shadow:1px 0 0 #a3823f,2px 0 0 #6f5726,4px 1px 4px rgba(0,0,0,.45)}
.pd-tabs span i{font-size:14px;color:#6b4f1c}
.pd-tabs span.on{height:38px;color:#17201b;background:linear-gradient(180deg,rgba(255,255,255,.85) 0 1.5px,transparent 1.5px),linear-gradient(180deg,#f6e6ba,#ecd297)}
.pd-tabs span.on i{color:#0d6b47}
/* the leather blotter the papers lie on, with the drawer's front lip along its top */
.pd-desk{position:relative;border-radius:6px 6px 14px 14px;padding:clamp(14px,3cqw,22px);
  background:linear-gradient(180deg,#ecd297 0,#d6b470 5px,#8f7030 6px,rgba(0,0,0,.55) 7px,rgba(0,0,0,0) 16px),
   radial-gradient(90% 70% at 18% 0%,rgba(140,220,180,.16),rgba(140,220,180,0) 60%),linear-gradient(150deg,#1d4233,#132b20 55%,#0d1f17);
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset,1px 0 0 rgba(255,255,255,.08) inset,0 -2px 0 rgba(0,0,0,.5) inset,
   2px 3px 0 #06100b,4px 6px 0 #030806,10px 16px 14px rgba(0,0,0,.75),40px 60px 80px -20px rgba(0,0,0,.85);
  outline:1.5px dashed rgba(170,215,192,.24);outline-offset:-11px}
.pd-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin:14px 4px 16px}
.pd-hello b{display:block;font-family:'Fraunces',serif;font-weight:500;font-size:clamp(19px,4.2cqw,24px);line-height:1.2;color:var(--cream)}
.pd-hello span{display:block;font-family:'Fraunces',serif;font-style:italic;font-size:clamp(17px,3.6cqw,21px);line-height:1.25;color:var(--jade-hi)}
/* a typed label in a brass holder: whose file this is */
.pd-label{flex:none;padding:7px 11px;border-radius:3px;white-space:nowrap;font:600 11.5px/1 ui-monospace,'Cascadia Mono',Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:#1b221e;
  background:linear-gradient(178deg,#fdfcf8,#eeede6);
  box-shadow:0 0 0 1px #5c4316,0 0 0 3px #d9b565,0 0 0 4px #7a5c20,0 1px 0 4px rgba(255,243,201,.6),3px 5px 5px 3px rgba(0,0,0,.6)}
/* today's papers */
.pd-papers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px;margin-bottom:20px}
.pd-p{position:relative;display:flex;flex-direction:column;gap:5px;padding:38px 13px 14px;border-radius:3px;color:#3b4640;
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.pd-p b{font-family:'Fraunces',serif;font-weight:500;font-size:16px;line-height:1.2;color:#17201b}
.pd-p .ts{font-size:12.5px;line-height:1.45;color:#3b4640;flex:1}
.pd-tag{align-self:flex-start;margin-top:6px;padding:5px 8px;border-radius:0 4px 4px 0;white-space:nowrap;font:600 11px/1 'Inter',sans-serif;color:#eafff3;
  background:linear-gradient(180deg,#2a8a62,#1c6044);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,1px 2px 0 #0d3a28,3px 5px 5px rgba(0,0,0,.3)}
.pd-p:hover{transform:translate(-1px,-4px)}
.pd-p:active{transform:translate(1px,2px)}
/* 1. the engagement letter: white letter paper on a second sheet, a red "Sign here" stamp */
.pd-p.letter{transform:rotate(-.9deg);background:linear-gradient(135deg,rgba(255,255,255,.45),rgba(255,255,255,0) 40%,rgba(0,0,0,.05)),linear-gradient(178deg,#fdfcf8,#eeede6);
  box-shadow:0 1px 0 #fff inset,1px 1px 0 #d9d7ce,2px 2px 0 #a9a79d,6px 8px 0 -2px #e6e4dc,7px 9px 0 -2px #8f8d84,8px 12px 9px rgba(0,0,0,.6),20px 30px 26px -8px rgba(0,0,0,.6)}
.pd-p.letter:hover{transform:rotate(-.9deg) translate(-1px,-4px)}
.pd-stamp{position:absolute;right:10px;top:10px;padding:4px 7px 3px;border:2px solid #8a2f25;border-radius:3px;transform:rotate(4deg);white-space:nowrap;
  font:800 11px/1 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8a2f25}
/* 2. the tax folder: manila, its tab standing above, a sheet showing behind the front flap */
.pd-p.folder{background:linear-gradient(180deg,rgba(255,255,255,.65) 0 1.5px,rgba(0,0,0,.12) 1.5px 3px,rgba(0,0,0,0) 9px),
   linear-gradient(0deg,#8f7030 0,#b6934c 3px,#dcbf7e 7px,rgba(220,191,126,0) 12px),linear-gradient(176deg,#ecd297,#d6b470);
  box-shadow:1px 1px 0 #b08f4e,2px 2px 0 #86692f,3px 4px 0 #5e4a1f,8px 12px 9px rgba(0,0,0,.6),20px 30px 26px -8px rgba(0,0,0,.6)}
.pd-p.folder::before{content:"";position:absolute;left:0;bottom:100%;width:56%;height:11px;border-radius:7px 8px 0 0;background:linear-gradient(180deg,#f0d9a4,#dcbf80);box-shadow:1px 0 0 #a3823f,2px 0 0 #6f5726}
.pd-p.folder::after{content:"";position:absolute;right:8px;left:60%;bottom:calc(100% - 1px);height:7px;border-radius:2px 2px 0 0;background:linear-gradient(180deg,#fdfcf8,#e9e7df);box-shadow:1px 0 0 #b1aea4}
/* 3. the invoice: green safety paper with the jade coin on it */
.pd-p.invoice{transform:rotate(.9deg);outline:1px solid rgba(31,90,64,.55);outline-offset:-6px;
  background:linear-gradient(115deg,rgba(255,255,255,.35),rgba(255,255,255,0) 26%,rgba(255,255,255,0) 40%,rgba(255,255,255,.55) 49%,rgba(255,255,255,0) 60%),
   repeating-linear-gradient(45deg,rgba(31,122,86,.11) 0 1px,transparent 1px 5px),repeating-linear-gradient(-45deg,rgba(31,122,86,.11) 0 1px,transparent 1px 5px),linear-gradient(176deg,#e9f3e6,#d4e5d2);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,1px 1px 0 #c3d6c1,2px 2px 0 #8ea38d,5px 8px 0 -2px #cfe0cc,6px 9px 0 -2px #7f957e,8px 12px 9px rgba(0,0,0,.6),20px 30px 26px -8px rgba(0,0,0,.6)}
.pd-p.invoice:hover{transform:rotate(.9deg) translate(-1px,-4px)}
.pd-p.invoice::before{content:"";position:absolute;right:9px;top:8px;width:26px;height:26px;border-radius:50%;
  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 -3px 5px rgba(0,60,35,.5) inset,1px 2px 0 #0f5a3b,2px 4px 0 #083523,5px 8px 5px rgba(0,0,0,.45)}
/* filed lately: ruled index cards, one on the next */
.pd-k{display:block;margin:0 4px 9px;font:600 11px/1 'Inter',sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.pd-filed{display:grid;gap:9px}
.pd-filed div{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:10px 12px;border-radius:3px;font-size:13.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,.55)}
.pd-filed div:nth-child(odd){transform:rotate(-.35deg)}
.pd-filed i{font-size:17px;color:#0d6b47}
.pd-filed em{font-style:normal;font-weight:500;font-size:12px;color:#4f5953;white-space:nowrap}
@container (max-width:559px){
  .pd-papers{grid-template-columns:1fr;gap:16px}
  .pd-p{padding:14px 13px 14px}.pd-p b{padding-right:96px}
  .pd-p.letter,.pd-p.invoice,.pd-p.letter:hover,.pd-p.invoice:hover{transform:none}
  .pd-p.folder{margin-top:8px}
  .pd-p.invoice b{padding-right:40px}}
@container (max-width:430px){
  .pd-tabs span:nth-child(n+4){display:none}
  .pd-filed div{grid-template-columns:20px minmax(0,1fr)}.pd-filed em{grid-column:2}}
@media(prefers-reduced-motion:reduce){.pd-p{transition:none}.pd-p:hover,.pd-p:active{transform:none}.pd-p.letter:hover{transform:rotate(-.9deg)}.pd-p.invoice:hover{transform:rotate(.9deg)}}
@container (max-width:559px){@media(prefers-reduced-motion:reduce){.pd-p.letter:hover,.pd-p.invoice:hover{transform:none}}}

/* the big faint ring behind each section crossed body text (coordinator 11/18): gone. Background lines stay in the gutters. */
.dp-ring{display:none!important}

/* Desk tabs (sweep finding on Home): the tabs were equal shares, and icon + "Documents" needs about 94px, so the word ran
   1-2px past its tab whenever a share fell under that (320, 470-500, 1070-1100). Tabs now size to their own words, and
   in a narrow file only the open tab keeps its icon, so five tabs need about 350px and three about 200px. */
.pd-tabs span{flex:1 1 auto;white-space:nowrap}
@container (max-width:540px){.pd-tabs span:not(.on) i{display:none}}

/* excellence: the three papers measured 148/144/147 because the letter and invoice were turned and the folder was not,
   and a turned box measures taller. All three now lean by the same .9 degree, so equal papers measure equal. */
.pd-p.folder{transform:rotate(-.9deg)}
.pd-p.folder:hover{transform:rotate(-.9deg) translate(-1px,-4px)}
@container (max-width:559px){.pd-p.folder,.pd-p.folder:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.pd-p.folder:hover{transform:rotate(-.9deg)}}
@container (max-width:559px){@media(prefers-reduced-motion:reduce){.pd-p.folder:hover{transform:none}}}
/* excellence @1320: "Engagement letter" broke onto two lines beside one-line headings. The heading scales with the file's
   width, so the longest of the three always fits on one line in the three-across layout. */
@container (min-width:560px){.pd-p b{font-size:min(16px,2.9cqw);letter-spacing:-.005em}}
