/* City of Trees Triathlon Club — styles for the Squarespace 7.1 site.
   Loaded from GitHub Pages via Code Injection (see snippets/header-injection.html). */

:root {
  --ctoc-green: #1F4D3A;
  --ctoc-green-deep: #143427;
  --ctoc-blue: #2A6F97;
  --ctoc-orange: #F28C28;
  --ctoc-cream: #F7F4EC;
  --ctoc-ink: #222222;
  --ctoc-muted: #5b625e;
  --ctoc-line: rgba(31, 77, 58, .14);
  --ctoc-radius: 14px;
  --ctoc-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ctoc-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ctoc-gutter: clamp(18px, 4vw, 40px);
}

/* =========================================================
   Squarespace header: solid bar, in the normal flow (no overlap)
   ========================================================= */
#header, header#header, .header {
  position: relative !important;
  background: var(--ctoc-cream) !important;
  border-bottom: 1px solid var(--ctoc-line);
}
#header .header-announcement-bar-wrapper { position: relative !important; }
#header .header-inner { padding-top: 10px !important; padding-bottom: 10px !important; min-height: 0 !important; }
#header .header-title-logo img,
#header .header-title-logo a img { max-height: 58px !important; width: auto !important; height: auto !important; }
#header .header-title-logo a, #header .header-title-text a { color: var(--ctoc-green) !important; }
#header .header-nav-item a,
#header .header-actions a,
#header .header-menu-nav-item a {
  color: var(--ctoc-green) !important;
  font-family: var(--ctoc-head) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}
#header .header-nav-item--active a { box-shadow: inset 0 -3px 0 var(--ctoc-orange); }
#header .top-bun, #header .patty, #header .bottom-bun { background: var(--ctoc-green) !important; }
#header svg, #header .header-actions svg { color: var(--ctoc-green) !important; fill: var(--ctoc-green) !important; }

/* =========================================================
   Base
   ========================================================= */
#ctoc-home, #ctoc-workouts, #ctoc-next, #ctoc-site-footer {
  font-family: var(--ctoc-body);
  color: var(--ctoc-ink);
  -webkit-font-smoothing: antialiased;
}
#ctoc-home *, #ctoc-workouts *, #ctoc-site-footer * { box-sizing: border-box; }
#ctoc-home h1, #ctoc-home h2, #ctoc-home h3, #ctoc-home h4,
#ctoc-workouts h1, #ctoc-workouts h2, #ctoc-workouts h3, #ctoc-workouts h4,
#ctoc-site-footer h3 {
  font-family: var(--ctoc-head);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
}
#ctoc-home p, #ctoc-workouts p, #ctoc-site-footer p { margin: 0; line-height: 1.6; }
#ctoc-home img, #ctoc-site-footer img { max-width: 100%; }

.ctoc-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--ctoc-gutter); }
.ctoc-sec { padding: clamp(44px, 7vw, 92px) 0; }
.ctoc-sec--tint { background: var(--ctoc-cream); }
.ctoc-eyebrow {
  display: inline-block; font-family: var(--ctoc-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ctoc-orange); margin-bottom: 10px;
}
.ctoc-title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--ctoc-green); }
.ctoc-lede { color: var(--ctoc-muted); font-size: 1.08rem; max-width: 640px; margin-top: 14px !important; }
.ctoc-sechead { margin-bottom: clamp(24px, 4vw, 40px); }

/* Buttons */
.ctoc-btn {
  display: inline-block; font-family: var(--ctoc-head); font-weight: 700; font-size: 1.2rem;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none !important; line-height: 1;
  padding: .85em 1.7em; border-radius: 999px; border: 2px solid var(--ctoc-orange);
  background: var(--ctoc-orange); color: #fff !important; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ctoc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.ctoc-btn--outline { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff !important; }
.ctoc-btn--outline:hover { background: rgba(255, 255, 255, .12); }
.ctoc-btn--dark { background: transparent; border-color: var(--ctoc-green); color: var(--ctoc-green) !important; }
.ctoc-btn--dark:hover { background: var(--ctoc-green); color: #fff !important; }

/* =========================================================
   Hero (blurred photo backdrop + cross-fading photo stack)
   ========================================================= */
html { scroll-behavior: smooth; }
.ctoc-hero { position: relative; overflow: hidden; color: #fff; background: var(--ctoc-green-deep); isolation: isolate; }
.ctoc-hero__bg { position: absolute; inset: -40px; z-index: -2; }
.ctoc-hero__bgimg {
  position: absolute; inset: 0; background-size: cover; background-position: 50% 25%; filter: blur(34px) saturate(1.15);
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 8s ease;
}
.ctoc-hero__bgimg.is-active { opacity: .55; transform: scale(1.02); }
.ctoc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(42, 111, 151, .55), transparent 62%),
    linear-gradient(160deg, rgba(31, 77, 58, .92) 0%, rgba(20, 52, 39, .94) 70%);
}
.ctoc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; opacity: .1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='54' viewBox='0 0 120 54'><g fill='%23F7F4EC'><polygon points='14,54 14,40 6,40 14,26 8,26 14,14 20,26 14,26 22,40 14,40'/><polygon points='52,54 52,34 40,34 52,14 44,14 52,0 60,14 52,14 64,34 52,34'/><polygon points='92,54 92,42 84,42 92,28 87,28 92,18 97,28 92,28 100,42 92,42'/></g></svg>") repeat-x bottom left / 120px 54px;
}
.ctoc-hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(28px, 5vw, 72px); padding: clamp(44px, 8vw, 100px) 0 clamp(70px, 10vw, 120px);
}
.ctoc-hero .ctoc-eyebrow { color: var(--ctoc-orange); }
#ctoc-home .ctoc-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.2rem); color: #fff; margin-bottom: .3em; }
#ctoc-home .ctoc-hero h1 span { color: var(--ctoc-orange); }
.ctoc-hero__text { max-width: 540px; font-size: clamp(1.02rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .9); margin-bottom: 1.8em !important; }
.ctoc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ctoc-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ctoc-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
  font-family: var(--ctoc-head); font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
}
.ctoc-chip svg { width: 20px; height: 20px; stroke: var(--ctoc-orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ctoc-hero__stack { justify-self: center; width: min(100%, 400px); position: relative; }
.ctoc-hero__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.ctoc-hero__frame::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 3px solid var(--ctoc-orange); border-radius: 18px; z-index: -1;
}
.ctoc-slide { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; opacity: 0; transform: scale(1.04) rotate(.6deg); transition: opacity .9s ease, transform 1.2s ease; }
.ctoc-slide.is-active { opacity: 1; transform: none; }
.ctoc-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ctoc-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-family: var(--ctoc-head); font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase;
}
.ctoc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.ctoc-dot { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s ease, background .3s ease; }
.ctoc-dot[aria-current="true"] { width: 30px; background: var(--ctoc-orange); }

/* Ticker */
.ctoc-marquee { background: var(--ctoc-orange); color: var(--ctoc-green-deep); overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(0, 0, 0, .08); }
.ctoc-marquee__track { display: inline-flex; align-items: center; gap: 28px; padding: 12px 0; animation: ctocScroll 32s linear infinite; will-change: transform; }
.ctoc-marquee span { font-family: var(--ctoc-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; }
.ctoc-marquee i { width: 9px; height: 9px; background: var(--ctoc-green-deep); border-radius: 50%; display: inline-block; opacity: .7; }
@keyframes ctocScroll { to { transform: translateX(-25%); } }

/* =========================================================
   Cards (sessions)
   ========================================================= */
.ctoc-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ctoc-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--ctoc-line);
  border-radius: var(--ctoc-radius); padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ctoc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 52, 39, .12); }
.ctoc-card__date {
  flex: 0 0 66px; height: 74px; border-radius: 10px; background: var(--ctoc-green); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.ctoc-card[data-discipline="Run"] .ctoc-card__date { background: var(--ctoc-orange); }
.ctoc-card[data-discipline="Swim"] .ctoc-card__date { background: var(--ctoc-blue); }
.ctoc-card__mon { font-family: var(--ctoc-head); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.ctoc-card__day { font-family: var(--ctoc-head); font-size: 2.2rem; font-weight: 700; margin-top: 2px; }
.ctoc-card__wk { font-family: var(--ctoc-head); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ctoc-card__body { min-width: 0; flex: 1; }
.ctoc-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ctoc-blue); }
.ctoc-card__title { font-size: 1.7rem; color: var(--ctoc-ink); margin: 3px 0 6px !important; }
.ctoc-card__meta { font-size: .95rem; color: var(--ctoc-muted); line-height: 1.5; }
.ctoc-card__meta strong { color: var(--ctoc-ink); font-weight: 600; }
.ctoc-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.ctoc-card__links a { font-size: .88rem; font-weight: 600; color: var(--ctoc-blue) !important; text-decoration: none !important; border-bottom: 1px solid transparent; }
.ctoc-card__links a:hover { border-bottom-color: currentColor; }

.ctoc-next__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ctoc-next__head a { font-weight: 600; color: var(--ctoc-blue) !important; text-decoration: none !important; white-space: nowrap; }

/* Schedule page */
.ctoc-page { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.ctoc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.ctoc-filter {
  font-family: var(--ctoc-head); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45em 1.2em; border-radius: 999px; border: 2px solid var(--ctoc-green); background: transparent; color: var(--ctoc-green); cursor: pointer;
}
.ctoc-filter[aria-pressed="true"] { background: var(--ctoc-green); color: #fff; }
.ctoc-sample-note { background: #FFF4E0; border: 1px dashed var(--ctoc-orange); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px !important; font-size: .9rem; }
.ctoc-empty { padding: 28px; background: var(--ctoc-cream); border-radius: var(--ctoc-radius); text-align: center; color: var(--ctoc-muted); }
.ctoc-notes { margin-top: 40px; padding: 22px 24px; border-radius: var(--ctoc-radius); background: var(--ctoc-cream); border-left: 5px solid var(--ctoc-orange); }
.ctoc-notes h3 { font-size: 1.6rem; color: var(--ctoc-green); margin-bottom: 8px !important; }
.ctoc-notes ul { margin: 0; padding-left: 1.2em; line-height: 1.7; }

/* =========================================================
   Disciplines
   ========================================================= */
.ctoc-trio { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ctoc-trio__item { background: #fff; border: 1px solid var(--ctoc-line); border-radius: var(--ctoc-radius); padding: 26px 24px; position: relative; overflow: hidden; }
.ctoc-trio__item::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--ctoc-orange); }
.ctoc-trio__item[data-k="swim"]::before { background: var(--ctoc-blue); }
.ctoc-trio__item[data-k="bike"]::before { background: var(--ctoc-green); }
.ctoc-ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--ctoc-cream); display: grid; place-items: center; margin-bottom: 16px;
}
.ctoc-ico svg { width: 30px; height: 30px; stroke: var(--ctoc-green); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ctoc-trio__item h3 { font-size: 1.9rem; color: var(--ctoc-green); margin-bottom: 8px !important; }
.ctoc-trio__item p { color: var(--ctoc-muted); }

/* =========================================================
   About (split)
   ========================================================= */
.ctoc-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ctoc-about__photo { position: relative; }
.ctoc-about__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ctoc-radius); }
.ctoc-about__photo::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; right: -14px; bottom: -14px; z-index: -1; border-radius: var(--ctoc-radius); background: var(--ctoc-orange); opacity: .9;
}
.ctoc-about__body p { color: var(--ctoc-muted); font-size: 1.08rem; margin-top: 16px !important; }
.ctoc-about__body .ctoc-title { margin-bottom: 4px; }
.ctoc-about__by { font-family: var(--ctoc-head); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ctoc-green); margin-top: 22px !important; }

/* =========================================================
   Steps
   ========================================================= */
.ctoc-steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: ctocstep; }
.ctoc-step { position: relative; padding: 4px 4px 4px 0; counter-increment: ctocstep; }
.ctoc-step::before {
  content: counter(ctocstep, decimal-leading-zero); display: block; font-family: var(--ctoc-head); font-weight: 700; font-size: 4.2rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--ctoc-orange); margin-bottom: 8px;
}
.ctoc-step h3 { font-size: 1.8rem; color: var(--ctoc-green); margin-bottom: 8px !important; }
.ctoc-step p { color: var(--ctoc-muted); }

/* =========================================================
   Gallery
   ========================================================= */
.ctoc-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ctoc-photos figure { margin: 0; position: relative; border-radius: var(--ctoc-radius); overflow: hidden; background: var(--ctoc-green); }
.ctoc-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.ctoc-photos figure:hover img { transform: scale(1.04); }
.ctoc-photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; color: #fff; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68)); font-family: var(--ctoc-head); font-size: 1.6rem; letter-spacing: .05em;
}

/* Races list */
.ctoc-races { display: grid; gap: 12px; }
.ctoc-race { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #fff; border: 1px solid var(--ctoc-line); border-radius: var(--ctoc-radius); }
.ctoc-race__when { flex: 0 0 120px; font-family: var(--ctoc-head); font-size: 1.4rem; color: var(--ctoc-orange); text-transform: uppercase; letter-spacing: .05em; }
.ctoc-race__name { font-family: var(--ctoc-head); font-size: 1.6rem; text-transform: uppercase; color: var(--ctoc-green); }
.ctoc-race__meta { color: var(--ctoc-muted); font-size: .95rem; }
.ctoc-race a { margin-left: auto; font-weight: 600; color: var(--ctoc-blue) !important; text-decoration: none !important; white-space: nowrap; }

/* =========================================================
   CTA band
   ========================================================= */
.ctoc-cta { background: var(--ctoc-green); color: #fff; text-align: center; position: relative; overflow: hidden; }
.ctoc-cta__bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 30%; filter: grayscale(1); opacity: .2; }
.ctoc-cta::before {
  z-index: 0; content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -240px; background: rgba(42, 111, 151, .45);
}
.ctoc-cta .ctoc-wrap { position: relative; }
.ctoc-cta h2 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; margin-bottom: 14px !important; }
.ctoc-cta p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 28px !important; font-size: 1.1rem; }

/* =========================================================
   FAQ
   ========================================================= */
.ctoc-faq { max-width: 820px; }
.ctoc-faq details { border-bottom: 1px solid var(--ctoc-line); padding: 18px 2px; }
.ctoc-faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ctoc-faq summary::-webkit-details-marker { display: none; }
.ctoc-faq summary::after { content: "+"; color: var(--ctoc-orange); font-size: 1.8rem; line-height: 1; transition: transform .2s ease; }
.ctoc-faq details[open] summary::after { transform: rotate(45deg); }
.ctoc-faq details p { margin-top: 10px !important; color: var(--ctoc-muted); }

/* =========================================================
   Footer
   ========================================================= */
.ctoc-footer { background: var(--ctoc-green-deep); color: #fff; padding: clamp(40px, 6vw, 72px) 0 28px; margin-top: 0; }
.ctoc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ctoc-footer__brand img { width: min(100%, 330px); height: auto; display: block; margin-bottom: 14px; }
.ctoc-footer__brand p { color: rgba(255, 255, 255, .8); max-width: 340px; margin-bottom: 18px !important; }
.ctoc-footer h3 { font-size: 1.25rem; letter-spacing: .14em; color: var(--ctoc-orange); margin-bottom: 14px !important; }
.ctoc-footer ul { list-style: none; margin: 0; padding: 0; }
.ctoc-footer li { margin: 0 0 10px; }
.ctoc-footer li a { color: #fff !important; text-decoration: none !important; opacity: .88; }
.ctoc-footer li a:hover { opacity: 1; text-decoration: underline !important; }
.ctoc-footer small { display: block; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); }

/* Reveal on scroll */
.ctoc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ctoc-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ctoc-reveal { opacity: 1; transform: none; transition: none; }
  .ctoc-btn, .ctoc-card, .ctoc-photos img { transition: none; }
}

/* Squarespace form block polish (Join page) */
.sqs-block-form .form-button-wrapper input[type="submit"],
.sqs-block-form button[type="submit"] {
  font-family: var(--ctoc-head) !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase !important;
  background: var(--ctoc-orange) !important; border-color: var(--ctoc-orange) !important; color: #fff !important; border-radius: 999px !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .ctoc-about { grid-template-columns: 1fr; }
  .ctoc-about__photo { max-width: 360px; margin: 0 auto 8px; }
  .ctoc-footer__grid { grid-template-columns: 1fr 1fr; }
  .ctoc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ctoc-cards { grid-template-columns: 1fr; }
  .ctoc-race { flex-wrap: wrap; gap: 6px 14px; }
  .ctoc-race a { margin-left: 0; }
  .ctoc-next__head { flex-direction: column; align-items: flex-start; }
}


/* =========================================================
   v3 additions: quick tiles, countdown, news, spotlight, sponsors, video
   ========================================================= */
.ctoc-sec--tiles { padding-bottom: 0; padding-top: clamp(28px, 4vw, 48px); }
.ctoc-tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.ctoc-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 20px; background: #fff; border-radius: var(--ctoc-radius);
  border: 1px solid var(--ctoc-line); box-shadow: 0 12px 30px rgba(20, 52, 39, .12); text-decoration: none !important; color: var(--ctoc-ink) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ctoc-tile:hover { transform: translateY(-6px); border-color: var(--ctoc-orange); box-shadow: 0 20px 40px rgba(20, 52, 39, .2); }
.ctoc-tile .ctoc-ico { margin-bottom: 8px; transition: background .2s ease; }
.ctoc-tile:hover .ctoc-ico { background: var(--ctoc-orange); }
.ctoc-tile:hover .ctoc-ico svg { stroke: #fff; }
#ctoc-home .ctoc-tile h3 { font-size: 1.7rem; color: var(--ctoc-green); }
.ctoc-tile p { color: var(--ctoc-muted); font-size: .98rem; flex: 1; }
.ctoc-tile__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--ctoc-blue); }
.ctoc-tile__go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.ctoc-tile:hover .ctoc-tile__go svg { transform: translateX(5px); }

.ctoc-countdown {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 12px; background: var(--ctoc-green); color: #fff; margin-left: auto; margin-right: 20px;
}
.ctoc-countdown__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ctoc-countdown__time { font-family: var(--ctoc-head); font-size: 1.8rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ctoc-orange); line-height: 1.1; }
.ctoc-card__flag {
  display: inline-block; margin: 0 8px 4px 0; padding: 2px 9px; border-radius: 99px; background: var(--ctoc-orange); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle;
}

.ctoc-news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ctoc-newscard { background: #fff; border: 1px solid var(--ctoc-line); border-radius: var(--ctoc-radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.ctoc-newscard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 52, 39, .12); }
.ctoc-newscard__date { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ctoc-orange); }
#ctoc-home .ctoc-newscard h3 { font-size: 1.8rem; color: var(--ctoc-green); }
.ctoc-newscard p { color: var(--ctoc-muted); flex: 1; }
.ctoc-newscard a { font-weight: 600; color: var(--ctoc-blue) !important; text-decoration: none !important; }

.ctoc-members { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ctoc-member { text-align: center; }
.ctoc-member img, .ctoc-member__ph { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.ctoc-member__ph { display: grid; place-items: center; background: var(--ctoc-green); color: #fff; font-family: var(--ctoc-head); font-size: 3rem; }
#ctoc-home .ctoc-member h3 { font-size: 1.5rem; color: var(--ctoc-green); }
.ctoc-member p { color: var(--ctoc-muted); font-size: .95rem; }

.ctoc-sponsors { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; }
.ctoc-sponsors a, .ctoc-sponsors div { display: grid; place-items: center; height: 96px; padding: 16px; background: #fff; border: 1px solid var(--ctoc-line); border-radius: var(--ctoc-radius); transition: transform .2s ease; }
.ctoc-sponsors a:hover { transform: translateY(-3px); }
.ctoc-sponsors img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.ctoc-sponsors a:hover img { filter: none; opacity: 1; }

.ctoc-video { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: var(--ctoc-radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.ctoc-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* staggered reveal for grids */
.ctoc-tile.ctoc-reveal:nth-child(2) { transition-delay: .08s; }
.ctoc-tile.ctoc-reveal:nth-child(3) { transition-delay: .16s; }
.ctoc-tile.ctoc-reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ctoc-marquee__track { animation: none; }
  .ctoc-slide, .ctoc-hero__bgimg, .ctoc-tile, .ctoc-newscard { transition: none; }
}
@media (max-width: 860px) {
  .ctoc-hero__grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 90px; }
  .ctoc-hero__text { margin-left: auto; margin-right: auto; }
  .ctoc-hero__actions, .ctoc-hero__chips { justify-content: center; }
  .ctoc-hero__stack { width: min(74%, 320px); margin: 4px auto 6px; order: -1; }
  .ctoc-countdown { margin: 0; }
  .ctoc-next__head { flex-wrap: wrap; }
}

@media (max-width: 980px) { .ctoc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ctoc-tiles { grid-template-columns: 1fr; } }

/* =========================================================
   Content pages (data/pages/*.json)
   ========================================================= */
.ctoc-page--content { padding-bottom: 0; }
.ctoc-page--content > .ctoc-wrap > .ctoc-sechead { margin-bottom: 0; }
.ctoc-page--content .ctoc-sec { padding: clamp(32px, 5vw, 60px) 0; }
.ctoc-prose { max-width: 760px; }
.ctoc-prose p { color: var(--ctoc-muted); font-size: 1.1rem; margin-bottom: 16px !important; }
.ctoc-tablewrap { overflow-x: auto; border-radius: var(--ctoc-radius); border: 1px solid var(--ctoc-line); background: #fff; }
.ctoc-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.ctoc-table th { background: var(--ctoc-green); color: #fff; font-family: var(--ctoc-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; text-align: left; padding: 12px 16px; }
.ctoc-table td { padding: 14px 16px; border-top: 1px solid var(--ctoc-line); color: var(--ctoc-muted); }
.ctoc-table td:first-child { font-family: var(--ctoc-head); font-size: 1.4rem; text-transform: uppercase; color: var(--ctoc-green); }
.ctoc-note { color: var(--ctoc-muted); font-size: .92rem; margin-top: 12px !important; }
.ctoc-checks { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ctoc-check { background: #fff; border: 1px solid var(--ctoc-line); border-radius: var(--ctoc-radius); padding: 22px 24px; border-top: 5px solid var(--ctoc-orange); }
.ctoc-check h3 { font-size: 1.7rem; color: var(--ctoc-green); margin-bottom: 10px !important; }
.ctoc-check ul { list-style: none; margin: 0; padding: 0; }
.ctoc-check li { position: relative; padding: 7px 0 7px 28px; color: var(--ctoc-muted); }
.ctoc-check li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--ctoc-orange); border-bottom: 3px solid var(--ctoc-orange); transform: rotate(-45deg) scale(.9); }
@media (max-width: 520px) {
  .ctoc-table { min-width: 0; }
  .ctoc-table th, .ctoc-table td { padding: 10px 8px; font-size: .9rem; }
  .ctoc-table th { font-size: 1rem; }
  .ctoc-table td:first-child { font-size: 1.15rem; }
}
