/*
Theme Name: Tomorrow World – Kadence Child
Template: kadence
Version: 1.1.0
*/
@font-face{font-family:"Jun-Regular";src:url(/wp-content/uploads/t166-jun-regular.woff2) format("woff2");font-weight:normal;font-style:normal}
@font-face{font-family:"HostGrotesk-Regular";src:url(https://cdn.jsdelivr.net/npm/@fontsource/host-grotesk/files/host-grotesk-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"HostGrotesk-SemiBold";src:url(https://cdn.jsdelivr.net/npm/@fontsource/host-grotesk/files/host-grotesk-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"HostGrotesk-Bold";src:url(https://cdn.jsdelivr.net/npm/@fontsource/host-grotesk/files/host-grotesk-latin-700-normal.woff2) format("woff2")}
:root{--tw-navy:#003d69;--tw-ink:#00416b;--tw-teal:#00adab;--tw-gold:#eac4a1;--tw-dark-teal:#034a4d;--tw-cream:#faf8f5}
body.tw-theme-page{--global-palette1:#00adab;--global-palette2:#034a4d;--global-palette3:#003d69;--global-palette4:#00416b;--global-palette5:#666;--global-palette6:#888;--global-palette7:#faf8f5;--global-palette8:#fff;--global-palette9:#fff;background:#fff;color:#00416b;font:16px/1.5 "HostGrotesk-Regular",Arial,sans-serif}
.tw-theme-page h1,.tw-theme-page h2,.tw-theme-page h3,.tw-theme-page h4,.tw-theme-page h5,.tw-theme-page h6{font-family:"Jun-Regular",Georgia,serif;font-weight:400;color:#00adab}
.tw-theme-page h1{font-size:clamp(36px,4vw,60px);line-height:1.1}
.tw-theme-page h2{font-size:clamp(28px,3vw,40px);line-height:1.2}
.tw-theme-page .entry-content{font-family:"Jun-Regular",Georgia,serif;font-size:16px;line-height:1.5;color:#00416b}
.tw-theme-page .content-area{margin-top:0;margin-bottom:0;padding:clamp(50px,7vw,110px) 0}
.tw-theme-page .content-container{max-width:1280px}
.tw-theme-page .entry,.tw-theme-page .entry-hero{background:#fff;box-shadow:none;border-radius:0}
.tw-theme-page .entry-content a{color:#00adab}
.tw-theme-page .entry-content a:hover{color:#034a4d}
.tw-theme-page button,.tw-theme-page input,.tw-theme-page select,.tw-theme-page textarea{font-family:"HostGrotesk-Regular",Arial,sans-serif}
.tw-theme-page button,.tw-theme-page .button,.tw-theme-page input[type=submit],.tw-theme-page .wp-block-button__link{background:#eac4a1;color:#003d69;border:1px solid #eac4a1;border-radius:30px;padding:12px 24px}
.tw-theme-page button:hover,.tw-theme-page .button:hover,.tw-theme-page input[type=submit]:hover{background:#034a4d;color:#fff}
.tw-theme-page input:not([type=submit]):not([type=checkbox]):not([type=radio]),.tw-theme-page textarea,.tw-theme-page select{border:1px solid #d5dddF;background:#fff;color:#00416b;border-radius:0}
.tw-theme-page :focus-visible{outline:2px solid #00adab;outline-offset:4px}
.tw-header{position:sticky;top:0;z-index:999;background:#fff;width:100%;font-family:"HostGrotesk-Regular",Arial,sans-serif}
.admin-bar .tw-header{top:32px}
.tw-header-inner{height:var(--tw-desktop-header-height, 90px);padding:0 5%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.tw-logo img{display:block;width:auto;max-width:100%;height:55px}
.tw-nav{display:flex;gap:20px;align-items:center}
.tw-nav a{font-size:16px;line-height:1.5;color:#000;text-decoration:none}
.tw-nav a:hover{color:#034a4d}
.tw-footer{background:#fff;color:#666;font:16px/1.8 "HostGrotesk-Regular",Arial,sans-serif}
.tw-footer *{box-sizing:border-box}
.tw-footer .wapper{width:min(1200px,100%);margin:0 auto;padding:0 16px}
.tw-footer .logo{margin-top:20px}
.tw-footer img{max-width:100%;height:auto;display:inline}
.tw-footer .iTxt{margin-top:2vw;font:16px/24px "Jun-Regular",Georgia,serif}
.tw-footer .iTxt p{padding:0;margin:0;line-height:24px}
.tw-footer .fff{color:#fff}
.tw-footer .mt35{margin-top:35px}
.tw-footer p{margin:0;padding:5px 0;line-height:1.8}
.tw-footer ul{margin:0;padding:0;list-style:none}
.tw-footer .disFlex{display:flex;flex-wrap:wrap}
.tw-footer .jusCet{justify-content:center}
.tw-footer .index8{padding:10vw 0;background-color:#003d69;background:#003d69;background-size:cover;margin-bottom:65px}
.tw-footer .index8 .wapper{max-width:600px;text-align:center}
.tw-footer .index8 .iTxt2{font-family:"OldScientificIllustration";font-size:46px}
.tw-footer .index9{width:100%;border-top:1px solid #ddd;padding:20px 0;text-align:center}
.tw-footer .i9Links ul li{margin:0 15px;position:relative}
.tw-footer .i9Links ul li a{color:var(--tiffany-blue);font-size:18px;display:block;padding:10px 0}
.tw-footer .i9Links ul li a img{width:30px;height:30px;object-fit:contain}
.tw-footer .i9Links ul li .imgTop{position:absolute;left:50%;transform:translateX(-50%);width:120px;background:#fff;padding:10px;bottom:50px;opacity:0;visibility:visible;box-shadow:var(--main-shadow)}
.tw-footer .i9Links ul li .imgTop img{width:100%}
.tw-footer .i9Links ul li.on:hover .imgTop{opacity:1;visibility:visible}
.tw-footer .footer{width:100%;border-top:1px solid #ddd;padding:20px 0;text-align:center}
.tw-footer .footer p{padding:0}
.tw-footer .index8 .iTxt2{font-family:"OldScientificIllustration","Times New Roman",serif;font-weight:400}
.tw-footer .i9Links li:focus-within .imgTop{opacity:1}
@media(max-width:980px){.tw-header-inner{height:70px;padding:0 10px;gap:10px}.tw-logo img{height:35px}.tw-nav{gap:10px}.tw-nav a{font-size:14px}.tw-footer .index8{padding:60px 16px}.tw-footer .index8 .iTxt2{font-size:36px}}
@media(max-width:782px){.admin-bar .tw-header{top:46px}}
@media(max-width:420px){.tw-logo img{height:auto;width:150px}.tw-nav{gap:9px}.tw-nav a{font-size:12px}.tw-footer .i9Links ul li{margin:0 10px}}

/* Project directory and details */
.tw-projects, .tw-project-detail { max-width: 1120px; margin-inline: auto; }
.tw-project-intro { max-width: 68ch; font-size: 20px; }

.tw-theme-page #primary.content-area:has(.tw-project-detail, .tw-projects) {
  padding-top: clamp(24px, 3vw, 44px);
}

.tw-theme-page #primary:has(.tw-project-detail, .tw-projects) .entry-content-wrap {
  padding-top: 0;
}

.tw-project-detail > .tw-project-intro:first-child {
  margin-block-start: 0;
}
.tw-project-jump, .tw-project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tw-project-jump { margin: 28px 0 40px; }
.tw-project-detail .tw-project-actions { margin-block-start: 24px; }
.tw-projects section { margin-block: 36px; scroll-margin-top: 120px; }
.tw-projects > section:first-child { margin-block-start: 0; }
.tw-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .tw-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .tw-project-grid { grid-template-columns: minmax(0, 1fr); }
}
.tw-project-card { display: flex; flex-direction: column; background: #faf8f5; border-top: 3px solid #eac4a1; padding: clamp(20px, 3vw, 32px); }
.tw-project-card h3 { font-size: 26px; line-height: 1.18; }
.tw-project-card h3 a, .tw-projects .tw-project-link, .tw-project-detail .tw-back, .tw-project-jump a { color: #034a4d; }
.tw-project-card dl, .tw-project-facts dl { margin: 16px 0 20px; }
.tw-project-card dl > div { border-bottom: 1px solid #e1dad2; padding-block: 8px; }
.tw-project-card dt, .tw-project-facts dt, .tw-project-type { font: 14px/1.5 "HostGrotesk-SemiBold", Arial, sans-serif; color: #034a4d; }
.tw-project-type { margin: 20px 0 4px; text-transform: uppercase; letter-spacing: .09em; }
.tw-project-card dd, .tw-project-facts dd { margin: 3px 0 0; }
.tw-project-card .tw-project-link { align-self: flex-start; margin-top: auto; }
.tw-project-photo { display: block; width: 100%; max-height: 520px; object-fit: cover; margin: 24px 0; }
.tw-project-facts { margin: 32px 0; padding: clamp(18px, 4vw, 40px); background: #faf8f5; border-top: 3px solid #eac4a1; }
.tw-project-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 20px; }
.tw-theme-page .entry-content .tw-project-detail a.tw-project-cta { display: inline-block; padding: 12px 22px; border-radius: 30px; background: #eac4a1; color: #003d69; text-decoration: none; }
.tw-theme-page .entry-content .tw-project-detail a.tw-project-cta:is(:hover, :focus-visible, :active) { background: #034a4d; color: #fff; }
@media (max-width: 560px) {
  .tw-header-inner { flex-direction: column; height: auto; padding: 10px; gap: 6px; }
  .tw-logo img { height: 32px; width: auto; }
  .tw-nav { justify-content: center; gap: 12px; flex-wrap: wrap; }
  .tw-nav a { font-size: 12px; padding-block: 5px; }
  body.tw-custom-page .header .hLinks { max-width: 205px; justify-content: flex-end; gap: 4px 9px; }
  body.tw-custom-page .header .hLinks a { margin: 0; font-size: 12px; }
}

.tw-project-card-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.tw-project-image-credit { font: 13px/1.5 "HostGrotesk-Regular", Arial, sans-serif; }

/* Single posts sit closer to the header. Keep Kadence's sticky sidebar below it. */
.tw-theme-page.single-post #primary.content-area {
  padding-top: clamp(20px, 2.5vw, 36px);
}
.tw-theme-page.single-post .single-entry > .entry-content-wrap {
  padding-top: 0;
}
@media (min-width: 1025px) {
  .tw-theme-page {
    --tw-desktop-header-height: 90px;
    --tw-sticky-sidebar-top: calc(var(--tw-desktop-header-height) + var(--wp-admin--admin-bar--height, 0px) + 20px);
  }
  .tw-theme-page.has-sticky-sidebar #secondary .sidebar-inner-wrap,
  .tw-theme-page.has-sticky-sidebar-widget #secondary .widget:last-child {
    top: var(--tw-sticky-sidebar-top) !important;
    max-height: calc(100dvh - var(--tw-sticky-sidebar-top) - 20px) !important;
  }
}

/* Restore the Kadence button styling after the imported HTML's reset. */
.tw-custom-page #kt-scroll-up,
.tw-custom-page #kt-scroll-up-reader {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--tw-teal, #00adab);
  border: 0;
  color: #fff;
}

.tw-custom-page #kt-scroll-up,
.tw-custom-page #kt-scroll-up-reader:focus {
  width: 35px;
  height: 35px;
}

.tw-custom-page :is(#kt-scroll-up, #kt-scroll-up-reader) svg {
  width: 19px;
  height: 19px;
}

.tw-custom-page :is(#kt-scroll-up, #kt-scroll-up-reader):is(:hover, :focus-visible) {
  color: #fff;
  background: #00888a;
}

.tw-custom-page {
  --tw-floating-icons-inset: 30px;
}

.tw-custom-page :is(.banAudioBtn, .ryi_icon) {
  /* The imported CSS gives each button its own offset; keep them on one vertical line. */
  right: var(--tw-floating-icons-inset) !important;
}

.tw-custom-page:has(.banAudioBtn, .ryi_icon) :is(#kt-scroll-up, #kt-scroll-up-reader).scroll-up-side-right {
  /* Center the 35px square above the 50px circles. */
  right: calc(var(--tw-floating-icons-inset) + (50px - 35px) / 2);
  bottom: 165px;
}

@media (max-width: 980px) {
  .tw-custom-page {
    --tw-floating-icons-inset: 10px;
  }
}

/* The Canvas scroll target is an empty anchor, not the Kadence page wrapper. */
body.tw-custom-page.elementor-template-canvas.footer-on-bottom #wrapper:empty {
  display: block;
  min-height: 0;
}

/* Allow for the fixed header, then start the registration form nearby. */
.tw-custom-page.page-id-85 .headInner .hHei {
  height: 90px;
}

.tw-custom-page.page-id-85 .register {
  /* The imported .register rule has ID-level specificity. */
  padding-top: 24px !important;
}

@media (max-width: 980px) {
  .tw-custom-page.page-id-85 .headInner .hHei {
    height: 70px;
  }
}

/* ---------- Contact page (same card style as the project cards) ---------- */
.tw-contact { max-width: 720px; margin-inline: auto; }
.tw-contact-intro { max-width: 60ch; font-size: 20px; margin-block: 0 32px; }
.tw-contact-card { background: #faf8f5; border-top: 3px solid #eac4a1; padding: clamp(24px, 4vw, 44px); }
.tw-contact-card h2 { margin: 0 0 16px; }
.tw-contact-card p { margin: 0; }
.tw-theme-page .entry-content .tw-contact a.tw-contact-email {
  display: inline-block; padding: 14px 26px; border-radius: 30px; background: #eac4a1; color: #003d69;
  font: 20px/1.3 "HostGrotesk-SemiBold", Arial, sans-serif; text-decoration: none; word-break: break-all;
}
.tw-theme-page .entry-content .tw-contact a.tw-contact-email:is(:hover, :focus-visible, :active) { background: #034a4d; color: #fff; }
.tw-contact-note { margin-top: 24px !important; font-size: 16px; }
.tw-theme-page .entry-content .tw-contact-note a { color: #034a4d; text-decoration: underline; }
@media (max-width: 560px) { .tw-contact-intro { font-size: 18px; } .tw-theme-page .entry-content .tw-contact a.tw-contact-email { font-size: 17px; padding: 12px 20px; } }

/* ---------- Mobile menu (hamburger) for native and imported headers ---------- */
.tw-burger { display: none; }
@media (max-width: 980px) {
  .tw-burger {
    display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 46px; height: 46px; margin: 0 0 0 auto; padding: 0 !important; cursor: pointer;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
  .tw-burger span {
    display: block; width: 26px; height: 2px; border-radius: 2px; background: #003d69;
    transition: transform .25s ease, opacity .2s ease;
  }
  .tw-burger:focus-visible { outline: 2px solid #007c7a !important; outline-offset: 2px; }
  [class*="tw-open"] .tw-burger span:nth-child(1), .tw-open .tw-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .tw-open .tw-burger span:nth-child(2) { opacity: 0; }
  .tw-open .tw-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Native (Kadence) pages */
  .tw-header .tw-header-inner { flex-direction: row !important; height: 64px !important; padding: 0 12px 0 16px !important; gap: 12px !important; position: relative; }
  .tw-header .tw-logo img { height: 38px !important; width: auto !important; }
  .tw-header .tw-nav {
    display: none !important; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important; flex-wrap: nowrap !important;
    background: #fff; border-top: 1px solid #e4e8eb; box-shadow: 0 14px 24px rgba(0, 0, 0, .1);
  }
  .tw-header.tw-open .tw-nav { display: flex !important; }
  .tw-header .tw-nav a { font-size: 17px !important; padding: 15px 20px !important; border-bottom: 1px solid #eef1f3; color: #003d69; }
  .tw-header .tw-nav a:last-child { border-bottom: 0; }

  /* Imported (custom) pages */
  body.tw-custom-page .header .headList { height: 70px; padding: 0 8px 0 12px !important; }
  body.tw-custom-page .header .hRight { margin-left: auto; }
  body.tw-custom-page .header .hLinks {
    display: none !important; position: absolute; left: 0; right: 0; top: 70px; max-width: none !important;
    flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
    background: #fff; border-top: 1px solid #e4e8eb; box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
  }
  body.tw-custom-page .header.tw-open .hLinks { display: flex !important; }
  body.tw-custom-page .header .hLinks a {
    display: block !important; margin: 0 !important; padding: 15px 20px !important; font-size: 17px !important;
    color: #003d69 !important; border-bottom: 1px solid #eef1f3;
  }
  body.tw-custom-page .header .hLinks a:last-child { border-bottom: 0; }
  body.tw-custom-page .header .tw-burger span { background: #fff; }
  body.tw-custom-page .header.fixed .tw-burger span,
  body.tw-custom-page .header.tw-open .tw-burger span,
  body.tw-custom-page .headInner .header .tw-burger span { background: #003d69; }
  body.tw-custom-page .header.tw-open { background: #fff !important; }
  body.tw-custom-page .header.tw-open .headList .logo .img1 { display: none !important; }
  body.tw-custom-page .header.tw-open .headList .logo .img2 { display: block !important; }
}

.tw-custom-page .registerWarp .left .img img { width: min(260px, 70vw) !important; height: auto !important; }

/* The hidden control must not intercept clicks on nearby floating icons. */
.tw-custom-page #kt-scroll-up:not(.scroll-visible) {
  pointer-events: none;
}
