/*
 * Design 4.1 — the home page contents index (thumb-index tabs on desktop,
 * a contents page on phones). Loaded only on the home page.
 */

/* Sections land just below the fixed header. */
#tp-business-services,[id^="tp-chapter-"]{scroll-margin-top:72px}

/* 1. Desktop thumb index ----------------------------------------------------- */
.tp41-index,.tp41-index *,.tp41-fab,.tp41-fab *,.tp41-sheet,.tp41-sheet *{box-sizing:border-box}
.tp41-index{position:fixed;right:0;top:50%;z-index:45;display:flex;flex-direction:column;align-items:flex-end;gap:8px;transform:translateY(-50%);pointer-events:none;font-family:var(--tp3-sans)}
/* The page edge the tabs are cut into. */
.tp41-index::before{content:'';position:absolute;right:0;top:34px;bottom:-4px;width:5px;background:repeating-linear-gradient(#f4f0e4 0 2px,#d8d0bc 2px 3px);box-shadow:-1px 0 0 #0b23281a;border-radius:2px 0 0 2px}
.tp41-index ol{position:relative;display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin:0;padding:0;list-style:none}
.tp41-index li{transition:transform .7s calc(var(--k) * 45ms) var(--tp3-ease),opacity .5s calc(var(--k) * 45ms)}
.tp41-js .tp41-index:not(.is-ready) li{opacity:0;transform:translateX(70px)}
.tp41-index a{position:relative;display:flex;align-items:center;gap:12px;width:44px;height:38px;padding:0 10px 0 11px;overflow:hidden;border-radius:10px 0 0 10px;background:var(--c);color:#fff!important;text-decoration:none!important;box-shadow:-6px 8px 18px -10px #000a,inset -6px 0 0 #00000014;pointer-events:auto;opacity:.9;transform:translateX(6px);transition:width .55s var(--tp3-ease),transform .45s var(--tp3-ease),opacity .3s,box-shadow .4s}
.tp41-index a:hover,.tp41-index a:focus-visible{opacity:1;transform:translateX(0)}
.tp41-index a:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.tp41-index .n{flex:0 0 22px;font:700 .72rem/1 var(--tp3-sans);letter-spacing:.04em;text-align:center}
.tp41-index .t{display:grid;gap:2px;min-width:0;white-space:nowrap;opacity:0;transform:translateX(12px);transition:opacity .35s,transform .5s var(--tp3-ease)}
.tp41-index .t strong{font:600 1.02rem/1 var(--tp3-serif);letter-spacing:.01em}
.tp41-index .t small{font:500 .64rem/1.1 var(--tp3-sans);opacity:.8}
.tp41-index .p{position:absolute;left:0;bottom:0;height:3px;width:calc(var(--p,0) * 100%);background:#ffffffb3;transition:width .2s linear}
/* The tab being read stays pulled out. */
.tp41-index a[aria-current="true"]{width:64px;opacity:1;transform:translateX(0);box-shadow:-10px 12px 24px -10px #000b,inset -6px 0 0 #0000001f}
.tp41-index a[aria-current="true"] .n{display:grid;place-items:center;width:26px;height:26px;flex-basis:26px;margin-left:-2px;border-radius:50%;background:#fff;color:var(--c)}
/* Hover or focus on the edge (and the first-visit peek): every tab slides out. */
.tp41-index:hover a,.tp41-index:focus-within a,.tp41-index.is-peek a{width:240px;opacity:1;transform:translateX(0);transition-delay:calc(var(--k) * 28ms)}
.tp41-index:hover .t,.tp41-index:focus-within .t,.tp41-index.is-peek .t{opacity:1;transform:none;transition-delay:calc(.12s + var(--k) * 28ms)}
.tp41-index-title{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin:0 12px 0 0;padding:8px 12px;border-radius:12px;background:#fffdf8f2;box-shadow:0 12px 24px -14px #0008;color:var(--tp3-ink);opacity:0;transform:translateY(6px);transition:opacity .35s,transform .45s var(--tp3-ease)}
.tp41-index-title b{font:600 1.05rem/1 var(--tp3-serif)}
.tp41-index-title span{font:600 .6rem/1 var(--tp3-sans);letter-spacing:.12em;text-transform:uppercase;color:#8a6a2c}
.tp41-index:hover .tp41-index-title,.tp41-index:focus-within .tp41-index-title,.tp41-index.is-peek .tp41-index-title{opacity:1;transform:none}
.tp41-index li[hidden]{display:none}

/* 2. Phones: contents button + contents page -------------------------------- */
.tp41-fab{display:none}
.tp41-sheet{width:min(520px,100%);max-width:100%;max-height:82dvh;margin:auto auto 0;padding:0 0 12px;border:0;border-radius:22px 22px 0 0;background:var(--tp3-cream);color:var(--tp3-text);box-shadow:0 -30px 60px -30px #000c;overflow:auto}
.tp41-sheet::backdrop{background:#0b2328a6;backdrop-filter:blur(4px)}
.tp41-sheet[open]{animation:tp41-up .5s var(--tp3-ease)}
@keyframes tp41-up{from{transform:translateY(100%)}}
.tp41-sheet-head{position:sticky;top:0;z-index:1;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;padding:22px 22px 12px;background:var(--tp3-cream);border-bottom:1px solid var(--tp3-line)}
.tp41-sheet-head::before{content:'';position:absolute;left:50%;top:8px;width:42px;height:4px;margin-left:-21px;border-radius:4px;background:#d8d0bc}
.tp41-sheet-head .tp-eyebrow{width:100%;margin:0 0 2px;font:700 .62rem/1 var(--tp3-sans);letter-spacing:.16em;text-transform:uppercase;color:#8a6a2c}
.tp41-sheet h2{margin:0;font:500 2.2rem/1 var(--tp3-serif);color:var(--tp3-ink)}
.tp41-x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:var(--tp3-ink);font:400 1.5rem/1 var(--tp3-sans);box-shadow:var(--tp3-shadow-1);cursor:pointer}
.tp41-sheet ol{margin:0;padding:6px 18px 8px;list-style:none}
.tp41-sheet li{border-left:4px solid var(--c)}
.tp41-sheet a{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:10px;padding:13px 6px 13px 14px;border-bottom:1px solid var(--tp3-line);color:inherit!important;text-decoration:none!important}
.tp41-sheet .t{display:grid;gap:3px}
.tp41-sheet .t strong{font:500 1.3rem/1.05 var(--tp3-serif);color:var(--tp3-ink)}
.tp41-sheet .t small{font:500 .74rem/1.2 var(--tp3-sans);color:var(--tp3-muted)}
.tp41-sheet .dots{height:1px;margin-bottom:6px;border-bottom:2px dotted #c9bfa6}
.tp41-sheet .n{font:600 1.1rem/1 var(--tp3-serif);color:#8a6a2c}
.tp41-sheet a[aria-current="true"]{background:#fff}
.tp41-sheet a[aria-current="true"] .n{padding:5px 8px;border-radius:99px;background:var(--c);color:#fff;font:700 .78rem/1 var(--tp3-sans)}

@media(max-width:1100px){
  .tp41-index{display:none}
  .tp41-fab{position:fixed;left:14px;bottom:18px;z-index:60;display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 7px 0 14px;border:0;border-radius:99px;background:#0b2328f2;color:#fff;font:700 .82rem/1 var(--tp3-sans);box-shadow:0 14px 30px -12px #000c;cursor:pointer;transition:transform .4s var(--tp3-ease)}
  .tp41-fab:active{transform:scale(.96)}
  .tp41-fab-book{display:grid;gap:3px;width:16px}
  .tp41-fab-book i{display:block;height:3px;border-radius:2px;background:#0a8fc4}
  .tp41-fab-book i:nth-child(2){background:#c2187f;width:80%}.tp41-fab-book i:nth-child(3){background:#e0b04a;width:60%}
  .tp41-fab-now{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--now,#d59b2d);color:#fff;font:700 .74rem/1 var(--tp3-sans);transition:background .4s}
}
@media(prefers-reduced-motion:reduce){
  .tp41-index li,.tp41-index a,.tp41-index .t,.tp41-sheet[open]{transition:none!important;animation:none!important}
}
