:root {
  --tb-canvas: #fcfbf8;
  --tb-paper: #fff;
  --tb-cream: #f5f2eb;
  --tb-ink: #142d42;
  --tb-muted: #4b6172;
  --tb-line: #d9e3e8;
  --tb-navy: #112f48;
  --tb-navy-hover: #173d59;
  --tb-accent: #17665d;
  --tb-mint: #a9e0d1;
  --tb-wash: #eef5f3;
  --tb-gold: #90601f;
  --tb-radius: 16px;
  --tb-control: 9px;
  --tb-shadow: 0 2px 4px #17344a08;
  --tb-lift: 0 10px 24px #17344a12;
  --tb-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tb-serif: Georgia, "Times New Roman", serif;
}

footer :is(span, small).tb-footnote {
  font: 400 .8125rem/1.5 var(--tb-sans);
  letter-spacing: normal;
}

.tb-header-links > a, .tb-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: var(--tb-control);
  font: 650 14px/1.25 var(--tb-sans);
  color: var(--tb-ink);
  text-decoration: none;
}
:root .tb-header-button {
  font: 650 14px/1.25 var(--tb-sans);
  padding: 8px 12px;
  gap: 6px;
  border: 0;
  background: var(--tb-wash);
  cursor: pointer;
}
.tb-header-links > :is(a:hover, a[aria-current]), :root .tb-header-button:hover {
  background: var(--tb-wash);
  color: var(--tb-accent);
}
.tb-header-links > a:focus-visible, .tb-header-button:focus-visible {
  outline: 2px solid var(--tb-accent);
  outline-offset: 2px;
}

.tb-family {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1rem;
  flex-basis: 100%;
  padding-block: 12px;
  border-top: 1px solid currentColor;
  font: 600 .875rem/1.5 var(--tb-sans);
}
.tb-family > strong::before {
  content: ""; display: inline-block; width: 1.25em; height: 1.25em;
  margin-inline-end: .4em; vertical-align: -.22em; background: currentColor;
  mask: url("/assets/techybhai-mark.svg") center / contain no-repeat;
}
.tb-family > strong { font: 700 .875rem/1.45 var(--tb-sans); }
@media (max-width: 760px) {
  .tb-family { width: 100%; text-align: start; justify-content: flex-start; }
  .tb-family > strong { flex-basis: 100%; }
}
.tb-family a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.tb-family a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.tb-skip {
  position: fixed;
  z-index: 1000;
  inset: 8px auto auto 8px;
  transform: translateY(calc(-100% - 16px));
  padding: 12px 16px;
  background: var(--tb-paper);
  color: var(--tb-navy);
  border-radius: var(--tb-control);
  font: 650 1rem/1.4 var(--tb-sans);
}
.tb-skip:focus {
  transform: none;
  outline: 2px solid var(--tb-accent);
  outline-offset: 2px;
}

.tb-tabs { display: none; }
@media screen and (max-width: 760px) {
  .tb-tabs:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
    box-sizing: border-box;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--tb-paper);
    border-top: 1px solid var(--tb-line);
    box-shadow: 0 -3px 16px #112f4808;
  }
  .tb-tabs > :is(a, button) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    box-sizing: border-box;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tb-muted);
    font: 600 11px/1.2 var(--tb-sans);
    text-decoration: none;
    cursor: pointer;
  }
  .tb-tabs > :is([aria-current], [data-active], a:hover, button:hover) {
    color: var(--tb-accent);
    background: var(--tb-wash);
    text-decoration: none;
  }
  .tb-tabs > :is([aria-current], [data-active]) { font-weight: 750; }
  .tb-tabs > :focus-visible { outline: 2px solid var(--tb-accent); outline-offset: -3px; }
  .tb-tabs svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body:has(.tb-tabs:not([hidden])) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html:has(.tb-tabs:not([hidden])) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
