:root {
  --itft-brand-navy: #102a43;
  --itft-brand-navy-deep: #081f33;
  --itft-brand-teal: #0f766e;
  --itft-brand-teal-bright: #14b8a6;
  --itft-brand-gold: #f2b84b;
  --itft-brand-ink: #172b3a;
  --itft-brand-muted: #5e7180;
  --itft-brand-border: #d9e3e8;
  --itft-brand-surface: #ffffff;
  --itft-brand-bg: #f4f8f9;
  --itft-brand-radius: 14px;
  --itft-brand-shadow: 0 12px 34px rgba(16, 42, 67, 0.12);
}

html {
  scroll-padding-top: 84px;
}

body.has-itft-shell {
  background-color: var(--itft-brand-bg);
}

.itft-shell,
.itft-shell * {
  box-sizing: border-box;
}

.itft-shell a,
.itft-shell button,
.itft-shell summary {
  font: inherit;
}

.itft-shell-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  color: #fff;
  background:
    radial-gradient(circle at 12% -30%, rgba(20, 184, 166, 0.35), transparent 38%),
    linear-gradient(110deg, var(--itft-brand-navy-deep), var(--itft-brand-navy));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(8, 31, 51, 0.18);
}

.itft-shell-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.itft-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.itft-shell-brand__mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--itft-brand-navy-deep);
  background: linear-gradient(145deg, #fff, #c9f6ef);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 900;
}

.itft-shell-brand__text {
  display: grid;
  line-height: 1.05;
}

.itft-shell-brand__text small {
  margin-top: 4px;
  color: #aeeae1;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.itft-shell-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  margin-left: auto;
}

.itft-shell-nav a {
  padding: 9px 10px;
  color: #dceaf0 !important;
  border-radius: 9px;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 650;
}

.itft-shell-nav a:hover,
.itft-shell-nav a:focus-visible,
.itft-shell-nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.itft-export {
  position: relative;
  flex: 0 0 auto;
}

.itft-export summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: var(--itft-brand-navy-deep);
  background: var(--itft-brand-gold);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 800;
}

.itft-export summary::-webkit-details-marker {
  display: none;
}

.itft-export summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.itft-export__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
  color: var(--itft-brand-ink);
  background: #fff;
  border: 1px solid var(--itft-brand-border);
  border-radius: 14px;
  box-shadow: var(--itft-brand-shadow);
}

.itft-export__menu p {
  margin: 5px 7px 10px;
  color: var(--itft-brand-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.itft-export__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.itft-export__button {
  min-height: 39px;
  padding: 8px 10px;
  color: var(--itft-brand-ink);
  background: #f4f8f9;
  border: 1px solid var(--itft-brand-border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.itft-export__button:hover,
.itft-export__button:focus-visible {
  color: var(--itft-brand-teal);
  background: #e9f8f5;
  border-color: #85d8cd;
  outline: none;
}

.itft-export-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10001;
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px 15px;
  color: #fff;
  background: var(--itft-brand-navy-deep);
  border-left: 4px solid var(--itft-brand-teal-bright);
  border-radius: 10px;
  box-shadow: var(--itft-brand-shadow);
  font-size: 0.82rem;
  line-height: 1.45;
}

.itft-shell-footer {
  width: 100%;
  margin-top: 56px;
  padding: 30px max(18px, calc((100% - 1180px) / 2));
  color: #cfdee6;
  background: var(--itft-brand-navy-deep);
  border-top: 4px solid var(--itft-brand-teal);
  font-size: 0.82rem;
  line-height: 1.65;
}

.itft-shell-footer a {
  color: #9ee9dd !important;
  text-decoration: none !important;
}

.itft-shell-footer a:hover,
.itft-shell-footer a:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
}

.itft-shell-footer__top,
.itft-shell-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.itft-shell-footer__top {
  align-items: flex-start;
  padding-bottom: 20px;
}

.itft-shell-footer__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.itft-shell-footer__copy {
  max-width: 740px;
  margin: 0;
}

.itft-shell-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.itft-shell-footer__bottom {
  padding-top: 17px;
  color: #96acb8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.has-itft-shell :where(input, select, textarea):focus {
  border-color: var(--itft-brand-teal) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13) !important;
  outline: none !important;
}

@media (max-width: 900px) {
  .itft-shell-header__inner {
    width: min(100% - 22px, 1180px);
    min-height: 62px;
    gap: 12px;
  }

  .itft-shell-brand__text span {
    font-size: 0.85rem;
  }

  .itft-shell-brand__text small {
    display: none;
  }

  .itft-shell-nav {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .itft-shell-nav::-webkit-scrollbar {
    display: none;
  }

  .itft-shell-nav a {
    padding-inline: 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 120px;
  }

  .itft-shell-header__inner {
    min-height: auto;
    padding: 9px 0;
    flex-wrap: wrap;
  }

  .itft-shell-brand {
    flex: 1 1 auto;
  }

  .itft-shell-brand__mark {
    width: 33px;
    height: 33px;
  }

  .itft-shell-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 2px;
  }

  .itft-export summary {
    padding: 9px 11px;
  }

  .itft-shell-footer__top,
  .itft-shell-footer__bottom {
    display: grid;
  }
}

@media print {
  .itft-shell-header,
  .itft-shell-footer,
  .itft-export-status,
  .no-print {
    display: none !important;
  }

  body.has-itft-shell {
    background: #fff !important;
  }
}

