/* Advisor Resources: the client packet builder, the document library, the daily data and the Q&A.
   Shared advisor pieces are in adv.css; the four-number row, .h3 and the next cards come from adv-philosophy.css. */
[hidden]{display:none!important}
.stats4 .stat{max-width:260px}
.sec.first{padding-top:32px}
.h4{margin:36px 0 0;font-family:var(--disp);font-size:20px;line-height:26px;font-weight:500}
.btn.sm{min-width:0;height:34px;padding:0 14px;font-size:13px}
.btn[disabled]{opacity:.55;pointer-events:none}
.btn .spin{width:14px;height:14px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.hint{margin:8px 0 0;font-size:12px;line-height:18px;color:var(--gray)}
.msg{margin:8px 0 0;font-size:13px;line-height:19px;color:var(--ink2);min-height:0}
.msg:empty{display:none}
.msg.err{color:var(--red)}

/* segmented controls */
.seg{display:inline-flex;background:var(--card);border-radius:4px;padding:3px;gap:2px;max-width:100%}
.seg button{height:32px;padding:0 14px;border-radius:3px;font-size:13px;font-weight:500;color:var(--ink2);white-space:nowrap}
.seg button small{font-size:12px;font-weight:400;color:var(--gray);margin-left:4px}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.wash .seg,.pkc .seg{background:var(--wash2)}
.seg button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}

/* the packet: the standard one and the builder */
.pk{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px;margin-top:40px;align-items:start}
.pkc{background:var(--card);border-radius:6px;padding:28px 28px 30px}
.pkc h3{margin:0;font-family:var(--disp);font-size:24px;line-height:30px;font-weight:500}
.pkc>p{margin:10px 0 0;font-size:14px;line-height:21px;color:var(--ink2)}
.pkc>.btn{margin-top:24px;min-width:240px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin-top:22px}
.fgrid .wide{grid-column:1/-1}
.fld{display:block}
.fld>span:first-child{display:block;font-size:13px;font-weight:500;color:var(--ink2);margin-bottom:6px}
.fld em{font-style:normal;font-weight:400;color:var(--gray)}
.fld input:not([type=file]){display:block;width:100%;height:40px;padding:0 12px;border:0;border-radius:4px;background:#fff;box-shadow:inset 0 0 0 1px var(--outline2);font:inherit;font-size:14px;color:var(--ink)}
.fld input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--blue)}
.lg{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.lgbox{height:48px;min-width:96px;max-width:220px;padding:6px 10px;border-radius:4px;background:#fff;box-shadow:inset 0 0 0 1px var(--outline2);display:grid;place-items:center}
.lgbox img{max-height:36px;max-width:200px;object-fit:contain}
.lg label.btn{cursor:pointer}
.lg .link{font-size:13px;color:var(--gray)}
.fees{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:end}
.pct{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500}
.pct input{max-width:110px}
.fx{padding-bottom:8px}
.fx>span{display:block;font-size:13px;color:var(--gray)}
.fx>b{display:block;margin-top:4px;font-size:20px;line-height:24px;font-weight:500;font-family:var(--disp);font-variant-numeric:tabular-nums}
.prog{margin-top:18px}
.prog .bar{height:4px;border-radius:2px;background:var(--outline2);overflow:hidden}
.prog .bar i{display:block;height:100%;width:0;background:var(--blue);transition:width .4s}
.prog p{margin:8px 0 0;font-size:13px;line-height:19px;color:var(--ink2)}
.flist{margin-top:14px;border-top:1px solid var(--rule)}
.pkl .small-note{margin-top:16px}
.fi{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:11px 0;border-bottom:1px solid var(--rule2);font-size:14px}
.fi .n{font-size:12px;color:var(--gray2);font-variant-numeric:tabular-nums}
.fi b{font-weight:500}
.tg{font-size:11px;font-weight:600;padding:2px 7px;border-radius:3px;background:var(--card);color:var(--ink2);white-space:nowrap}
.tg.yo{background:var(--blue-tint);color:var(--blue)}

/* the library */
#ar-docs{padding-top:24px}
.vbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px}
.vnote{margin:0;max-width:640px;font-size:13px;line-height:19px;color:var(--ink2)}
.vnote b{font-weight:600}
.dcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.dc{background:#fff;border-radius:6px;padding:24px 24px 22px;display:flex;flex-direction:column}
.dch{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.dc h4,.fsc h4{margin:0;font-family:var(--disp);font-size:20px;line-height:26px;font-weight:500}
.dch small{font-size:12px;color:var(--gray);white-space:nowrap}
.dc>p{margin:8px 0 0;font-size:14px;line-height:21px;color:var(--ink2);flex:1}
.acts{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}
.acts .link{font-size:14px}
.btn.dl{min-width:0;height:36px;padding:0 16px;gap:8px;font-size:13px}
.btn.dl svg{width:15px;height:15px}
.fsg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}
.fsc{background:#fff;border-radius:6px;padding:22px 20px 20px;border-top:4px solid var(--c)}
.fsc .acts{gap:12px}
.drows{margin-top:16px;border-top:1px solid var(--wash2)}
.drow{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.7fr) 220px;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid var(--wash2)}
.drow>b{font-size:15px;font-weight:600}
.drow>b small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--gray)}
.drow>p{margin:0;font-size:13px;line-height:19px;color:var(--ink2)}
.drow .acts{margin:0;justify-content:flex-end;gap:8px}
.drow .acts .btn{min-width:0;height:36px;padding:0 16px;font-size:13px}
.drow>.msg{grid-column:1/-1;margin:-8px 0 0}
.drow:target,.drow.hl{background:rgba(62,106,225,.07);box-shadow:-12px 0 0 rgba(62,106,225,.07),12px 0 0 rgba(62,106,225,.07)}
.drow.rec{grid-template-columns:minmax(0,1.1fr) minmax(0,1.7fr) 220px;color:inherit}
.drow.rec .ext{justify-self:end;font-size:18px;color:var(--gray)}
.drow.rec:hover b{text-decoration:underline;text-underline-offset:4px}
.dg{margin:32px 0 0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gray)}
.zipb{margin-top:24px;min-width:240px}

/* data and tools */
.dg2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:40px;align-items:start}
.csvc .seg{display:flex;width:max-content;margin-top:16px}
.csvc .seg+.seg{margin-top:8px}
.csvc>.btn{margin-top:20px}
.tools{border-top:1px solid var(--rule)}
.tool{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:20px 4px;border-bottom:1px solid var(--rule);color:inherit}
.tool>b{font-size:16px;font-weight:600}
.tool>span{grid-column:1;font-size:13px;line-height:19px;color:var(--ink2)}
.tool i{grid-row:1/3;grid-column:2;align-self:center;font-style:normal;font-size:18px;color:var(--gray);transition:transform .2s}
.tool:hover i{transform:translateX(3px);color:var(--ink)}
.tool:hover b{text-decoration:underline;text-underline-offset:4px}

/* the Q&A */
.topics{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}
.topics a{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:17px;background:var(--card);font-size:13px;font-weight:500;color:var(--ink2)}
.topics a small{font-size:11px;color:var(--gray)}
.topics a:hover{background:var(--hover)}
.ft{margin-top:56px}
.ft+.faq{margin-top:16px}
.faq .a .rn{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;margin:14px 0 0}
.faq .a .rn>span{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gray)}
.faq .a .tbl-wrap{margin:6px 0 14px}
.tbl.mini{font-size:13px}
.tbl.mini th,.tbl.mini td{padding:10px 16px 10px 0;text-align:left}

/* the toast after a download */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;max-width:min(560px,calc(100vw - 32px));padding:12px 18px;border-radius:6px;background:var(--ink);color:#fff;font-size:14px;line-height:20px;box-shadow:0 8px 24px rgba(0,0,0,.2)}

@media (max-width:1199px){
  .fsg{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:899px){
  .pk,.dg2,.dcards{grid-template-columns:minmax(0,1fr)}
  .pkc{padding:24px 20px 26px}
  .drow,.drow.rec{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px}
  .drow>p{grid-column:1}
  .drow .acts{grid-column:2;grid-row:1/3;flex-direction:column;align-items:stretch}
  .drow.rec .ext{grid-column:2;grid-row:1/3}
  .st{grid-template-columns:8px minmax(0,1fr) auto;gap:4px 16px}
  .st>i{grid-row:1/3;height:100%}
  .st .len{grid-column:3;grid-row:1}
  .st .acts{grid-column:2/-1;flex-wrap:wrap;margin-top:8px}
}
@media (max-width:599px){
  .fgrid{grid-template-columns:minmax(0,1fr)}
  .fees{grid-template-columns:1fr 1fr}
  .fees .fld{grid-column:1/-1}
  .pkc>.btn,.zipb,.csvc>.btn{width:100%;min-width:0}
  .fsg{grid-template-columns:minmax(0,1fr)}
  .seg{display:flex;width:100%}
  .seg button{flex:1;min-width:0;padding:4px 6px;font-size:12px;white-space:normal;height:auto;min-height:32px;line-height:14px}
  .seg button small{display:block;margin:0;line-height:12px}
  .seg:has(small) button{height:44px;line-height:16px}
  .csvc .seg{width:100%}
  .dch{flex-direction:column;gap:2px}
  .st .acts .btn{flex:1 1 auto}
  .vbar .seg{width:100%}
}
.tbl.mini th,.tbl.mini td{white-space:normal}
@media (max-width:899px){.tbl.mini thead th{min-width:0}.tbl.mini td:first-child{min-width:96px}}
