@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe&family=Cormorant+Garamond:ital,wght@1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.tk-nav,
.tk-nav *,
.tk-nav *::before,
.tk-nav *::after {
  box-sizing: border-box;
}

/* Typography tokens — on shell so they apply before theme color vars load */
.tk-shell {
  --tk-font-heading: "Alumni Sans Pinstripe", sans-serif;
  --tk-font-body: "DM Sans", sans-serif;
  --tk-font-quote: "Cormorant Garamond", serif;
}

/* Full-width shell — Elementor e-con-full pattern: bg edge-to-edge, content boxed inside */
.tk-shell {
  --tk-container-max: 1280px;
  --tk-shell-gutter: 1.5rem;
  --tk-shell-pad-block: clamp(2.5rem, 6vh, 4.5rem);
  width: 100vw;
  max-width: 100vw;
  flex: 1;
  margin-inline: calc(50% - 50vw);
  padding-block: var(--tk-shell-pad-block);
  background: var(--tk-bg);
  color: var(--tk-text);
  font-family: var(--tk-font-body);
  display: flex;
  flex-direction: column;
}

.tk-shell h1,
.tk-shell h2,
.tk-shell h3,
.tk-shell h4,
.tk-shell h5,
.tk-shell h6 {
  font-family: var(--tk-font-heading);
  font-weight: 400;
}

.tk-shell__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: var(--tk-container-max);
  margin-inline: auto;
  padding-inline: var(--tk-shell-gutter);
  min-height: 0;
  position: relative;
}

.tk-page-header {
  flex-shrink: 0;
  padding-block: 0 1.75rem;
  text-align: center;
}

.tk-page-header__title {
  margin: 0 0 0.45rem;
  font-family: var(--tk-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tk-text);
  line-height: 1.15;
}

.tk-page-header__subtitle {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.95rem;
  color: var(--tk-muted);
  line-height: 1.5;
}

/* Override Hello Biz / Elementor heading styles on toolkit pages */
body.tk-has-toolkit .tk-shell .tk-page-header__title,
body.tk-has-toolkit .tk-shell h1.tk-page-header__title,
.elementor-widget-shortcode .tk-shell .tk-page-header__title,
.elementor-widget-shortcode .tk-shell h1.tk-page-header__title,
.elementor .elementor-widget-shortcode .tk-shell .tk-page-header__title,
.elementor .elementor-widget-shortcode .tk-shell h1.tk-page-header__title {
  font-family: var(--tk-font-heading);
  font-weight: 400;
  color: var(--tk-text);
}

body.tk-has-toolkit .tk-shell .tk-page-header__subtitle,
.elementor-widget-shortcode .tk-shell .tk-page-header__subtitle {
  color: var(--tk-muted);
}

.tk-nav-stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* Release Hello Biz / theme content constraints on toolkit pages */
body.tk-has-toolkit .site-main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: none;
  padding-inline: 0;
}

body.tk-has-toolkit .page-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: none;
  padding-inline: 0;
}

/*
 * Public tool pages keep the normal WordPress document flow and site chrome.
 * The internal tool workspace owns its viewport; it must not lock the page or
 * remove the site's footer.
 */
body.tk-has-toolkit:has([data-toolkit-tool]) {
  --tk-chrome-header: 3.25rem;
  overflow-x: clip;
}

html:has(body.tk-has-toolkit [data-toolkit-tool]) {
  overflow-x: clip;
}

body.tk-has-toolkit.admin-bar:has([data-toolkit-tool]) {
  --tk-chrome-header: calc(3.25rem + var(--wp-admin--admin-bar--height, 32px));
}

body.tk-has-toolkit:has([data-toolkit-tool]) #page {
  overflow-x: clip;
}

body.tk-has-toolkit .page-content:has([data-toolkit-tool]) .elementor-section:not(:has([data-toolkit-tool])),
body.tk-has-toolkit .page-content:has([data-toolkit-tool]) .e-con:not(:has([data-toolkit-tool])),
body.tk-has-toolkit .page-content:has([data-toolkit-tool]) .elementor-widget:not(.elementor-widget-shortcode) {
  display: none !important;
}

body.tk-has-toolkit .site-main:has([data-toolkit-tool]) {
  min-height: 0 !important;
  overflow: visible;
  padding-block: 0;
}

.tk-nav {
  width: 100%;
  font-family: inherit;
  line-height: 1.5;
  color: var(--tk-text);
}

.tk-nav a {
  color: inherit;
  text-decoration: none;
}

.tk-nav button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

.tk-nav button:hover,
.tk-nav button:focus,
.tk-nav button:active {
  color: inherit;
}

.tk-nav :focus-visible {
  outline: 2px solid var(--tk-accent);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .tk-shell {
    --tk-container-max: 1024px;
  }
}

@media (max-width: 767px) {
  .tk-shell {
    --tk-container-max: 767px;
    --tk-shell-gutter: 1rem;
  }
}
