/* Canonical Home header. Header-only rules, shared by every site route. */
.tp-tablet-menu-button {display:none;}
.tp-tablet-links {display:contents;}
body .tp-header .tp-nav {width:min(1450px,calc(100% - 56px));}
@media (max-width:640px) {
  body .tp-header .tp-nav {
    width:calc(100% - 28px);min-height:0;padding-block:8px;
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;
  }
  body .tp-header .tp-brand {grid-column:1;grid-row:1;gap:7px;}
  body .tp-header .tp-logo {width:36px;height:36px;}
  body .tp-header .tp-wordmark {font-size:25px;}
  body .tp-header .tp-tagline {display:none;}
  body .tp-header .tp-nav-actions {display:contents;}
  body .tp-header .tp-auth {grid-column:2;grid-row:1;align-self:center;}
  body .tp-header .tp-account {max-width:none;min-height:44px;padding:9px 11px;font-size:13px;}
  body .tp-header .tp-navlinks {
    grid-column:1/-1;grid-row:2;order:initial;display:flex;flex-wrap:nowrap;
    position:relative;justify-content:flex-start;gap:2px;max-width:100%;overflow:visible;padding:0;
  }
  body .tp-header .tp-navlinks a {min-height:44px;padding:9px 10px;font-size:13px;}
  body .tp-header .tp-tablet-menu-button {
    display:inline-flex;align-items:center;min-height:44px;padding:9px 11px;
    border:1px solid #e2e6de;border-radius:13px;background:#fff;color:var(--tp-ink);
    font-size:13px;font-weight:720;
  }
  .tp-tablet-menu-button::after {content:'⌄';margin-inline-start:6px;}
  body .tp-header .tp-tablet-links {
    position:absolute;z-index:70;left:0;top:calc(100% + 8px);display:grid;
    width:min(240px,calc(100vw - 28px));padding:8px;gap:4px;
    background:#fff;border:1px solid #e2e6de;border-radius:16px;box-shadow:0 12px 32px #193d2520;
  }
  body .tp-header .tp-tablet-links a {justify-content:flex-start;}
}
@media (min-width:641px) {
  body .tp-header {position:relative;}
  body .tp-header .tp-nav {
    display:flex;flex-wrap:nowrap;align-items:center;gap:14px;min-height:68px;padding-block:8px;
    width:calc(100% - 48px);max-width:1240px;
  }
  body .tp-header .tp-brand {flex:none;gap:9px;}
  body .tp-header .tp-logo {width:38px;height:38px;}
  body .tp-header .tp-wordmark {font-size:27px;}
  body .tp-header .tp-tagline {display:none;}
  body .tp-header .tp-nav-actions {
    display:flex;flex:1;min-width:0;flex-direction:row;align-items:center;gap:12px;
  }
  body .tp-header .tp-navlinks {
    position:relative;overflow:visible;flex-wrap:nowrap;justify-content:flex-start;
    gap:2px;padding:0;order:initial;
  }
  body .tp-header .tp-navlinks a,
  body .tp-header .tp-tablet-menu-button {
    min-height:44px;padding:10px;font-size:13px;line-height:24px;white-space:nowrap;
  }
  body .tp-header .tp-tablet-menu-button {
    display:inline-flex;align-items:center;gap:8px;border:1px solid #e2e6de;
    background:#fff;border-radius:13px;color:var(--tp-ink);font-weight:720;
  }
  .tp-tablet-menu-button::after {content:'⌄';font-size:16px;}
  .tp-tablet-menu-button[aria-expanded="true"] {background:var(--tp-green-soft);}
  .tp-tablet-menu-button:focus-visible {outline:3px solid #237943;outline-offset:3px;}
  body .tp-header .tp-auth {margin-inline-start:auto;flex:none;}
  body .tp-header .tp-pro-badge {width:48px;margin-inline-end:4px;}
  body .tp-header .tp-pro-signature {width:48px;height:30px;}
  body .tp-header .tp-account {max-width:150px;}
}
@media (min-width:641px) and (max-width:859px) {
  body .tp-header .tp-tablet-links {
    position:absolute;z-index:70;right:0;top:calc(100% + 8px);display:grid;
    width:240px;max-width:calc(100vw - 48px);padding:8px;gap:4px;
    background:#fff;border:1px solid #e2e6de;border-radius:16px;box-shadow:0 12px 32px #193d2520;
  }
  body .tp-header .tp-tablet-links a {justify-content:flex-start;}
}

/* Desktop shell: shared by English and every localized route. */
@media (min-width:1280px) {
  body .tp-header .tp-nav {width:calc(100% - 64px);max-width:1440px;min-height:84px;gap:28px;padding-block:12px;}
  body .tp-header .tp-logo {width:48px;height:48px;}
  body .tp-header .tp-wordmark {font-size:32px;}
  body .tp-header .tp-tagline {display:flex;font-size:12px;margin-top:3px;}
  body .tp-header .tp-navlinks {gap:6px;}
  body .tp-header .tp-navlinks a {font-size:15px;padding-inline:12px;}
  body .tp-header .tp-nav-actions {gap:20px;}
}
