/*
Theme Name: KOKUYOSA 2026
Theme URI: https://kokuyosa.com/
Author: Kaede Cultural Society of Calgary
Description: North American International Yosakoi Festival (KOKUYOSA 2026). English-first, North-American event site with Japanese (Polylang) — visual-forward, photo-rich, conversion-focused. Custom theme migrated from SOLARIS/tcd088.
Version: 1.0.30
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kokuyosa
Version note: 1.0.28 — teams now support English translations: project_category (country groups) made shared/non-translatable so EN & JA teams share 日本/アメリカ/カナダチーム; homepage teams grid + team archive switched from "show all languages" to the current language (EN home shows English teams, JA home Japanese); "Past participating teams" index entry now also skipped by its English title. (News stays shared until its English versions exist.) 1.0.27 — sponsors section is now data-driven: new Customizer field "Sponsor logo IDs" (KOKUYOSA visuals) renders sponsor logos from comma-separated media IDs, falling back to the 8 LOGO placeholders when empty (so logos can be added/swapped from the dashboard). 1.0.26 — added the IACE Travel logo (on a white plate) to the Rockies tour travel card. 1.0.25 — special guests back to side-by-side, now on a soft cool band (kok-section--mist) so it contrasts with the cream highlights above and the navy visit section below. 1.0.24 — newsletter signup is now a tidy single column (stacked input + button, centered); special-guest cards stack into a single column so each guest reads as its own row. 1.0.23 — added a theme announcement popup on the home page (auto-open, dismissible, remembers dismissal; Customizer-editable, bilingual default) replacing the Popup Maker example; added an English KOKUYOSA 2025 Archive page (2025 winners, highlight videos, photo album). 1.0.22 — teams & news now show on both EN and JA (shared, no per-language copies yet) via lang='' query + pre_get_posts for their archives; Japanese guest posts added (real photos); Japanese main menu created and assigned to the JA site. 1.0.21 — homepage Rockies tour updated to the 2026 itinerary (Peyto Lake / Lake Louise / Moraine Lake / Emerald Lake, Sep 21) with last-year photos + tour-details link; English pages added/expanded: Volunteer (with form), Contact (org info + map + form + FAQ accordion), Rockies Tour (option1), Donate & Sponsor (tiers + FundRazr widget), and a fuller "What is Yosakoi?" (history, Yosakoi today, YOSAKOI Soran). Menu fully English. 1.0.20 — page/archive/news/404 heroes now use a photo background + dark mask (featured image → Customizer "Page hero photo" → festival fallback); fixed archive title rendering raw <span>; Venue page gained Nikka Yuko Garden + Tourism Lethbridge links, a garden photo grid, and a garden hero image. 1.0.19 — added a "DONATION" section heading above the donate band; new Canadian Rockies optional-tour section (Peyto Lake / Lake Louise / Moraine Lake / Town of Banff / Marble Canyon) with 2025 tour photos and IACE Travel booking info for flights & Calgary/Lethbridge hotels. 1.0.18 — Special guests now use real guest CPT posts (Chika Tamura, Yoshihiro Kaneko) with photos + bios; homepage guest cards link to a profile page when a bio exists; single.php back-link is now context-aware (news vs other). 1.0.17 — Polylang integration: pll_get_post_types/pll_get_taxonomies filters make news/project/service/company/guest + project_category/news_category translatable. Site configured English-first (default=en, root=EN, /ja/=JA); existing content assigned to Japanese; EN front page created. 1.0.16 — rebalanced sponsors grid: 8 logo slots in a centered 4-col grid (4+4), max-width to stop stretching on wide screens, 2-col on mobile. 1.0.15 — (overnight safe pass) fixed remaining broken links in footer/404 (/about/→/festival/, /teams/→/team/, /visit/→/location/, Volunteer→/volunteer/); moved EN/JA language switcher to a top-right utility (Polylang-driven, English-first inert JA until Polylang is live — GTranslate path dropped per English-first plan); added venue photo placeholder to Plan-your-visit (Customizer "Visit section photo"); added Event JSON-LD for SEO (complements Yoast). 1.0.14 — added donation reward tiers under the homepage donate band (Individual $100/$300/$500 + Corporate $1,000/$2,500), mirroring /sponsor/, via kokuyosa_support_tiers() (attachment IDs 3035–3039) + .kok-tiers styles. 1.0.13 — fixed runaway news/guest excerpts: wp_trim_words counts spaces so Japanese never trimmed; added mb-safe kokuyosa_trim_chars() (caps by character count) used in news cards (front-page + index) and guest role. 1.0.12 — homepage Special guests now show the two confirmed guests (Chika Tamura — choreographer; Yoshihiro Kaneko — vocalist/director, Narutaka) via kokuyosa_default_guests(); guest CPT re-registered for adding photos later. 1.0.11 — aligned to live structure: re-registered legacy CPTs (company=festival / service=program / project=team + project_category=team_intro); homepage teams from project/project_category; fixed placeholder links.
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
	--navy:        #102A54;
	--navy-dark:   #0B1F3F;
	--navy-mid:    #1C3D70;
	--crimson:     #C0202E;
	--crimson-dk:  #9C1622;
	--gold:        #E0A53C;
	--gold-dk:     #B97F1C;
	--cream:       #FAF7F1;
	--paper:       #ffffff;
	--ink:         #1B2433;
	--muted:       #5B6678;
	--line:        #E5E0D5;
	--navy-tint:   #DCE3EE;

	--font-display: 'Oswald', 'Noto Sans JP', system-ui, sans-serif;
	--font-text:    'Inter', 'Noto Sans JP', system-ui, sans-serif;
	--font-jp:      'Noto Sans JP', system-ui, sans-serif;

	--wrap: 1180px;
	--gap:  clamp(16px, 4vw, 40px);
	--radius: 14px;
	--shadow: 0 18px 50px rgba(11, 31, 63, 0.14);

	/* 和柄（青海波）— Seigaiha wave-scale motif. Uses currentColor so each
	   surface can tint it (gold accent / white). Pair with background-size:44px 22px. */
	--wagara:
		radial-gradient(circle at 50% 100%, transparent 33%, currentColor 33%, currentColor 41%, transparent 41%, transparent 58%, currentColor 58%, currentColor 66%, transparent 66%, transparent 83%, currentColor 83%, currentColor 91%, transparent 91%),
		radial-gradient(circle at 50% 0%, transparent 33%, currentColor 33%, currentColor 41%, transparent 41%, transparent 58%, currentColor 58%, currentColor 66%, transparent 66%, transparent 83%, currentColor 83%, currentColor 91%, transparent 91%);
}

/* Reusable faint 和柄 overlay — "刺し色" accent. Add .kok-wagara to a section;
   keep content above via its inner wrapper. */
.kok-wagara { position: relative; }
.kok-wagara::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
	color: var(--gold); opacity: 0.07;
	background-image: var(--wagara); background-size: 44px 22px;
}
.kok-wagara > * { position: relative; z-index: 1; }
.kok-wagara--white::before { color: #ffffff; opacity: 0.06; }
.kok-wagara--soft::before { opacity: 0.05; }

/* 和柄の帯 — decorative seigaiha divider band between sections (kimono-edge accent). */
.kok-band {
	height: 34px; background-color: var(--navy); color: var(--gold);
	background-image: var(--wagara); background-size: 44px 22px; background-position: center;
	border-block: 1px solid var(--gold-dk);
}
.kok-band--gold { background-color: var(--gold); color: var(--navy); border-color: var(--gold-dk); }
.kok-band--cream { background-color: var(--cream); color: var(--gold-dk); border-color: var(--line); }
.kok-band--thin { height: 24px; background-size: 36px 18px; }

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-text);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--navy);
	margin: 0 0 0.5em;
}

:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--font-jp); font-weight: 700; letter-spacing: 0; }

.kok-wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

.kok-section { padding: clamp(48px, 8vw, 96px) 0; }
.kok-section--tint { background: var(--paper); }
.kok-section--mist { background: #ECF1F8; } /* soft cool band — contrast between cream sections */
.kok-section--navy { background: var(--navy); color: #fff; }
.kok-section--navy h2, .kok-section--navy h3 { color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.kok-skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.kok-skip-link:focus { left: 16px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.kok-btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em;
	text-transform: uppercase; font-size: 0.95rem;
	padding: 13px 26px; border-radius: 40px; border: 2px solid transparent;
	cursor: pointer; transition: transform 0.15s ease, background 0.2s ease;
	text-decoration: none; line-height: 1;
}
.kok-btn:hover { text-decoration: none; transform: translateY(-2px); }
.kok-btn--donate { background: var(--crimson); color: #fff; }
.kok-btn--donate:hover { background: var(--crimson-dk); color: #fff; }
.kok-btn--gold { background: var(--gold); color: #43300A; }
.kok-btn--gold:hover { background: var(--gold-dk); color: #2b1f04; }
.kok-btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.kok-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.kok-btn--navy { background: var(--navy); color: #fff; }
.kok-btn--navy:hover { background: var(--navy-dark); color: #fff; }
:lang(ja) .kok-btn { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-jp); }

/* =========================================================================
   Header
   ========================================================================= */
.kok-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,0.94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.kok-header__inner {
	display: flex; align-items: center;
	gap: 24px; padding: 12px 0;
}
.kok-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.kok-brand:hover { text-decoration: none; }
.kok-brand__mark {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--navy); color: var(--gold);
	display: grid; place-items: center; font-size: 20px; flex: none;
}
.kok-brand__name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1; }
.kok-brand__sub { font-size: 0.66rem; letter-spacing: 0.22em; color: var(--crimson); margin-top: 3px; }
:lang(ja) .kok-brand__name { font-family: var(--font-jp); }

.kok-nav { display: flex; align-items: center; gap: 22px; }
.kok-menu { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.kok-menu a {
	font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
	letter-spacing: 0.05em; font-size: 0.82rem; color: var(--navy);
}
:lang(ja) .kok-menu a { text-transform: none; letter-spacing: 0; font-family: var(--font-jp); font-size: 0.9rem; }
.kok-menu a:hover { color: var(--crimson); text-decoration: none; }
.kok-menu .current-menu-item > a { color: var(--crimson); }

/* submenu */
.kok-menu .sub-menu {
	position: absolute; min-width: 210px; background: #fff; list-style: none;
	margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: 0.18s ease;
}
.kok-menu .menu-item-has-children { position: relative; }
.kok-menu .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.kok-menu .sub-menu a { display: block; padding: 7px 12px; border-radius: 8px; }
.kok-menu .sub-menu a:hover { background: var(--cream); }

/* =========================================================================
   Announcement popup
   ========================================================================= */
.kok-popup { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kok-popup[hidden] { display: none; }
.kok-popup__overlay { position: absolute; inset: 0; background: rgba(8,18,38,0.66); opacity: 0; transition: opacity 0.25s ease; }
.kok-popup__box {
	position: relative; width: min(100%, 460px); background: var(--paper); border-radius: 18px; overflow: hidden;
	box-shadow: var(--shadow); transform: translateY(14px) scale(0.98); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.kok-popup.is-open .kok-popup__overlay { opacity: 1; }
.kok-popup.is-open .kok-popup__box { transform: none; opacity: 1; }
.kok-popup__close {
	position: absolute; top: 8px; right: 10px; z-index: 2; background: rgba(255,255,255,0.85); border: 0;
	width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer;
}
.kok-popup__close:hover { background: #fff; color: var(--crimson); }
.kok-popup__media { aspect-ratio: 16 / 8; background: var(--navy-tint); }
.kok-popup__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kok-popup__body { padding: 26px 26px 28px; text-align: center; }
.kok-popup__eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--crimson); margin: 0; }
.kok-popup__body h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; margin: 6px 0 10px; }
:lang(ja) .kok-popup__body h3 { font-family: var(--font-jp); }
.kok-popup__text { color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.kok-popup__cta { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.kok-popup__cta .kok-btn { width: 100%; }
.kok-popup__later { background: none; border: 0; color: var(--muted); font-size: 0.86rem; cursor: pointer; padding: 4px; }
.kok-popup__later:hover { color: var(--navy); text-decoration: underline; }

/* Top-right utility cluster: language switcher + mobile menu toggle. */
.kok-header__util { display: flex; align-items: center; gap: 14px; }

.kok-lang { display: inline-flex; border: 1px solid var(--navy-tint); border-radius: 30px; overflow: hidden; }
.kok-lang__link {
	font-family: var(--font-display); font-size: 0.74rem; font-weight: 600;
	padding: 5px 11px; color: var(--navy); letter-spacing: 0.05em;
}
.kok-lang__link.is-active { background: var(--navy); color: #fff; }
.kok-lang__link:hover { text-decoration: none; background: var(--cream); }
.kok-lang__link.is-active:hover { background: var(--navy); }
/* Inert JA label until Polylang is live (English-first). */
.kok-lang__link.is-pending { color: var(--muted); opacity: 0.55; cursor: default; }
.kok-lang__link.is-pending:hover { background: transparent; }

.kok-burger { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* =========================================================================
   Hero  (full-bleed photo background — visual-forward)
   ========================================================================= */
.kok-hero {
	position: relative; color: #fff; text-align: center;
	min-height: clamp(520px, 82vh, 760px);
	display: grid; align-items: center;
	background: var(--navy);
	overflow: hidden;
}
.kok-hero__bg { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.kok-hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.kok-hero__video { position: absolute; inset: 0; }
.kok-hero__video iframe {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
	transform: translate(-50%, -50%);
}
/* Scrim over the video: brand gradient keeps text legible. */
.kok-hero__scrim {
	position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(circle at 75% 20%, rgba(192,32,46,0.30), transparent 48%),
		linear-gradient(180deg, rgba(11,31,63,0.66) 0%, rgba(11,31,63,0.82) 100%);
}
.kok-hero__inner { position: relative; z-index: 2; padding: 80px 0; }
.kok-hero__eyebrow { font-family: var(--font-display); letter-spacing: 0.42em; color: var(--gold); font-size: 0.85rem; text-transform: uppercase; }
.kok-hero__title { color: #fff; font-size: clamp(2.4rem, 7vw, 5rem); margin: 0.3em 0 0.15em; text-transform: uppercase; }
:lang(ja) .kok-hero__title { text-transform: none; }
.kok-hero__name {
	font-family: var(--font-display); font-weight: 500; color: #fff;
	text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(0.82rem, 1.8vw, 1.05rem);
	margin: 0.2em 0 0.5em;
}
:lang(ja) .kok-hero__name { font-family: var(--font-jp); text-transform: none; letter-spacing: 0.08em; }
.kok-hero__tagline { font-size: clamp(1rem, 2.2vw, 1.35rem); color: #CBD7EC; font-weight: 400; }
.kok-hero__badge {
	display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
	margin-top: 22px; padding: 9px 20px; border-radius: 40px;
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.24);
	font-size: 0.95rem; font-weight: 500;
}
.kok-hero__badge .sep { opacity: 0.4; }
.kok-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Countdown */
.kok-countdown { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.kok-count {
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
	border-radius: 14px; padding: 12px 16px; min-width: 76px;
}
.kok-count__num { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; color: var(--gold); line-height: 1; }
.kok-count__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9FB4D6; margin-top: 6px; }
.kok-countdown__live { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); letter-spacing: 0.05em; }

/* =========================================================================
   Section heads
   ========================================================================= */
.kok-sec-head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.kok-sec-head__kicker {
	display: inline-block; font-family: var(--font-display); font-weight: 600;
	letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.8rem;
	color: var(--crimson); margin-bottom: 8px;
}
.kok-sec-head__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.kok-section--navy .kok-sec-head__kicker { color: var(--gold); }

/* =========================================================================
   Quick links
   ========================================================================= */
.kok-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kok-quick__card {
	position: relative; overflow: hidden; border-radius: var(--radius);
	min-height: 168px; display: flex; align-items: flex-end; color: #fff;
	border: 1px solid var(--line); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kok-quick__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.kok-quick__media { position: absolute; inset: 0; background: var(--navy-tint); }
.kok-quick__media img { width: 100%; height: 100%; object-fit: cover; }
.kok-quick__media .kok-ph { height: 100%; }
.kok-quick__card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,31,63,0) 30%, rgba(11,31,63,0.82) 100%);
}
.kok-quick__label {
	position: relative; z-index: 2; width: 100%; padding: 16px; text-align: center; color: #fff;
	font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
:lang(ja) .kok-quick__label { font-family: var(--font-jp); text-transform: none; }

/* =========================================================================
   Video embed  (last year's highlights)
   ========================================================================= */
.kok-video {
	position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin-inline: auto;
	border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy);
}
.kok-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   Plan your visit  (North-American attendance UX)
   ========================================================================= */
.kok-visit__photo {
	margin: 0 0 22px; border-radius: var(--radius); overflow: hidden;
	aspect-ratio: 16 / 6; background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12);
}
.kok-visit__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kok-visit__photo .kok-ph { width: 100%; height: 100%; }
.kok-visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.kok-visit__item {
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
	border-radius: var(--radius); padding: 24px;
}
.kok-visit__item h3 { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; }
:lang(ja) .kok-visit__item h3 { text-transform: none; }
.kok-visit__item p { margin: 0; color: #CBD7EC; font-size: 0.96rem; }
.kok-visit__icon { font-size: 26px; color: var(--gold); margin-bottom: 6px; display: block; }

/* =========================================================================
   Schedule (timeline)
   ========================================================================= */
.kok-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.kok-tab {
	font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
	font-size: 0.95rem; padding: 11px 24px; border-radius: 40px; cursor: pointer;
	border: 1px solid var(--line); background: #fff; color: var(--navy); transition: 0.15s ease;
}
.kok-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.kok-tab:hover:not(.is-active) { border-color: var(--navy); }
:lang(ja) .kok-tab { font-family: var(--font-jp); text-transform: none; }
.kok-tabpanel[hidden] { display: none; }
.kok-sched-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.kok-schedule { max-width: 720px; margin-inline: auto; }
.kok-sched__row {
	display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: baseline;
	padding: 13px 4px; border-bottom: 1px solid var(--line);
}
.kok-sched__row:first-child { border-top: 1px solid var(--line); }
.kok-sched__time { font-family: var(--font-display); font-weight: 600; color: var(--crimson); font-size: 1rem; }
.kok-sched__what { color: var(--ink); font-size: 1.02rem; }
.kok-sched__note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* =========================================================================
   Special guests
   ========================================================================= */
.kok-guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 900px; margin-inline: auto; }
.kok-guest {
	display: flex; gap: 18px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
}
a.kok-guest { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.kok-guest:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.kok-guest__more { display: inline-block; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--crimson); }
.kok-guest__photo {
	width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none;
	border: 1px solid var(--line); background: var(--navy-tint);
}
.kok-guest__photo img { width: 100%; height: 100%; object-fit: cover; }
.kok-guest__photo .kok-ph { min-height: auto; height: 100%; border-radius: 50%; }
.kok-guest__eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--crimson); }
.kok-guest__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin: 2px 0 4px; font-weight: 600; }
:lang(ja) .kok-guest__name { font-family: var(--font-jp); }
.kok-guest__role { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* =========================================================================
   Teams  (participating teams by country)
   ========================================================================= */
.kok-teams__group { margin-bottom: 36px; }
.kok-teams__group:last-child { margin-bottom: 0; }
.kok-teams__country {
	display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
	padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.kok-teams__flag { font-size: 1.4rem; line-height: 1; }
.kok-teams__cname { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); font-size: 1.15rem; }
:lang(ja) .kok-teams__cname { font-family: var(--font-jp); text-transform: none; }
.kok-teams__count { font-size: 0.82rem; color: var(--muted); }
.kok-teams__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; }
.kok-team { text-align: center; color: var(--navy); }
.kok-team:hover { text-decoration: none; }
.kok-team__media {
	aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
	border: 1px solid var(--line); background: var(--navy-tint);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kok-team:hover .kok-team__media { transform: translateY(-3px); box-shadow: var(--shadow); }
.kok-team__media img { width: 100%; height: 100%; object-fit: cover; }
.kok-team__name { margin-top: 9px; font-size: 0.9rem; font-weight: 500; line-height: 1.4; }

/* =========================================================================
   News cards
   ========================================================================= */
.kok-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kok-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kok-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kok-card__media { aspect-ratio: 16 / 10; background: var(--navy-tint); overflow: hidden; }
.kok-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kok-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kok-card__meta { font-size: 0.78rem; color: var(--crimson); font-weight: 600; letter-spacing: 0.04em; }
.kok-card__title { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.4; }
:lang(ja) .kok-card__title { font-family: var(--font-jp); }
.kok-card__excerpt { font-size: 0.9rem; color: var(--muted); margin: 0; }
.kok-center { text-align: center; margin-top: 36px; }

/* =========================================================================
   Donate band
   ========================================================================= */
.kok-donate-band {
	background: var(--crimson); color: #fff; border-radius: 22px;
	padding: clamp(28px, 5vw, 48px); display: grid;
	grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.kok-donate-band h2 { color: #fff; }
.kok-donate-band p { color: #F7D2D5; margin: 6px 0 0; }
.kok-progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.25); overflow: hidden; margin-top: 16px; max-width: 460px; }
.kok-progress__bar { height: 100%; background: var(--gold); }
.kok-donate-band .kok-btn--light { background: #fff; color: var(--crimson); }
.kok-donate-band .kok-btn--light:hover { background: #fff0f0; color: var(--crimson-dk); }

/* Donation reward tiers — sits directly under the donate band. */
.kok-tiers { margin-top: clamp(24px, 4vw, 40px); }
.kok-tiers__group + .kok-tiers__group { margin-top: 28px; }
.kok-tiers__heading {
	font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
	letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy);
	margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold);
}
.kok-tiers__grid { display: grid; gap: 16px; }
.kok-tiers__grid--3 { grid-template-columns: repeat(3, 1fr); }
.kok-tiers__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.kok-tier {
	display: block; text-decoration: none; color: inherit;
	background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
	overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kok-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kok-tier__media { background: var(--cream); }
.kok-tier__media img { width: 100%; height: auto; display: block; }
.kok-tier__media .kok-ph { display: block; aspect-ratio: 4 / 3; }
.kok-tier__label {
	display: block; padding: 12px 10px; text-align: center;
	font-weight: 600; font-size: 0.85rem; color: var(--ink);
}
@media (max-width: 720px) {
	.kok-tiers__grid--3, .kok-tiers__grid--2 { grid-template-columns: 1fr 1fr; max-width: none; }
}
@media (max-width: 440px) {
	.kok-tiers__grid--3, .kok-tiers__grid--2 { grid-template-columns: 1fr; }
}

/* =========================================================================
   Canadian Rockies optional tour
   ========================================================================= */
.kok-rockies__lead { max-width: 760px; margin: 0 auto 18px; text-align: center; color: var(--muted); }
.kok-rockies__spots { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.kok-rockies__caption { text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.kok-chip {
	display: inline-block; padding: 7px 16px; border-radius: 30px;
	background: #fff; border: 1px solid var(--line);
	font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
	letter-spacing: 0.03em; color: var(--navy);
}
.kok-rockies__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kok-rockies__photo { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.kok-rockies__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.kok-rockies__photo:hover img { transform: scale(1.05); }
.kok-rockies__photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 10px;
	font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: #fff;
	background: linear-gradient(to top, rgba(11,31,63,0.78), transparent);
}
.kok-rockies__travel {
	margin-top: 28px; background: var(--navy); color: #fff; border-radius: var(--radius);
	padding: clamp(22px, 4vw, 34px); text-align: center; max-width: 820px; margin-inline: auto;
}
.kok-rockies__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 12px 20px; margin: 0 0 18px; }
.kok-rockies__logo img { display: block; width: 100%; max-width: 220px; height: auto; }
.kok-rockies__travel h3 { color: var(--gold); margin: 0 0 8px; font-size: 1.15rem; }
.kok-rockies__travel p { color: #CBD7EC; margin: 0 auto 18px; max-width: 620px; }
@media (max-width: 760px) { .kok-rockies__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .kok-rockies__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Gallery  (visual-forward — masonry-ish grid + lightbox)
   ========================================================================= */
.kok-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kok-gallery__item {
	position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px;
	background: var(--navy-tint); cursor: pointer;
}
.kok-gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.kok-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.kok-gallery__item:hover img { transform: scale(1.06); }
.kok-lightbox {
	position: fixed; inset: 0; z-index: 2000; background: rgba(8,18,38,0.92);
	display: none; align-items: center; justify-content: center; padding: 24px;
}
.kok-lightbox.is-open { display: flex; }
.kok-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.kok-lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 30px; color: #fff; background: none; border: 0; cursor: pointer; }

/* =========================================================================
   Sponsors
   ========================================================================= */
.kok-sponsors {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
	max-width: 920px; margin-inline: auto;
}
.kok-sponsors__logo {
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	height: 130px; display: grid; place-items: center; padding: 16px;
}
.kok-sponsors__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* =========================================================================
   Newsletter
   ========================================================================= */
.kok-newsletter { text-align: center; max-width: 560px; margin-inline: auto; }
.kok-newsletter form { display: flex; flex-direction: column; gap: 12px; margin: 22px auto 0; max-width: 420px; }
.kok-newsletter input[type=email] {
	width: 100%; padding: 14px 18px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.3);
	background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; text-align: center;
}
.kok-newsletter input::placeholder { color: #9FB4D6; }
.kok-newsletter form .kok-btn { width: 100%; }

/* =========================================================================
   Placeholders (for art not yet provided — swap with real photos later)
   ========================================================================= */
.kok-ph {
	display: grid; place-items: center; background:
		repeating-linear-gradient(45deg, #DCE3EE, #DCE3EE 12px, #D3DCEA 12px, #D3DCEA 24px);
	color: #6B7C9C; font-family: var(--font-display); font-size: 0.8rem;
	letter-spacing: 0.1em; text-transform: uppercase; width: 100%; height: 100%; min-height: 120px;
}
.kok-ph::before { content: attr(data-label); }

/* =========================================================================
   Footer
   ========================================================================= */
.kok-footer { background: var(--navy-dark); color: #9FB4D6; padding: clamp(40px, 6vw, 72px) 0 28px; }
.kok-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.kok-footer h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.kok-footer ul { list-style: none; margin: 0; padding: 0; }
.kok-footer li { margin-bottom: 9px; }
.kok-footer a { color: #CBD7EC; font-size: 0.92rem; }
.kok-footer a:hover { color: #fff; }
.kok-footer__brand-name { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.kok-footer__ack { font-size: 0.82rem; line-height: 1.7; color: #8295B6; margin-top: 12px; max-width: 38ch; }
.kok-social { display: flex; gap: 14px; margin-top: 14px; font-size: 1.3rem; }
.kok-social a { color: #CBD7EC; }
.kok-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem;
}

/* =========================================================================
   Floating donate button (carried over)
   ========================================================================= */
.kok-float-donate {
	position: fixed; right: 20px; bottom: 20px; z-index: 900;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--crimson); color: #fff; padding: 13px 22px; border-radius: 40px;
	font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em;
	box-shadow: 0 10px 26px rgba(192,32,46,0.42); text-transform: uppercase;
}
.kok-float-donate:hover { background: var(--crimson-dk); color: #fff; text-decoration: none; transform: translateY(-2px); transition: 0.15s; }
.kok-float-donate__icon { font-size: 1.05rem; }
:lang(ja) .kok-float-donate { text-transform: none; font-family: var(--font-jp); }

/* =========================================================================
   Page / single content
   ========================================================================= */
.kok-page-hero { background: var(--navy); color: #fff; padding: clamp(64px, 10vw, 120px) 0; text-align: center; position: relative; overflow: hidden; }
.kok-page-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.kok-page-hero__scrim { position: absolute; inset: 0; background: linear-gradient( 180deg, rgba(11,31,63,0.60) 0%, rgba(11,31,63,0.74) 100% ); }
.kok-page-hero__inner { position: relative; z-index: 2; }
.kok-page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.kok-page-hero__kicker { font-family: var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-size: 0.8rem; }

.kok-entry { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 0; font-size: 1.06rem; }
.kok-entry .kok-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.6rem 0; }
.kok-entry .kok-photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin: 0; display: block; }
@media (max-width: 520px) { .kok-entry .kok-photo-grid { grid-template-columns: 1fr; } }

/* Imported-content helper boxes (event details / tour) + FAQ. */
.kok-entry .kokuyosa-toc { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; margin: 0 0 1.5rem; }
.kok-entry .kokuyosa-toc p { font-weight: 700; margin: 0 0 6px; }
.kok-entry .kokuyosa-highlight { background: #FFF8F0; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 1.2rem 0; }
.kok-entry .kokuyosa-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 1.2rem 0; box-shadow: 0 8px 24px rgba(11,31,63,0.06); }
.kok-faq { margin: 1rem 0; }
.kok-faq__q { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 10px 0; }
.kok-faq__q > summary { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy); cursor: pointer; list-style: none; }
.kok-faq__q > summary::-webkit-details-marker { display: none; }
.kok-faq__q > summary::after { content: '+'; float: right; color: var(--crimson); font-weight: 700; }
.kok-faq__q[open] > summary::after { content: '–'; }
.kok-faq__q p { margin: 10px 0 0; color: var(--ink); }
.kok-entry h2 { margin-top: 1.8em; font-size: 1.7rem; }
.kok-entry h3 { margin-top: 1.5em; font-size: 1.3rem; }
.kok-entry img { border-radius: 12px; margin: 1.4em 0; }
.kok-entry a { text-decoration: underline; }
.kok-entry blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: 0.4em 1.2em; color: var(--muted); background: var(--paper); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.kok-burger { display: block; }
	.kok-nav {
		position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
		background: #fff; flex-direction: column; align-items: stretch; gap: 0;
		padding: 80px 24px 24px; transform: translateX(100%); transition: transform 0.25s ease;
		box-shadow: var(--shadow); overflow-y: auto;
	}
	.kok-nav.is-open { transform: translateX(0); }
	.kok-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.kok-menu li { border-bottom: 1px solid var(--line); }
	.kok-menu a { display: block; padding: 12px 0; }
	.kok-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; }
	.kok-quick { grid-template-columns: repeat(2, 1fr); }
	.kok-news { grid-template-columns: 1fr; }
	.kok-gallery { grid-template-columns: repeat(2, 1fr); }
	.kok-sponsors { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
	.kok-donate-band { grid-template-columns: 1fr; text-align: center; }
	.kok-donate-band .kok-progress { margin-inline: auto; }
	.kok-footer__grid { grid-template-columns: 1fr 1fr; }
	.kok-newsletter form { flex-direction: column; }
}
@media (max-width: 520px) {
	.kok-quick { grid-template-columns: 1fr 1fr; }
	.kok-gallery__item:nth-child(6n+1) { grid-column: span 2; }
	.kok-footer__grid { grid-template-columns: 1fr; }
	.kok-count { min-width: 64px; padding: 10px 12px; }
}
