/* TIMEPLUS TH home */
.home-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 72% 42%, #0d6b99 0, #014f77 42%, #013c5d 100%); }
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .34; background: linear-gradient(124deg, transparent 0 51%, rgba(255,255,255,.08) 51% 66%, transparent 66%), radial-gradient(circle at 9% 12%, rgba(130,216,255,.16), transparent 30%); }
.home-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr); align-items: center; gap: clamp(38px, 5vw, 80px); min-height: 0; padding-top: 76px; padding-bottom: 90px; }
.home-hero .eyebrow { color: #9ddfff; }
.home-hero .eyebrow::before { background: #9ddfff; }
.home-hero h1 { margin-top: 28px; font-weight: 700; font-size: clamp(46px, 5.6vw, 76px); line-height: 1.16; letter-spacing: -.035em; }
.home-hero h1 span { color: #9edfff; }
.home-hero__lead { max-width: 570px; margin-top: 26px; font-size: 18px; font-weight: 300; line-height: 1.85; color: rgba(255,255,255,.82); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.home-hero__actions .btn { box-shadow: 0 15px 36px rgba(0,24,41,.23); }
.home-hero__text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #d5f1ff; }
.home-hero__text-link:hover { color: #fff; }
.home-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 58px; font: 600 11px var(--en); letter-spacing: 2px; color: rgba(255,255,255,.62); }
.home-hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: #8ed9ff; }


.home-categories { padding: 94px 0 100px; background: #fff; }
.home-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.home-section-head h2 { margin-top: 14px; font-weight: 700; font-size: clamp(31px, 3.5vw, 46px); line-height: 1.25; color: var(--ink); }
.home-section-head p:not(.eyebrow) { max-width: 560px; margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.home-inline-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--sky); white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--blue); }
.home-inline-link:hover { color: var(--sky); }
.home-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.home-cat { position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; padding: 24px 26px; border: 1px solid #dde9f0; border-radius: 22px; background: #f3f8fb; color: var(--blue); transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-cat::after { content: ""; position: absolute; right: -30px; bottom: -72px; width: 170px; height: 170px; border: 24px solid currentColor; border-radius: 50%; opacity: .055; }
.home-cat:hover { transform: translateY(-4px); border-color: #b8dced; box-shadow: 0 16px 34px rgba(1,79,119,.1); }
.home-cat__top { display: flex; justify-content: space-between; align-items: flex-start; }
.home-cat__top small { font: 700 13px var(--en); letter-spacing: 1px; opacity: .56; }
.home-cat__top b { font: 400 22px var(--en); line-height: 1; }
.home-cat__name { position: relative; margin-top: auto; font: 700 25px/1.15 var(--en); }
.home-cat__note { position: relative; margin-top: 7px; font-size: 13px; color: #4d6572; }
.home-cat--tech, .home-cat--creative { background: #eaf4fa; }
.home-cat--business, .home-cat--skills { background: #f7f8f7; }
.home-cat--marketing { background: #eaf6fc; }
.home-cat.has-image { min-height: 230px; border-color: transparent; background: #013b5a var(--cat-img) center / cover no-repeat; color: #fff; }
.home-cat.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,40,62,.12) 0%, rgba(1,40,62,.35) 45%, rgba(1,34,54,.86) 100%); transition: opacity .25s; }
.home-cat.has-image::after { display: none; }
.home-cat.has-image > * { position: relative; }
.home-cat.has-image .home-cat__top small { opacity: .85; }
.home-cat.has-image .home-cat__note { color: rgba(255,255,255,.86); }
.home-cat.has-image:hover::before { opacity: .85; }

.home-upcoming { padding: 88px 0 100px; background: #f1f6f9; }
.home-upcoming__grid { margin-top: 34px; }
.home-upcoming__empty { display: flex; align-items: center; gap: 24px; margin-top: 34px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.home-upcoming__empty h3 { font-size: 23px; color: var(--ink); }
.home-upcoming__empty p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.home-upcoming__empty .btn { margin-left: auto; }

.home-steps { padding: 100px 0; background: #fff; }
.home-steps__grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); }
.home-steps__intro h2 { margin-top: 14px; font-size: clamp(33px, 3.8vw, 50px); line-height: 1.2; color: var(--ink); }
.home-steps__intro > p:not(.eyebrow) { max-width: 320px; margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.home-steps__signup { display: inline-flex; align-items: center; gap: 20px; margin-top: 30px; padding: 13px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; transition: transform .2s, background .2s; }
.home-steps__signup:hover { transform: translateY(-2px); background: var(--blue-deep); }
.home-steps__list { display: grid; }
.home-steps__list > div { display: grid; grid-template-columns: 64px 1fr; gap: 3px 18px; padding: 23px 0; border-top: 1px solid var(--line); }
.home-steps__list > div:last-child { border-bottom: 1px solid var(--line); }
.home-steps__list small { grid-row: span 2; padding-top: 4px; font: 700 24px var(--en); color: var(--sky); }
.home-steps__list h3 { font-size: 20px; color: var(--ink); }
.home-steps__list p { margin-top: 3px; font-size: 15px; line-height: 1.6; color: var(--muted); }


@media (max-width: 980px) {
  .home-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
  .home-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-hero__grid { padding-top: 60px; padding-bottom: 68px; }
  .home-hero h1 { font-size: clamp(39px, 9vw, 55px); }
  .home-hero__lead { font-size: 16px; }
  .home-hero__meta { margin-top: 36px; }
  .home-categories, .home-upcoming, .home-steps { padding: 70px 0; }
  .home-section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .home-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .home-cat { min-height: 166px; padding: 20px; }
  .home-cat__name { font-size: 21px; }
  .home-cat__note { font-size: 12px; }
  .home-steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .home-upcoming__empty { flex-wrap: wrap; padding: 24px; }
  .home-upcoming__empty .btn { margin-left: 0; }
}
@media (max-width: 440px) {
  .home-hero__actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .home-cat { min-height: 132px; padding: 16px; border-radius: 18px; }
  .home-cat__name { font-size: 18px; }
  .home-cat__note { font-size: 11.5px; line-height: 1.5; }
}
@media (max-width: 720px) { .home-cat.has-image { min-height: 166px; } }
@media (max-width: 440px) { .home-cat.has-image { min-height: 132px; } }
@media (max-width: 720px) { .home-cat__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.home-hero__types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 46px; }
.home-hero__types a { padding: 7px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); transition: background .15s, border-color .15s; }
.home-hero__types a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.home-hero__types a:last-child { border-color: transparent; }
@media (max-width: 720px) { .home-hero__types { margin-top: 30px; } }

/* Small moments of personality, following the original home artwork. */
@keyframes home-card-arrive { from { opacity: 0; transform: translateY(18px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(-7deg); } }
@keyframes home-note-arrive { from { opacity: 0; transform: translateY(12px) rotate(-9deg); } to { opacity: 1; transform: translateY(0) rotate(-5deg); } }

/* A friendly first hello, integrated into the existing community strip. */
.home-upcoming .event-card-host { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 6px; border-radius: 13px; background: #f1f8fc; }
.home-upcoming .event-card-host > span:not(.avatar) { flex: 1; min-width: 0; }
.home-upcoming .event-card-host small { display: block; font-size: 10px; color: var(--muted); }
.home-upcoming .event-card-host b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--blue); overflow-wrap: anywhere; }
.home-upcoming .event-card-host i { font: normal 20px var(--en); color: var(--sky); }

/* ---------- Hero: the next real Events (replaces the slogan tiles) ---------- */
.home-next { display: grid; gap: 10px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.home-next__label { font-size: 14px; font-weight: 600; color: #cfeeff; }
.home-next__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.home-next__item:hover, .home-next__item:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,24,41,.25); }
.home-next__date { display: grid; place-items: center; align-content: center; height: 64px; border-radius: 12px; background: var(--sky-soft); color: var(--blue); line-height: 1; }
.home-next__date b { font: 700 22px var(--en); letter-spacing: -.02em; }
.home-next__date small { margin-top: 3px; font-size: 12px; font-weight: 600; }
.home-next__body { display: grid; gap: 3px; min-width: 0; }
.home-next__body small { font-size: 12.5px; color: var(--muted); }
.home-next__body strong { font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-next__host { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar--xs { width: 22px; height: 22px; font-size: 10px; }
.home-next__empty { padding: 16px; border-radius: 16px; background: #fff; color: var(--text); font-size: 14.5px; line-height: 1.7; }
.home-next__empty a { color: var(--blue); font-weight: 600; }
.home-next__all { justify-self: end; margin-top: 2px; font-size: 14px; font-weight: 600; color: #d5f1ff; }
.home-next__all:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .home-next__item { transition: none; } .home-next__item:hover { transform: none; } }

/* ==========================================================================
   Calm community home (2026-10-11): light CI-blue hero, section jump links,
   clear section rhythm, and labelled ad placements managed in admin/advertising.php.
   ========================================================================== */
.home { --home-soft: #eef7fc; --home-mist: #f6fafc; --home-edge: #d9eaf3; }

/* Hero: airy light blue so the page feels relaxed; navy stays the brand anchor. */
.home-hero { color: var(--ink); background: linear-gradient(180deg, #e6f3fb 0%, #f3f9fd 62%, #fff 100%); }
.home-hero::before { opacity: 1; background: radial-gradient(circle at 88% 18%, rgba(41,146,208,.14), transparent 34%), radial-gradient(circle at 6% 90%, rgba(1,79,119,.07), transparent 30%); }
.home-hero__grid { padding-top: 64px; padding-bottom: 72px; }
.home-hero .eyebrow { color: var(--sky); }
.home-hero .eyebrow::before { background: var(--sky); }
.home-hero h1 { margin-top: 22px; color: var(--blue); font-size: clamp(40px, 5vw, 66px); }
.home-hero h1 span { color: var(--sky); }
.home-hero__lead { margin-top: 20px; font-weight: 400; color: #46606d; }

.home-search { display: flex; gap: 8px; max-width: 560px; margin-top: 30px; padding: 7px; border: 1px solid var(--home-edge); border-radius: 999px; background: #fff; box-shadow: 0 14px 34px rgba(1,79,119,.09); }
.home-search input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.home-search input:focus { outline: none; }
.home-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,146,208,.16), 0 14px 34px rgba(1,79,119,.09); }
.home-search .btn { flex: none; min-height: 46px; padding-inline: 26px; border-radius: 999px; }

.home-hero__types { margin-top: 22px; }
.home-hero__types a { border-color: var(--home-edge); background: rgba(255,255,255,.75); color: var(--blue); font-weight: 500; }
.home-hero__types a:hover { border-color: var(--sky); background: #fff; color: var(--blue); }
.home-hero__types a:last-child { border-color: transparent; background: transparent; }

.home-next { background: #fff; border-color: var(--home-edge); box-shadow: 0 24px 60px rgba(1,79,119,.1); }
.home-next__label { color: var(--blue); }
.home-next__item { background: var(--home-mist); }
.home-next__item:hover, .home-next__item:focus-visible { box-shadow: 0 12px 26px rgba(1,79,119,.12); background: #fff; }
.home-next__empty { background: var(--home-mist); }
.home-next__all { color: var(--blue); }
.home-next__all:hover { color: var(--sky); }

.home section[id] { scroll-margin-top: 84px; }

/* Section rhythm: alternate white / mist so each block reads as its own chapter. */
.home-categories { padding: 84px 0 88px; }
.home-upcoming { padding: 84px 0 92px; background: var(--home-mist); }
.home-steps { padding: 84px 0 92px; background: var(--home-soft); }

/* Partner banner on the home page (admin → advertising → home banner). */
.home-ad-band { padding: 0 0 84px; background: #fff; }
.home-ad { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 4vw, 48px); padding: 18px; border: 1px solid var(--home-edge); border-radius: 26px; background: #fff; }
.home-ad > * { min-width: 0; }
.home-ad__creative { display: block; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 18px; background: var(--home-soft); }
.home-ad__creative img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.home-ad__creative:hover img { transform: scale(1.02); }
.home-ad__body { padding: 8px 18px 8px 0; }
.home-ad__label { display: inline-block; padding: 4px 10px; border: 1px solid #c9e1ee; border-radius: 6px; background: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #5b7684; }
.home-ad h2 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--blue); overflow-wrap: anywhere; }
.home-ad__body > p:not(.home-ad__label) { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: #46606d; overflow-wrap: anywhere; white-space: pre-line; }
.home-ad .btn { margin-top: 22px; }

/* Sponsored event: the first card of the upcoming grid, labelled as an ad. */
.home-sponsored { position: relative; display: flex; flex-direction: column; min-width: 0; }
.home-sponsored > .home-ad__label { position: absolute; z-index: 2; top: 14px; left: 14px; box-shadow: 0 2px 8px rgba(1,40,62,.18); }
.home-sponsored > .card, .home-sponsored > a { flex: 1; outline: 2px solid #9fd0ea; outline-offset: 3px; }

/* Steps: three cards in a row, then the sign-up call. */
.home-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.home-steps__list > li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px; border: 1px solid var(--home-edge); border-radius: 22px; background: #fff; }
.home-steps__list > li:last-child { border-bottom: 1px solid var(--home-edge); }
.home-steps__list small { grid-row: auto; padding: 0; margin-bottom: 8px; font-size: 26px; }
.home-steps__signup { margin-top: 28px; }


@media (max-width: 980px) {
  .home-ad { grid-template-columns: 1fr; }
  .home-ad__body { padding: 4px 8px 10px; }
  .home-steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .home-hero__grid { padding-top: 44px; padding-bottom: 52px; }
  .home-search { border-radius: 18px; flex-direction: column; padding: 8px; }
  .home-search input { min-height: 46px; padding: 0 10px; }
  .home-search .btn { width: 100%; border-radius: 12px; }
  .home-categories, .home-upcoming, .home-steps { padding: 64px 0 70px; }
  .home-ad-band { padding-bottom: 64px; }
  .home-ad { padding: 12px; border-radius: 20px; }
  .home-section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .home-ad__creative img { transition: none; } .home-ad__creative:hover img { transform: none; } }

/* Organizers (2026-10-11): one calm block — invitation on the left, real community hosts on the right. */
.home-hosts { padding: 84px 0; background: #fff; }
.home-hosts__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.home-hosts__intro h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 38px); line-height: 1.35; color: var(--ink); }
.home-hosts__intro > p:not(.eyebrow) { max-width: 480px; margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.home-hosts__intro .btn { margin-top: 26px; }
.home-hosts__list { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--home-edge); border-radius: 22px; background: var(--home-mist); }
.home-hosts__label { font-size: 13px; font-weight: 600; color: var(--blue); }
.home-host { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border: 1px solid transparent; border-radius: 16px; background: #fff; color: var(--ink); transition: border-color .15s, transform .15s; }
.home-host:hover, .home-host:focus-visible { border-color: #b8dced; transform: translateY(-2px); }
.home-host .avatar { flex: none; }
.home-host__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.home-host__body strong { font-size: 16px; overflow-wrap: anywhere; }
.home-host__body small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; color: var(--muted); }
.home-host__count { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--home-soft); font-size: 12px; color: var(--blue); }

/* Contact: a quiet strip of links instead of a full section. */
.home-help { padding: 34px 0 64px; background: #fff; }
.home-help__row { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--home-edge); }
.home-help h2 { font-size: 20px; color: var(--ink); }
.home-help p { margin-top: 4px; max-width: 520px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.home-help__links { display: flex; flex-wrap: wrap; gap: 8px; }
.home-help__links a { padding: 9px 16px; border: 1px solid var(--home-edge); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--blue); transition: border-color .15s, background .15s; }
.home-help__links a:hover, .home-help__links a:focus-visible { border-color: var(--sky); background: var(--home-soft); }
.home-help__links a:last-child { border-color: transparent; }

@media (max-width: 900px) {
  .home-hosts__panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .home-hosts { padding: 64px 0; }
  .home-hosts__list { padding: 14px; }
  .home-host { padding: 12px; }
  .home-host__count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .home-host { transition: none; } .home-host:hover { transform: none; } }

/* ==========================================================================
   Okuzero CI pass (2026-10-11, brand book in design/brand): navy #014f77 leads (60%), white (20%),
   ink #1f2020 and sky #2992d0 accent (10% each). Outfit Bold headings, light body, Anuphan for Thai.
   Brand graphics: dot grid, angular blocks from the logo, sky square markers, navy → light gradient.
   Shared by the home and the event list (both load this file).
   ========================================================================== */
.home { --home-soft: #eef2f5; --home-mist: #f5f7f9; --home-edge: #dde5ea; --ci-navy: #014f77; --ci-navy-2: #015a87; --ci-sky: #2992d0; --ci-ink: #1f2020; }
.home h1, .home h2, .home-section-head h2 { font-family: var(--en); color: var(--ci-ink); }

/* Hero: the brand's navy field with dot grid, angular blocks and the light fade on the right. */
.home-hero { color: #fff; background:
  linear-gradient(100deg, var(--ci-navy) 0%, var(--ci-navy) 52%, #2c6f95 78%, #9bb9cb 100%); }
.home-hero::before { opacity: 1; background:
  radial-gradient(circle, rgba(255,255,255,.7) 1.4px, transparent 1.8px) 0 0 / 46px 46px; inset: 0 auto auto 0; width: 46%; height: 62%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(162deg, transparent 0 38%, rgba(255,255,255,.045) 38% 58%, transparent 58%),
  linear-gradient(18deg, transparent 0 62%, rgba(1,40,62,.22) 62% 80%, transparent 80%); }
.home-hero__grid { position: relative; z-index: 1; }
.home-hero .eyebrow { color: #fff; }
.home-hero .eyebrow::before { background: var(--ci-sky); }
.home-hero h1 { color: #fff; font-weight: 700; }
.home-hero h1 span { color: #fff; font-weight: 300; }
.home-hero__lead { color: rgba(255,255,255,.84); font-weight: 300; }
.home-search { border-color: transparent; box-shadow: 0 18px 40px rgba(0,24,41,.28); }
.home-search .btn { background: var(--ci-navy); }
.home-search .btn:hover { background: var(--ci-ink); }
.home-hero__types a { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.home-hero__types a:hover, .home-hero__types a:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.home-hero__types a:last-child { color: #fff; }
.home-next { border: 0; box-shadow: 0 30px 70px rgba(0,24,41,.32); }
.home-next__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); color: var(--ci-navy); }
.home-next__label::before { content: ""; width: 8px; height: 8px; background: var(--ci-sky); }
.home-next__date { background: var(--ci-navy); color: #fff; }
.discovery-welcome { color: var(--muted); }

/* Section heads: ink headings, navy links, the sky square marker kept from the eyebrow. */
.home-inline-link { color: var(--ci-navy); border-bottom-color: var(--ci-sky); }

/* Category and type tiles: white with an angular block from the logo instead of soft circles. */
.home-cat { background: #fff; border-color: var(--home-edge); color: var(--ci-navy); }
.home-cat--tech, .home-cat--creative, .home-cat--business, .home-cat--skills, .home-cat--marketing { background: #fff; }
.home-cat::after { right: 0; bottom: 0; width: 120px; height: 90px; border: 0; border-radius: 0; background: var(--ci-navy); opacity: .07;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 34% 62%, 34% 30%); }
.home-cat:hover { border-color: var(--ci-navy); box-shadow: 0 16px 34px rgba(1,79,119,.12); }
.home-cat:hover::after { opacity: .14; }
.discovery-type-list a { background: #fff; border-color: var(--home-edge); }
.discovery-type-list a:hover, .discovery-type-list a:focus-visible { border-color: var(--ci-navy); background: #fff; }
.discovery-type-icon { background: var(--ci-navy); color: #fff; }
.discovery-type-list i { color: var(--ci-navy); }

/* Upcoming events on a neutral light ground; cards stay white. */
.home-upcoming { background: var(--home-mist); }

/* Steps: a navy band with the dot grid, so navy carries its share of the page. */
.home-steps { position: relative; overflow: hidden; background: var(--ci-navy); color: #fff; }
.home-steps::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 40%; height: 70%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.5) 1.3px, transparent 1.7px) 0 0 / 42px 42px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 75%); mask-image: linear-gradient(200deg, #000, transparent 75%); }
.home-steps .wrap { position: relative; }
.home-steps .home-section-head h2 { color: #fff; }
.home-steps .home-section-head p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.home-steps .eyebrow { color: #fff; }
.home-steps__list > li { border: 0; border-radius: 18px; }
.home-steps__list small { color: var(--ci-sky); }
.home-steps__list h3 { color: var(--ci-ink); }
.home-steps__signup { background: #fff; color: var(--ci-navy); }
.home-steps__signup:hover { background: var(--ci-sky); color: #fff; }

/* Organizers and contact: white, navy accents. */
.home-hosts__list { background: var(--home-mist); }
.home-hosts__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); color: var(--ci-navy); }
.home-hosts__label::before { content: ""; width: 8px; height: 8px; background: var(--ci-sky); }
.home-host__count { background: var(--ci-navy); color: #fff; }
.home-help__links a { color: var(--ci-navy); }
.home-help__links a:hover, .home-help__links a:focus-visible { border-color: var(--ci-navy); background: #fff; }

/* Ads keep their own creative; the frame follows the neutral palette. */
.home-ad { background: #fff; }
.home-ad h2 { color: var(--ci-navy); }

@media (max-width: 720px) {
  .home-hero { background: linear-gradient(170deg, var(--ci-navy) 0%, var(--ci-navy) 60%, #2c6f95 100%); }
  .home-hero::before { width: 100%; height: 40%; }
}

/* Home slides: the controls under the band when the back office shows more than one slide. */
.home-ad-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.home-ad-controls > button { min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--home-edge); border-radius: 999px; background: #fff; color: var(--ci-navy); font: inherit; cursor: pointer; }
.home-ad-controls > button:hover, .home-ad-controls > button:focus-visible { border-color: var(--ci-navy); }
.home-ad-dots { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.home-ad-dots button { position: relative; min-width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-ad-dots button::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #c9e1ee; }
.home-ad-dots button[aria-current='true']::before { background: var(--ci-navy); }
.home-ad-dots button:focus-visible { outline: 2px solid var(--ci-navy); outline-offset: 1px; border-radius: 6px; }

/* Home slides: a slide is its picture and one link. Details show over it on hover or keyboard focus; on touch and
   narrow screens there is no hover, so they sit under the picture all the time. */
.home-slide { animation: home-slide-in .4s ease; }
.home-slide__link { position: relative; display: block; overflow: hidden; border: 1px solid var(--home-edge); border-radius: 26px; background: var(--home-soft); color: #fff; text-decoration: none; }
.home-slide__link img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
a.home-slide__link:hover img { transform: scale(1.02); }
a.home-slide__link:focus-visible { outline: 3px solid var(--ci-sky); outline-offset: 3px; }
.home-slide__details { position: absolute; inset: auto 0 0; display: grid; justify-items: start; gap: 8px; padding: 72px clamp(18px, 3vw, 36px) clamp(18px, 3vw, 32px); background: linear-gradient(0deg, rgba(1,40,62,.94) 0%, rgba(1,40,62,.78) 55%, rgba(1,40,62,0) 100%); max-height: 100%; overflow-y: auto; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.home-slide__link:hover .home-slide__details, .home-slide__link:focus-visible .home-slide__details, .home-slides:has(:focus-visible) .home-slide__details, .home-slide--plain .home-slide__details { opacity: 1; transform: none; }
.home-slide__link > .home-slide__label { position: absolute; z-index: 1; top: 14px; left: 14px; margin: 0; box-shadow: 0 2px 8px rgba(1,40,62,.18); }
.home-slide__details > * { margin: 0; min-width: 0; max-width: 100%; }
.home-slide__details .home-slide__title { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
.home-slide__details .home-slide__text { max-width: 64ch; font-size: 15.5px; line-height: 1.7; color: #e3f0f7; overflow-wrap: anywhere; white-space: pre-line; }
.home-slide__details .home-slide__cta { margin-top: 8px; background: #fff; border-color: #fff; color: var(--ci-navy); }
@keyframes home-slide-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none), (max-width: 720px) {
  .home-slide__link { border-radius: 20px; }
  a.home-slide__link:hover img { transform: none; }
  .home-slide__details { position: static; max-height: none; overflow: visible; padding: 16px 18px 20px; background: var(--ci-navy); opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slide { animation: none; }
  .home-slide__link img, .home-slide__details { transition: none; }
  a.home-slide__link:hover img { transform: none; }
}
