/* ==========================================================================
   Tech:NYC — local replica
   The base styling comes from the exported Framer stylesheets. This file only
   restores the behaviour that the Framer runtime used to provide.
   ========================================================================== */

:root {
  --tn-ink: #111111;
  --tn-cream: #ebeae6;
  --tn-paper: #f5f5f2;
  --tn-green: #dfeed6;
  --tn-white: #fffcf4;
  --tn-sans: "TeX Gyre Heros", "TeX Gyre Heros Regular", Helvetica, Arial, sans-serif;
  --tn-serif: "Domine", Georgia, serif;
}

/* --------------------------------------------------------------------------
   Daily digest carousel
   -------------------------------------------------------------------------- */
[data-framer-name="Slides"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

[data-framer-name="Slides"] > [data-framer-name="Carousel Slide"] {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), visibility 0s linear 0.6s;
}

[data-framer-name="Slides"]:not([data-ready]) > [data-framer-name="Carousel Slide"]:first-child,
[data-framer-name="Slides"] > [data-framer-name="Carousel Slide"][data-active="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), visibility 0s;
}

[data-framer-name="Carousel Slide"] .framer-xabep-container {
  opacity: 1 !important;
}

[data-framer-name="Carousel Slide"] [data-framer-name="Timer Fill"] {
  display: none !important;
}

[data-framer-name="Carousel Slide"] [data-framer-name^="Position"] {
  position: relative;
  overflow: hidden;
  width: 6px !important;
  height: 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

[data-framer-name="Carousel Slide"] [data-framer-name^="Position"].is-active {
  width: 60px !important;
}

[data-framer-name="Carousel Slide"] [data-framer-name^="Position"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tn-ink);
  border-radius: inherit;
  transform: translateX(-101%);
}

[data-framer-name="Carousel Slide"] [data-framer-name^="Position"].is-active::after {
  animation: tn-timer 8s linear forwards;
}

@keyframes tn-timer {
  from { transform: translateX(-101%); }
  to { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.tn-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  will-change: transform;
}

.tn-nav-wrap.is-hidden {
  transform: translateY(-110%) !important;
}

.tn-nav-wrap nav:has(button:hover) [data-framer-name="Bar"],
.tn-nav-wrap nav:has(button:focus-visible) [data-framer-name="Bar"],
.tn-nav-wrap nav[data-menu-open="true"] [data-framer-name="Bar"] {
  background-color: var(--tn-cream) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.tn-nav-wrap nav button [data-framer-name="Dot"] {
  left: 1px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tn-nav-wrap nav button:hover [data-framer-name="Dot"],
.tn-nav-wrap nav button:focus-visible [data-framer-name="Dot"],
.tn-nav-wrap nav button[data-open="true"] [data-framer-name="Dot"] {
  opacity: 1;
  transform: scale(1);
}

[data-tn-dropdown] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s !important;
}

nav button:hover > [data-tn-dropdown],
nav button:focus-visible > [data-tn-dropdown],
nav button[data-open="true"] > [data-tn-dropdown] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease !important;
}

.tn-nav-wrap nav,
.tn-nav-wrap [data-framer-name="Bar"] {
  overflow: visible !important;
}

/* --------------------------------------------------------------------------
   Fixed daily digest prompt
   -------------------------------------------------------------------------- */
.tn-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
}

.tn-fab--mobile { display: none; }

.tn-fab__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 256px;
  padding: 0;
  border: 1px solid rgba(255, 252, 244, 0.5);
  border-radius: 12px;
  background-color: rgba(223, 238, 214, 0.85);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  color: var(--tn-ink);
  font-family: var(--tn-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.3s ease;
}

.tn-fab--desktop .tn-fab__button {
  height: 76px;
  padding: 12px 20px;
}

.tn-fab--mobile .tn-fab__button {
  height: 48px;
  padding: 0 16px;
}

.tn-fab__button:hover {
  background-color: rgba(223, 238, 214, 0.96);
}

.tn-fab__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tn-fab__eyebrow {
  font-family: var(--tn-serif);
  font-size: 9px;
  line-height: 17.7px;
  white-space: nowrap;
}

.tn-fab__title {
  font-family: var(--tn-sans);
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}

.tn-fab__disc {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0.5px solid rgba(17, 17, 17, 0.35);
  border-radius: 50%;
}

.tn-fab__disc img {
  width: 16px;
  height: 16px;
  display: block;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.tn-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  background: var(--tn-cream);
  color: var(--tn-ink);
  font-family: var(--tn-sans);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.tn-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tn-drawer__head {
  position: relative;
  height: 64px;
  padding: 0 20px;
}

.tn-drawer__logo {
  position: absolute;
  left: 28px;
  top: 16px;
  display: block;
  width: 75px;
  height: 17px;
  background: var(--tn-ink);
  -webkit-mask: url("../assets/images/aicenturys-logo.svg") center / cover no-repeat;
  mask: url("../assets/images/aicenturys-logo.svg") center / cover no-repeat;
}

.tn-drawer__close {
  position: absolute;
  right: 20px;
  top: 8px;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tn-drawer__close span {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--tn-ink);
  border-radius: 2px;
}

.tn-drawer__close span:first-child { transform: rotate(45deg); }
.tn-drawer__close span:last-child { transform: rotate(-45deg); }

.tn-drawer__body { padding: 17px 20px 24px; }

.tn-drawer__group { border-bottom: 0; }

.tn-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  margin: 0 0 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tn-ink);
  font-family: var(--tn-sans);
  font-size: 18px;
  line-height: 30px;
  text-align: left;
  cursor: pointer;
}

.tn-drawer__plus {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
}

.tn-drawer__plus::before,
.tn-drawer__plus::after {
  content: "";
  position: absolute;
  background: var(--tn-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tn-drawer__plus::before {
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
}

.tn-drawer__plus::after {
  top: 0; bottom: 0; left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
}

.tn-drawer__row[aria-expanded="true"] .tn-drawer__plus::after {
  transform: scaleY(0);
  opacity: 0;
}

.tn-drawer__links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding-bottom 0.32s ease;
}

.tn-drawer__links > a {
  display: block;
  color: var(--tn-ink);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tn-drawer__links > a + a { margin-top: 12px; }

.tn-drawer__row[aria-expanded="true"] + .tn-drawer__links {
  max-height: 320px;
  padding-bottom: 18px;
}

.tn-drawer__row[aria-expanded="true"] + .tn-drawer__links > a {
  opacity: 1;
}

.tn-drawer__row[aria-expanded="true"] + .tn-drawer__links > a:first-child {
  margin-top: 0;
}

.tn-drawer__group:last-of-type .tn-drawer__row { margin-bottom: 33px; }

.tn-drawer__signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 252, 244, 0.5);
  border-radius: 12px;
  background-color: rgba(223, 238, 214, 0.85);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  color: var(--tn-ink);
  font-family: var(--tn-serif);
  font-size: 9px;
  line-height: 17.7px;
  text-align: left;
  cursor: pointer;
}

.tn-drawer__signup-disc {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0.5px solid rgba(17, 17, 17, 0.35);
  border-radius: 50%;
}

.tn-drawer__signup-disc img {
  width: 16px;
  height: 16px;
  display: block;
}

body.tn-menu-open { overflow: hidden; }

body.tn-menu-open .tn-menu-line:first-of-type {
  transform: translateY(2.5px) rotate(45deg) !important;
}

body.tn-menu-open .tn-menu-line:last-of-type {
  transform: translateY(-2.5px) rotate(-45deg) !important;
}

/* --------------------------------------------------------------------------
   Hover details
   -------------------------------------------------------------------------- */
[data-framer-name="Default"]:hover [data-framer-name="Underline"] {
  transform: scaleX(1) !important;
}

[data-framer-name="Underline"] {
  transform-origin: 0 50%;
  transition: transform 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .tn-fab--desktop { display: none; }
  .tn-fab--mobile { display: block; }
  .tn-drawer { display: block; }
}

@media (min-width: 1200px) {
  .tn-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-framer-name="Slides"] > [data-framer-name="Carousel Slide"],
  [data-tn-dropdown],
  .tn-drawer,
  .tn-fab__button {
    transition: none !important;
  }
  [data-framer-name="Carousel Slide"] [data-framer-name^="Position"].is-active::after {
    animation: none;
    transform: translateX(0);
  }
}


/* the live site injects its own digest prompt at runtime; the rendered
   snapshots of a few legacy posts already contain it, so hide the duplicate */
.framer-170y6n6-container,
.framer-1rd5uq9-container {
  display: none !important;
}


/* --------------------------------------------------------------------------
   Official full-colour aicenturys logo
   The exported Framer site used a monochrome CSS mask. The official logo is a
   full-colour PNG, so use it as a background image and multiply the white
   background into the cream navigation/footer surfaces.
   -------------------------------------------------------------------------- */
.tn-nav-wrap a[data-framer-name="Logo"],
[data-framer-name="Footer"] a[data-framer-name="Logo"] {
  background: url("/assets/images/aicenturys-logo.png") left center / contain no-repeat !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.tn-nav-wrap a[data-framer-name="Logo"] {
  width: 150px !important;
  height: 34px !important;
}

.tn-drawer__logo {
  width: 120px;
  height: 27px;
  background: url("../assets/images/aicenturys-logo.png") left center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

@media (max-width: 1199.98px) {
  .tn-nav-wrap a[data-framer-name="Logo"] {
    width: 120px !important;
    height: 27px !important;
  }
}


/* --------------------------------------------------------------------------
   Document-driven updates: News, Contact, Products
   -------------------------------------------------------------------------- */
.tn-nav-link {
  display: flex;
  align-items: center;
  flex: none;
  padding: 10px;
  color: var(--tn-ink);
  font-family: var(--tn-sans);
  font-size: 13px;
  line-height: 19px;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.18s ease;
}
.tn-nav-link:hover { opacity: 0.65; }

.tn-menu-sep {
  flex: none;
  width: 100%;
  height: 1px;
  margin: 2px 0;
  background: rgba(17, 17, 17, 0.15);
}

.tn-footer-contact {
  width: 100%;
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}
.tn-footer-contact__title {
  font-family: var(--tn-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--tn-ink);
}
.tn-footer-contact__body {
  font-family: var(--tn-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--tn-ink);
}

.tn-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: var(--tn-ink);
}
.tn-footer-col__title {
  font-family: var(--tn-sans);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.01em;
}
.tn-footer-col__links a {
  display: block;
  font-family: var(--tn-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--tn-ink);
  text-decoration: none;
}
.tn-footer-col__links a:hover { opacity: 0.65; }

.tn-drawer__row--link {
  justify-content: flex-start;
  text-decoration: none;
}

.tn-home-programs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.tn-home-programs [data-framer-name="Divider"] { display: none !important; }

@media (max-width: 1199.98px) {
  .tn-footer-contact { padding: 40px 24px; }
  .tn-footer-contact__title { font-size: 22px; }
}

/* News page */
.tn-news-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}
.tn-news-page__eyebrow {
  margin: 0 0 18px;
  font-family: var(--tn-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-ink);
}
.tn-news-page h1 {
  margin: 0 0 24px;
  font-family: var(--tn-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  color: var(--tn-ink);
}
.tn-news-page__intro {
  max-width: 760px;
  margin: 0 0 40px;
  font-family: var(--tn-sans);
  font-size: 18px;
  line-height: 28px;
  color: var(--tn-ink);
}
.tn-news-widget {
  width: 100%;
  min-height: 820px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
}
.tn-news-widget .tradingview-widget-container,
.tn-news-widget .tradingview-widget-container__widget {
  height: 820px;
}
@media (max-width: 1199.98px) {
  .tn-news-page { padding: 100px 20px 60px; }
  .tn-news-page h1 { font-size: 40px; }
  .tn-news-widget, .tn-news-widget .tradingview-widget-container, .tn-news-widget .tradingview-widget-container__widget { height: 720px; min-height: 720px; }
}

/* Product pages */
.tn-product-page { padding-top: 120px; }
.tn-product-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 40px;
}
.tn-product-head__eyebrow {
  margin: 0 0 14px;
  font-family: var(--tn-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tn-product-head h1 {
  margin: 0 0 18px;
  font-family: var(--tn-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.1;
}
.tn-product-head p {
  max-width: 780px;
  margin: 0;
  font-family: var(--tn-sans);
  font-size: 18px;
  line-height: 28px;
}
.tn-product-frame {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
  background: #ffffff;
}
@media (max-width: 1199.98px) {
  .tn-product-page { padding-top: 90px; }
  .tn-product-head { padding: 0 20px 30px; }
  .tn-product-head h1 { font-size: 40px; }
  .tn-product-head p { font-size: 16px; line-height: 24px; }
}


/* Live news grid */
.tn-news-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 17, 17, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.12);
}
.tn-news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 26px;
  background: #ffffff;
}
.tn-news-card--featured { grid-column: span 2; }
.tn-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tn-sans);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.tn-news-card__source { color: #111111; font-weight: 700; }
.tn-news-card h3 {
  margin: 0;
  font-family: var(--tn-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.22;
}
.tn-news-card--featured h3 { font-size: 32px; }
.tn-news-card h3 a { color: #111111; text-decoration: none; }
.tn-news-card h3 a:hover { text-decoration: underline; }
.tn-news-card p {
  margin: 0;
  font-family: var(--tn-sans);
  font-size: 14px;
  line-height: 21px;
  color: #4a4a4a;
}
.tn-news-card__link {
  margin-top: auto;
  font-family: var(--tn-sans);
  font-size: 12px;
  line-height: 18px;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tn-news-status, .tn-news-updated {
  margin: 16px 0 0;
  font-family: var(--tn-sans);
  font-size: 12px;
  line-height: 18px;
  color: #6b6b6b;
}
.tn-news-status.is-error { color: #8a2b2b; }
.tn-news-updated { margin-top: 10px; text-align: right; }
@media (max-width: 1199.98px) {
  .tn-news-feed { grid-template-columns: 1fr; }
  .tn-news-card--featured { grid-column: span 1; }
  .tn-news-card--featured h3 { font-size: 26px; }
  .tn-news-card { min-height: 0; padding: 20px; }
}


/* product page section must span the page, not the narrow legal column */
.tn-product-section {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
}


/* prevent long headlines from widening the mobile news column */
.tn-news-page { box-sizing: border-box; }
.tn-news-card { min-width: 0; }
.tn-news-card h3, .tn-news-card p { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 1199.98px) {
  .tn-news-feed { grid-template-columns: minmax(0, 1fr); }
}


@media (max-width: 1199.98px) {
  .tn-news-page { width: 100%; max-width: 100%; overflow: hidden; }
  .tn-news-feed { width: 100%; max-width: 100%; }
  .tn-news-card { width: 100%; box-sizing: border-box; }
}


.tn-news-section {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
}


.tn-news-section {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  flex: 0 0 100vw !important;
  overflow: hidden;
}


@media (max-width: 1199.98px) {
  .tn-news-feed { width: calc(100vw - 40px) !important; max-width: calc(100vw - 40px) !important; margin: 0 auto; }
  .tn-news-card { width: 100% !important; box-sizing: border-box; }
}


body.tn-wide-page .framer-1pfsry0 {
  width: 100% !important;
  max-width: 100% !important;
}
body.tn-wide-page .framer-1pfsry0 > .ssr-variant {
  width: 100% !important;
}


@media (max-width: 1199.98px) {
  .tn-news-feed .tn-news-card--featured { grid-column: span 1 !important; }
}


.tn-news-card, .tn-news-card h3, .tn-news-card p, .tn-news-card a {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}


@media (max-width: 1199.98px) {
  .tn-news-card h3, .tn-news-card--featured h3 { font-size: 22px !important; line-height: 1.28 !important; }
  .tn-news-card p { font-size: 13px !important; line-height: 20px !important; }
  .tn-news-feed .tn-news-card { padding: 18px !important; }
}


@media (max-width: 1199.98px) {
  .tn-news-feed .tn-news-card,
  .tn-news-feed .tn-news-card--featured {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box !important;
    padding: 14px !important;
  }
  .tn-news-card h3, .tn-news-card--featured h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
  }
}
