:root {
	--primary: #00af4d; --primary-dark: #009440; --lime: #d1d72e;
	--asphalt: #0d1b1e; --asphalt-2: #16282c; --canvas: #f4f6f8; --white: #fff;
	--tint: #eef6f2; --pink: #ff385c; --border: #e2e8f0; --muted: #5a6a70;
	--surface: var(--canvas); --surface-low: var(--tint); --surface-c: #e6efe9; --surface-h: #d8e6dd;
	--font-head: 'Barlow Condensed', sans-serif; --font-body: 'Be Vietnam Pro', sans-serif;
	--radius: .25rem; --radius-lg: .5rem; --radius-xl: 1.5rem;
	--shadow: 0 4px 12px -2px rgba(13,27,30,.06), 0 1px 3px rgba(13,27,30,.04);
	--brand-gradient: linear-gradient(115deg, var(--primary-dark), var(--primary) 35%, var(--lime));
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 15px/24px var(--font-body); color: var(--asphalt); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; margin: 0; line-height: 1.05; }
.container { width: min(100% - 2rem, 1280px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 12px 28px; border-radius: 999px; font: 700 16px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.btn--soft { background: #e6efe9; color: var(--asphalt); width: 100%; margin-top: auto; }
.btn--lime { background: var(--lime); color: var(--asphalt); width: 100%; }
.btn--dark { background: var(--asphalt); color: var(--lime); }
.btn--outline { background: #fff; color: var(--asphalt); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 700 12px/16px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.chip--dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--lime); }
.chip--green { background: var(--primary); color: #fff; }
.chip--lime { background: var(--lime); color: var(--asphalt); }
.chip--pink { background: var(--pink); color: #fff; }
.chip--asphalt { background: var(--asphalt); color: var(--lime); }
.chip--pending { background: #fff3cd; color: #8a6100; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(13,27,30,.06); font: 600 13px/18px var(--font-body); }
.section--dark .pill { background: var(--asphalt-2); color: #fff; }
.pill--green { background: #e0f4e8; color: var(--primary-dark); }
.section--dark .pill--green { background: var(--primary); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 80px; }
.site-header__inner > * { align-self: center; margin-top: 0; margin-bottom: 0; }
/* Header actions share one type style and height: Đăng nhập, Tham gia CLB */
.site-header__cta, .site-header__login { --hdr-h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: var(--hdr-h); padding: 0 22px; border-radius: 999px; font: 600 14px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.site-header__login { border: 1.5px solid var(--border); background: #fff; color: var(--asphalt); transition: border-color .15s, color .15s; }
.site-header__login:hover { border-color: var(--primary); color: var(--primary); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; }
.brand__mark { font-size: 2rem; font-style: italic; color: var(--primary); letter-spacing: -.02em; }
.brand__name { font-size: 1.1rem; }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: inline-flex; align-items: center; font: 600 14px/1 var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; margin-left: auto; color: var(--asphalt); }
.nav-toggle .vi { display: block; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open, .nav-toggle:not([aria-expanded="true"]) .nav-toggle__close { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--asphalt); color: #fff; padding-top: 3rem; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,27,30,.55), rgba(13,27,30,.95)); }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__inner { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: center; }
/* Title sizes scale with the copy column (cqi) so the lines never rewrap: big gradient tagline on two lines, smaller outlined slogan */
.hero__copy { container-type: inline-size; }
.hero__title { font-weight: 800; margin: 0 0 1.25rem; }
.hero__title-main { display: block; width: fit-content; font-size: min(68px, 10.5cqi); line-height: .98; background: linear-gradient(90deg, #02813a, #e9e723); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title-outline { display: block; margin-top: .25em; font-size: min(56px, 8.6cqi); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero__lead { font-size: 17px; line-height: 27px; max-width: 560px; opacity: .92; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0 0; }
.next-run { background: rgba(13,27,30,.7); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl); padding: 1.75rem; backdrop-filter: blur(12px); }
.next-run__eyebrow { margin: 0; color: var(--lime); font: 700 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.next-run h2 { font-size: 32px; margin: .35rem 0 1.25rem; }
.next-run__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: 15px; line-height: 1.4; }
.next-run__facts li { display: flex; align-items: center; gap: .75rem; }
.next-run__facts .vi { flex: none; color: var(--lime); }
.next-run__facts small { font-size: inherit; color: rgba(255,255,255,.6); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin-top: 3rem; margin-bottom: 0; padding: 1.75rem 0 2.25rem; border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding-inline: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font: 800 clamp(32px, 3.4vw, 48px)/1 var(--font-head); }
.stat span { display: block; margin-top: .4rem; font-size: 14px; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding-block: 5rem; }
.section--light { background: var(--canvas); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--asphalt); color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section__head--center { justify-content: center; text-align: center; }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; text-wrap: balance; }
.section__sub { max-width: 420px; color: var(--muted); margin: 0; }
.section--dark .section__sub { color: rgba(255,255,255,.65); }
.section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.eyebrow { display: inline-block; margin-bottom: .75rem; font: 700 13px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.eyebrow--lime { color: var(--lime); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font: 700 14px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .2s, transform .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -4px rgba(13,27,30,.12); }
.card--dark { background: var(--asphalt-2); border-color: rgba(255,255,255,.08); color: #fff; }
.card h3 { font-size: 22px; font-weight: 700; margin-top: .5rem; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }
.card--dark p { color: rgba(255,255,255,.65); }
/* Card titles: body font, sentence case — uppercase condensed is kept for h1/h2, labels and numbers */
.team-tile h3, .news-card h3, .member-card h3, .channel h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: -.01em; line-height: 1.35; }

/* Homepage: teams rail (scrolls sideways when the teams don't fit) */
.team-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 6px 6px 14px; margin: -6px -6px -14px; }
.team-tile { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.team-tile:hover { transform: translateY(-3px); border-color: #cfe6d9; box-shadow: 0 12px 24px -4px rgba(13,27,30,.12); }
.team-tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #1f3b2f, var(--asphalt)); }
.team-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-tile:hover .team-tile__media img { transform: scale(1.05); }
.team-tile__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(209,215,46,.4); }
.team-tile__body { display: flex; flex: 1; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.1rem; }
.team-tile h3 { font-size: 17px; }
.team-tile__area { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-tile__when { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 13px; font-weight: 500; }
.team-tile__when .vi { color: var(--primary); }
.team-tile__more { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .5rem; color: var(--primary-dark); font-size: 14px; font-weight: 600; }

/* Homepage: hall of fame boards */
.hof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.hof__board { display: flex; flex-direction: column; padding: 1.5rem; background: var(--asphalt-2); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; }
.hof__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.hof__head h3 { font-size: 26px; }
.hof__list { list-style: none; margin: 0; padding: 0; }
.hof__row { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.hof__row:last-child { border-bottom: 0; }
.hof__rank { font: 800 22px/1 var(--font-head); color: rgba(255,255,255,.35); text-align: center; }
.hof__row.is-top-1 .hof__rank { color: var(--lime); }
.hof__row.is-top-2 .hof__rank, .hof__row.is-top-3 .hof__rank { color: #fff; }
.hof__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hof__img--ph { display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 18px var(--font-head); }
.hof__who { min-width: 0; }
.hof__who strong, .hof__who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hof__who strong { font-size: 15px; font-weight: 600; }
.hof__who small { color: rgba(255,255,255,.55); font-size: 13px; }
.hof__time { font: 700 22px var(--font-head); color: var(--primary); font-variant-numeric: tabular-nums; }
.hof__all { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; color: var(--lime); font-size: 14px; font-weight: 600; }
.hof__all:hover { text-decoration: underline; }

/* Homepage: how to join */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.join__lead { max-width: 480px; margin: 1rem 0 1.75rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.join__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.join__steps li { display: flex; align-items: flex-start; gap: 1rem; }
.join__steps b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font: 800 20px var(--font-head); }
.join__steps span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.join__steps strong { display: block; color: var(--asphalt); font-size: 16px; font-weight: 600; }
.join__channels { display: grid; gap: 1rem; }
.channel { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); }
.channel--dark { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.channel__top { display: flex; align-items: center; justify-content: space-between; }
.channel__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; }
.channel--dark .channel__icon { background: rgba(255,255,255,.1); color: var(--lime); }
.channel--dark .pill { background: rgba(255,255,255,.1); color: #fff; }
.channel h3 { margin-top: .25rem; font-size: 18px; }
.channel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.channel--dark p { color: rgba(255,255,255,.7); }
.channel .btn { align-self: flex-start; width: auto; margin-top: .5rem; }

/* CTA & footer */
/* The shadow keeps the small white text legible where the gradient turns lime. */
.site-footer { background: var(--brand-gradient); color: #fff; text-shadow: 0 1px 2px rgba(13,27,30,.3); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr 1.2fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin: 0 0 1rem; }
.site-footer .brand__mark { color: #fff; }
.footer__about { font-size: 14px; }
.tags span { display: inline-block; margin-right: .5rem; padding: 4px 12px; border-radius: 999px; background: var(--asphalt-2); color: var(--lime); font-weight: 600; font-size: 12px; }
.footer__list, .footer__contact { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: .5rem; }
.footer__contact { background: rgba(13,27,30,.3); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); border-radius: 1rem; padding: 1rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer__contact .vi { margin-top: 3px; }
.footer__contact span a { font-weight: 700; }
.footer__list a:hover, .footer__contact a:hover { text-decoration: underline; }
/* Partner logos: white tiles, three to a row; a short last row sits centred. The logo box is wider than
   it is tall so square badges don't dwarf long wordmarks. */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.partners__item { position: relative; flex: 0 0 calc((100% - 1rem) / 3); aspect-ratio: 3 / 2; background: #fff; border-radius: .6rem; box-shadow: 0 4px 14px rgba(13,27,30,.14); }
.partners__logo { position: absolute; inset: 0; margin: auto; width: 82%; height: 62%; object-fit: contain; }
.partners__cta { margin: 1rem 0 0; font-size: 13px; opacity: .85; }
.partners__cta a:hover { text-decoration: underline; }
.partners__cta .vi { vertical-align: -3px; }
.footer__bar { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; }
/* Under the contact card, not in the bottom bar: the floating fund button covers the bar's right end. */
.footer__strava { display: inline-block; margin-top: 1rem; transition: opacity .2s; }
.footer__strava img { display: block; width: auto; height: 36px; filter: drop-shadow(0 1px 2px rgba(13,27,30,.3)); }
.footer__strava:hover { opacity: .8; }

/* Responsive */
@media (max-width: 1023px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__inner .next-run { max-width: 480px; }
	.join { grid-template-columns: 1fr; gap: 2rem; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.site-header__inner { flex-wrap: wrap; gap: 1rem; }
	.nav-toggle { display: grid; place-items: center; }
	.site-header__cta { display: none; }
	.site-header__inner { flex-wrap: nowrap; }
	.nav-toggle { position: relative; z-index: 62; width: 44px; height: 44px; padding: 0; line-height: 1; -webkit-tap-highlight-color: transparent; }
	.nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; flex: none;
		width: min(320px, 85vw); height: 100vh; height: 100dvh; box-sizing: border-box;
		padding: 88px 1.5rem 2rem; background: #fff; overflow-y: auto; overscroll-behavior: contain;
		box-shadow: -8px 0 24px rgba(13,27,30,.15);
		transform: translate3d(100%, 0, 0); visibility: hidden;
		transition: transform .3s cubic-bezier(.32,.72,0,1), visibility 0s linear .3s;
		will-change: transform;
	}
	.nav.is-open { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .3s cubic-bezier(.32,.72,0,1), visibility 0s; }
	.nav__list { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; }
	.nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
	.nav-backdrop {
		position: fixed; inset: 0; z-index: 60; background: rgba(13,27,30,.5);
		opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
	}
	.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
	body.nav-open { overflow: hidden; }
	@media (prefers-reduced-motion: reduce) { .nav, .nav-backdrop { transition: none; } }
	.grid--2, .grid--3, .grid--4, .footer-grid { grid-template-columns: 1fr; }
	.section__head, .footer__bar { flex-direction: column; align-items: flex-start; }
	.section { padding-block: 3rem; }

	/* Compact hero */
	.hero { padding-top: 1.5rem; }
	.hero__inner { gap: 1.25rem; }
	.hero__title { margin: 0 0 .75rem; }
	.hero__lead { font-size: 15px; line-height: 23px; }
	.hero__actions { flex-wrap: nowrap; gap: .5rem; margin-top: 1.25rem; }
	.hero__actions .btn { flex: 1; padding: 12px 8px; font-size: 14px; letter-spacing: .03em; text-align: center; }
	.next-run { display: none; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; margin-top: 1.75rem; padding-block: 1.25rem 1.5rem; }
	.stat { padding-inline: 1rem; }
	.stat:nth-child(odd) { padding-left: 0; border-left: 0; }
	.stat b { font-size: 28px; }
	.stat span { font-size: 12.5px; line-height: 1.3; }
	.team-rail { grid-auto-columns: 76%; gap: 1rem; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; scrollbar-width: none; }
	.hof__board { padding: 1.1rem 1.1rem 1.25rem; }
	.hof__row { grid-template-columns: 20px 36px minmax(0, 1fr) auto; gap: .7rem; }
	.hof__img { width: 36px; height: 36px; }
	.hof__time { font-size: 19px; }
}

/* Inner pages */
.brand__img { display: block; max-height: 48px; width: auto; }
/* Any logo (footer or header one) shows as a white silhouette on the brand gradient. */
.site-footer .brand__img { max-height: 56px; filter: brightness(0) invert(1); }
.page-main { background: var(--canvas); min-height: 60vh; }
.page-header { padding-block: 2rem 2.25rem; background: #fff; border-bottom: 1px solid var(--border); }
.page-header__meta { margin: 0 0 .5rem; color: var(--muted); font-size: 13px; }
.page-header--tabs { padding-bottom: 0; }
.page-header__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.page-header__text { flex: 1 1 420px; min-width: 0; }
.page-header__lead { max-width: 720px; margin-top: .75rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.page-header__lead p { margin: 0; }
.page-header__lead .page-header__count { margin-top: .35rem; color: var(--asphalt); font-size: 14px; font-weight: 500; }
.page-header__aside { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.page-header__aside .news-search { flex: none; width: 300px; }
.header-stats { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.header-stats b { display: block; font: 800 32px/1 var(--font-head); color: var(--primary-dark); }
.header-stats span { font-size: 13px; color: var(--muted); }
.section-tabs { display: flex; gap: 1.75rem; margin-top: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs__item { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 0; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.section-tabs__item:hover { color: var(--asphalt); }
.section-tabs__item.is-active { color: var(--asphalt); border-bottom-color: var(--primary); }
.page-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin: 0; }
.page-content { padding-block: 2.5rem 5rem; }
.breadcrumb { margin-bottom: .75rem; font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--asphalt); font-weight: 500; }
.prose { max-width: 1100px; }
.prose a:not(.btn) { color: var(--primary-dark); text-decoration: underline; }
.news__img { border-radius: 1rem; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.news h3 a:hover { color: var(--primary); }
.pagination { margin-top: 2rem; }

/* WooCommerce */
.woo-wrap .woocommerce-products-header__title { font: 700 clamp(32px, 4vw, 48px)/1.05 var(--font-head); text-transform: uppercase; }
.woo-wrap ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 2rem 0; }
.woo-wrap ul.products::before, .woo-wrap ul.products::after { display: none; }
.woo-wrap ul.products li.product, .woo-wrap ul.products[class*=columns-] li.product { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1rem; box-shadow: var(--shadow); width: auto; margin: 0; float: none; }
.woo-wrap ul.products li.product img { border-radius: 1rem; }
.woo-wrap .woocommerce-loop-product__title { font: 700 20px/1.1 var(--font-head); text-transform: uppercase; padding: .5rem 0 !important; }
.woo-wrap .price { color: var(--primary-dark) !important; font-weight: 600; }
.woo-wrap a.button, .woo-wrap button.button, .woo-wrap input.button, .woo-wrap #respond input#submit,
.woo-wrap a.button.alt, .woo-wrap button.button.alt { background: var(--primary); color: #fff; border-radius: 999px; font: 700 15px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: 12px 24px; }
.woo-wrap a.button:hover, .woo-wrap button.button:hover, .woo-wrap button.button.alt:hover { background: var(--primary-dark); color: #fff; }
.woo-wrap .onsale { background: var(--pink); border-radius: 999px; min-height: auto; min-width: auto; line-height: 1; padding: 8px 12px; }
@media (max-width: 1023px) { .woo-wrap ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .woo-wrap ul.products { grid-template-columns: 1fr; } }
/* Catalogue mode (inc/shop.php): contact to buy instead of cart */
.woo-wrap a.button.shop-contact-btn { display: inline-flex; align-items: center; gap: .4rem; }
.shop-contact { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--tint); border: 1px solid #cfe6d9; border-radius: 1rem; scroll-margin-top: 100px; }
.shop-contact__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font: 700 22px/1.1 var(--font-head); text-transform: uppercase; }
.shop-contact__title .vi { color: var(--primary); }
.shop-contact__note { margin: 0 0 1rem; color: var(--muted); font-size: 14px; line-height: 1.55; }
.shop-contact__note strong { color: var(--asphalt); }
.shop-contact__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.shop-contact__actions .btn { padding: 11px 20px; font-size: 15px; }
.price-contact { color: var(--primary-dark); font-weight: 600; }
/* Shop toolbar: result count + sort dropdown (same control as the members sort) */
.woo-wrap .woocommerce-result-count { margin: 0 0 1.5rem; color: var(--muted); font-size: 14px; line-height: 42px; }
.woo-wrap .woocommerce-ordering { margin: 0 0 1.5rem; }
.woo-wrap .woocommerce-ordering select { height: 42px; min-width: 220px; }
.woo-wrap .related.products, .woo-wrap .upsells.products { clear: both; padding: 3rem 0 0; background: none; }
.woo-wrap .related.products > h2, .woo-wrap .upsells.products > h2 { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 767px) { .shop-contact { padding: 1.1rem 1.15rem; } .shop-contact__actions .btn { flex: 1 1 100%; } .woo-wrap .woocommerce-result-count { margin-bottom: .5rem; } .woo-wrap .woocommerce-ordering { float: none; } .woo-wrap .woocommerce-ordering select { width: 100%; } }

/* Team detail */
.team-page { background: var(--canvas); padding-bottom: 5rem; }
.team-hero { position: relative; color: #fff; background: linear-gradient(135deg, #1f3b2f, var(--asphalt)); overflow: hidden; }
.team-hero::before { content: ""; position: absolute; inset: 0; background: var(--team-bg) center/cover; }
.team-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,27,30,.75) 0%, rgba(13,27,30,.35) 55%, rgba(13,27,30,.1) 100%), linear-gradient(180deg, rgba(13,27,30,0) 40%, rgba(13,27,30,.7) 100%); }
.team-hero__inner { position: relative; z-index: 1; min-height: 380px; justify-content: flex-end; padding-block: 4rem 3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.team-hero__back { display: inline-flex; align-items: center; gap: .35rem; font: 600 13px var(--font-body); color: rgba(255,255,255,.75); }
.team-hero__back:hover { color: var(--lime); }
.team-hero__title { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
.team-hero__area { margin: 0; font-size: 17px; color: rgba(255,255,255,.8); }
.team-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.team-fact { display: inline-flex; align-items: center; gap: .5rem; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font: 600 14px var(--font-body); }
.team-fact .vi { color: var(--lime); }

.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; margin-top: -1.5rem; position: relative; z-index: 2; align-items: start; }
.team-main { display: flex; flex-direction: column; gap: 1.5rem; }
.team-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow); }
.team-block__title { font-size: 28px; font-weight: 800; margin-bottom: 1rem; padding-left: .75rem; border-left: 4px solid var(--primary); }
.team-routes { display: grid; gap: .75rem; margin-bottom: 1rem; }
.team-routes--2 { grid-template-columns: repeat(2, 1fr); }
.team-routes--3 { grid-template-columns: repeat(3, 1fr); }
.team-routes a { display: block; overflow: hidden; border-radius: 1rem; background: var(--tint); }
.team-routes img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.team-routes a:hover img { transform: scale(1.03); }
.team-route-desc p { margin: 0 0 .75rem; }

.team-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem; box-shadow: var(--shadow); }
.team-card__label { display: block; margin-bottom: .75rem; font: 700 12px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.team-card--accent { background: var(--tint); border-color: #cfe6d9; }
.team-card__big { margin: 0; font: 700 24px/1.2 var(--font-head); text-transform: uppercase; }
.team-card--dark { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.team-card--dark .team-card__label { color: var(--lime); }
.team-staff, .team-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.team-staff li { display: flex; align-items: center; gap: .75rem; }
.team-staff__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.team-staff__img--ph { display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 22px var(--font-head); }
.team-staff b { display: block; font-size: 15px; }
.team-staff span:not(.team-staff__img) { font-size: 13px; color: var(--muted); }
.team-contacts li { font-size: 15px; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.team-contacts li:last-child { border: 0; padding: 0; }
.team-contacts a { color: var(--lime); }

@media (max-width: 1023px) {
	.team-layout { grid-template-columns: 1fr; margin-top: 1rem; }
	.team-side { position: static; }
}
@media (max-width: 767px) {
	.team-hero__inner { padding-block: 2.5rem 2rem; }
	.team-block { padding: 1.25rem; border-radius: 1rem; }
	.team-routes--2, .team-routes--3 { grid-template-columns: 1fr; }
}

/* Member page (single-vir_member.php); blocks and side cards reuse the team page's */
.member-page { background: var(--canvas); padding-bottom: 5rem; }
.member-hero { position: relative; overflow: hidden; color: #fff; background: var(--brand-gradient); }
/* Topographic contour lines: assets/img/contours.svg is a mask, so their colour is set here. */
.member-hero::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.14); -webkit-mask: url(../img/contours.svg) center / cover no-repeat; mask: url(../img/contours.svg) center / cover no-repeat; pointer-events: none; }
.member-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 2rem 5rem; }
.member-hero__back { display: inline-flex; align-items: center; gap: .35rem; font: 600 13px var(--font-body); color: rgba(255,255,255,.85); }
.member-hero__back:hover { color: #fff; }
.member-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; width: 100%; }
.member-hero__img { flex: none; width: 136px; height: 136px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 12px 30px -6px rgba(13,27,30,.35); }
.member-hero__img--ph { display: grid; place-items: center; font: 800 60px/1 var(--font-head); }
.member-hero__who { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
/* The gradient turns pale toward the lime end; a soft shadow keeps white text legible there. */
.member-hero__name, .member-hero__teams, .member-hero__back { text-shadow: 0 1px 2px rgba(13,27,30,.25), 0 2px 16px rgba(13,27,30,.2); }
.member-hero__name { font-size: clamp(36px, 6vw, 64px); font-weight: 800; overflow-wrap: anywhere; }
.member-hero__teams { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; color: rgba(255,255,255,.92); font-size: 15px; font-weight: 600; }
.member-hero__teams .vi { color: #fff; }
.member-hero__teams a:hover { color: #fff; text-decoration: underline; }
.member-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.member-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.member-fact { display: inline-flex; align-items: center; gap: .45rem; padding: 6px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(13,27,30,.2); backdrop-filter: blur(8px); color: #fff; font: 600 14px/20px var(--font-body); }
.member-fact--strava { border-color: #fc4c02; background: #fc4c02; transition: background .15s; }
.member-fact--strava:hover { background: #e04300; }
.member-stats { list-style: none; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: -3rem 0 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.member-stats li { padding: 1.25rem 1.5rem; }
.member-stats li + li { border-left: 1px solid var(--border); }
.member-stats b { display: block; font: 800 40px/1 var(--font-head); color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.member-stats span { display: block; margin-top: .4rem; font-size: 13px; color: var(--muted); }
.member-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.member-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.member-pbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.member-pb { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--canvas); }
.member-pb__dist { font: 700 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); }
.member-pb__time { font: 800 40px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.member-pb__pace { display: inline-flex; align-items: center; gap: .3rem; font-size: 14px; font-weight: 600; }
.member-pb__pace .vi { color: var(--primary); }
.member-pb__race { font-size: 13px; color: var(--muted); }
.member-pb__rank { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; transition: border-color .15s, color .15s; }
a.member-pb__rank:hover { border-color: var(--primary); color: var(--primary-dark); }
.member-pb.is-top-1 { background: linear-gradient(135deg, #fff7d1, #fff 70%); border-color: #efd98a; }
.member-pb.is-top-1 .member-pb__rank .vi { color: #d4a000; }
.member-pb.is-top-2 .member-pb__rank .vi { color: #8a949b; }
.member-pb.is-top-3 .member-pb__rank .vi { color: #b0702f; }
.member-nopb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border: 1px dashed #c5d3cb; border-radius: 1rem; color: var(--muted); }
.member-nopb p { margin: 0; }
.member-results tr.is-pb { background: var(--tint); }
.member-results td:not(:last-child) { white-space: nowrap; }
.member-results__pb { display: inline-block; margin-right: .5rem; padding: 1px 6px; border-radius: 4px; background: var(--lime); color: var(--asphalt); font: 700 11px/16px var(--font-head); letter-spacing: .06em; vertical-align: 2px; }
.member-bio { font-size: 15px; line-height: 1.6; }
.member-bio p { margin: 0 0 .6rem; }
.member-bio p:last-child { margin: 0; }
.member-bio--empty { margin: 0; color: var(--muted); font-size: 14px; }
.member-bio--empty a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.member-links { list-style: none; margin: 0; padding: 0; }
.member-links li + li { border-top: 1px solid rgba(255,255,255,.12); }
.member-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 0; font-weight: 600; }
.member-links a:hover { color: var(--lime); }
.member-stories { margin-top: 3rem; }
@media (max-width: 1023px) { .member-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
	.member-hero__inner { padding-block: 1.5rem 4.5rem; }
	.member-hero__img { width: 104px; height: 104px; }
	.member-hero__img--ph { font-size: 46px; }
	.member-stats { grid-template-columns: repeat(2, 1fr); }
	.member-stats li { padding: 1rem 1.1rem; }
	.member-stats li:nth-child(3) { border-left: 0; }
	.member-stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
	.member-stats b { font-size: 32px; }
}

/* Team route map */
.team-map { margin-bottom: 1rem; }
.team-map__canvas { height: 420px; border-radius: 1rem; overflow: hidden; background: var(--tint); z-index: 0; }
.team-map__err { padding: 2rem; text-align: center; color: var(--muted); }
.team-map__stats { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.team-map__stats li { background: var(--tint); border-radius: .75rem; padding: .6rem .9rem; }
.team-map__stats b { display: block; font: 800 24px/1.1 var(--font-head); color: var(--primary-dark); }
.team-map__stats span { font-size: 12px; color: var(--muted); }
.team-map__dl { display: inline-block; margin-top: .75rem; font: 600 13px var(--font-body); color: var(--primary-dark); }
@media (max-width: 767px) { .team-map__canvas { height: 300px; } }

/* Route arrows & elevation profile */
.team-arrow { background: none; border: 0; }
.team-arrow svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.team-elev { margin-top: .75rem; background: var(--tint); border-radius: 1rem; padding: .75rem .75rem .5rem; }
.team-elev__title { display: block; margin: 0 0 .25rem .25rem; font: 700 12px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); }
.team-elev__plot { position: relative; }
.team-elev__plot svg { display: block; width: 100%; height: 180px; touch-action: pan-y; cursor: crosshair; }
.team-elev__plot text { font: 11px var(--font-body); fill: var(--muted); }
.team-elev__tip { position: absolute; top: 0; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--asphalt); color: #fff; font: 600 12px var(--font-body); white-space: nowrap; pointer-events: none; }
@media (max-width: 767px) { .team-elev__plot svg { height: 140px; } }

/* History page (template-history.php): intro, slogan band, chapters with photo moments, closing */
.page-content:has(> .history) { padding: 0; }
.history-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding-block: 3rem 4.5rem; }
.history-intro__media { grid-column: 1 / -1; }
.history-intro__text p, .chapter__body > p, .history-future p { margin: 0 0 1rem; color: #33464b; font-size: 16px; line-height: 1.75; }
.history-figure { position: relative; margin: 0; }
.history-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; background: var(--surface-c); }
.history-intro__media .history-img { aspect-ratio: 21 / 9; }
.history-figure figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin-top: .75rem; font-size: 14px; font-weight: 500; line-height: 1.4; }
.history-demo { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(13,27,30,.75); color: var(--lime); font-size: 11px; font-weight: 600; pointer-events: none; }
.history-figure__album { position: relative; display: block; overflow: hidden; border-radius: 1rem; }
.history-figure__album .history-img { transition: transform .3s ease; }
.history-figure__album:hover .history-img { transform: scale(1.04); }
.history-album { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .35rem; padding: 4px 10px; border-radius: 999px; background: rgba(13,27,30,.75); color: #fff; font-size: 12px; font-weight: 600; }
.history-figure figcaption .link-arrow { font-size: 13px; }

.history-slogan { position: relative; overflow: hidden; padding-block: 5rem; background: var(--asphalt); color: #fff; text-align: center; }
.history-slogan p { text-wrap: balance; }
.history-slogan::before { content: ''; position: absolute; top: -35%; left: 50%; translate: -50% 0; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,175,77,.22), transparent 65%); pointer-events: none; }
.history-slogan .container { position: relative; }
/* Brand gradient (green → lime) across the whole slogan; fit-content so it spans exactly the text */
.history-slogan__line { width: fit-content; margin: 0 auto; font: 800 clamp(44px, 6.5vw, 88px)/1 var(--font-head); text-transform: uppercase; text-wrap: balance; background: linear-gradient(90deg, var(--primary), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.history-slogan__lead { max-width: 600px; margin: 1.25rem auto 2.5rem; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.6; }
.history-slogan__lead strong { color: #fff; }
.history-slogan__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 900px; margin-inline: auto; }
.history-slogan__grid > div { padding: 1.5rem 1.75rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; }
.history-slogan__grid h3 { margin-bottom: .5rem; color: var(--lime); font-size: 24px; }
.history-slogan__grid p { margin: 0; color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.6; }
.history-slogan__note { max-width: 680px; margin: 2rem auto 0; color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.7; }

.history-journey { padding-block: 5rem 4rem; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 3.5rem; padding-bottom: 4.5rem; }
.chapter:last-child { padding-bottom: 0; }
.chapter::before { content: ''; position: absolute; top: .5rem; bottom: 0; left: calc(190px + 1.75rem - 1px); width: 2px; background: var(--border); }
.chapter:last-child::before { bottom: auto; height: 3rem; background: linear-gradient(var(--border), transparent); }
.chapter::after { content: ''; position: absolute; top: .9rem; left: calc(190px + 1.75rem - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--canvas); box-shadow: 0 0 0 2px var(--primary); }
.chapter__year span { position: sticky; top: 104px; display: block; color: var(--primary); font: 800 clamp(44px, 5vw, 68px)/1 var(--font-head); text-align: right; text-transform: uppercase; }
.chapter__title { margin-bottom: 1.1rem; font-size: clamp(28px, 3vw, 38px); }
.chapter__body > p { max-width: 760px; }
.chapter__body strong { color: var(--asphalt); }
.history-teams { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .25rem 0 1.5rem; padding: 0; }
.history-teams a, .history-teams span { display: inline-flex; align-items: center; gap: .4rem; padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s; }
.history-teams a .vi { color: var(--primary); }
.history-teams a:hover { border-color: var(--primary); color: var(--primary-dark); }
.history-milestones { display: grid; gap: .6rem; max-width: 760px; list-style: none; margin: .5rem 0 1.5rem; padding: 0; }
.history-milestones li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .85rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: .75rem; color: #33464b; font-size: 15px; line-height: 1.6; }
.history-milestones b { color: var(--primary); font: 700 16px var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem 1.25rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }

.history-future { padding-block: 4.5rem; background: var(--tint); }
.history-future__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.history-future__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (max-width: 1023px) {
	.history-intro { grid-template-columns: 1fr; gap: 1rem; }
	.history-intro__media { margin-bottom: 1rem; }
	.history-intro__media .history-img { aspect-ratio: 16 / 10; }
	.history-future__inner { grid-template-columns: 1fr; gap: 2rem; }
	.chapter { grid-template-columns: 120px minmax(0, 1fr); gap: 2.5rem; }
	.chapter::before { left: calc(120px + 1.25rem - 1px); }
	.chapter::after { left: calc(120px + 1.25rem - 8px); }
	.chapter__year span { font-size: 44px; }
}
@media (max-width: 767px) {
	.history-intro { padding-block: 1.5rem 2.5rem; }
	.history-slogan, .history-journey { padding-block: 3rem; }
	.history-slogan__grid { grid-template-columns: 1fr; }
	.history-future { padding-block: 3rem; }
	.chapter { grid-template-columns: 1fr; gap: .5rem; padding: 0 0 3rem 2rem; }
	.chapter::before { left: 7px; }
	.chapter::after { left: 0; top: .55rem; }
	.chapter__year span { position: static; font-size: 36px; text-align: left; }
	.moments { grid-template-columns: 1fr; }
	.history-milestones li { grid-template-columns: 1fr; gap: .15rem; }
	.moments .history-img { aspect-ratio: 16 / 10; }
}

/* News pages: category listing + single post (Stitch designs) */
.news-page { background: var(--surface); min-height: 60vh; }
.vi { flex: none; vertical-align: -2px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; color: #7a8c91; font-size: 12.5px; font-weight: 500; }
.meta-row .vi { color: var(--primary); }
.meta-row > span { opacity: .6; margin-inline: .15rem; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font: 700 12px/16px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.badge--dark { background: var(--asphalt); color: var(--lime); }
.crumb-band { background: var(--surface-low); padding-block: .9rem; }
.crumb-band .breadcrumb { margin: 0; }

.news-search { position: relative; flex: 0 0 280px; }
.news-search .vi { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: #7a8c91; }
.news-search input { width: 100%; padding: 10px 16px 10px 42px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 400 14px var(--font-body); outline: none; transition: border-color .15s, box-shadow .15s; }
.news-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,175,77,.15); }

.feature { display: grid; grid-template-columns: 7fr 5fr; background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 24px -4px rgba(13,27,30,.08); margin-bottom: 3rem; }
.feature__media, .news-card__media { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #cfe3d6, #9bb8a6); }
.feature__media { min-height: 400px; }
.feature__media img, .news-card__media img, .news-card__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover .feature__media img, .news-card:hover .news-card__media img { transform: scale(1.05); }
.feature__media .badge, .news-card__media .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2.5rem; }
.feature__body h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; }
.feature__body h2 a:hover { color: var(--primary); }
.feature__excerpt { margin: 0; color: var(--muted); }
.feature__body .btn { align-self: flex-start; }
.feature__body .author { margin: 0; }
.feature__body .author span { font-size: 13px; color: var(--muted); }
.news-card__ph { display: grid; place-items: center; color: rgba(255,255,255,.75); }
.news-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.news-section-head h2 { display: flex; align-items: center; gap: .6rem; font-size: clamp(24px, 3vw, 32px); }
.news-section-head .bar { width: 10px; height: 30px; border-radius: 999px; background: var(--primary); }
.news-count { color: var(--muted); font: 700 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.news-grid { gap: 2rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 12px -2px rgba(13,27,30,.06); transition: box-shadow .3s, transform .3s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -4px rgba(13,27,30,.12); }
.news-card__media { aspect-ratio: 16 / 10; }
.news-card__body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.25rem 1.5rem 1.5rem; }
.news-card h3 { font-size: 17px; }
.news-card h3 a:hover { color: var(--primary); }
.news-card__excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.news-card__foot { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: .75rem; }
.news-card__author { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; font-size: 13px; font-weight: 600; }
.news-card__avatar { width: 28px; height: 28px; border-radius: 50%; }
.news-card__more { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; color: var(--primary-dark); font-weight: 600; font-size: 14px; }
.news-card__more:hover { color: var(--primary); }
.archive-empty { max-width: 480px; margin: 1rem auto; padding: 3rem 1.5rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfd8dc; border-radius: 1rem; }
.archive-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.archive-empty h2 { color: var(--asphalt); font-size: 26px; }
.archive-empty p { margin: .5rem 0 1.25rem; }
.navigation.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-c); font-weight: 600; transition: background .15s; }
.pagination a.page-numbers:hover { background: var(--surface-h); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; }

/* Single post */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; }
.article-head { padding-block: 1.75rem 1.5rem; }
.article-head__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.article-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; text-transform: uppercase; max-width: 1000px; }
.article-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.author { display: flex; align-items: center; gap: .85rem; }
.author__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: 13px; font-weight: 600; }
.share__btn { display: inline-flex; align-items: center; gap: .4rem; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--surface-c); color: var(--asphalt); font: 600 13px var(--font-body); cursor: pointer; transition: background .15s, color .15s; }
.share__btn:hover { background: var(--primary); color: #fff; }
.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
.article__lead { margin: 0 0 1.75rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--primary); border-radius: 0 1rem 1rem 0; background: var(--surface-low); font-size: 18px; line-height: 30px; font-style: italic; }
.article__hero { margin: 0 0 2rem; position: relative; border-radius: 1rem; overflow: hidden; }
.article__hero img { display: block; width: 100%; height: auto; }
.article__hero figcaption { padding: .75rem 1rem; background: var(--asphalt); color: rgba(255,255,255,.85); font-size: 13px; }
.entry { font-size: 17px; line-height: 30px; }
.entry > * + * { margin-top: 1.25rem; }
.entry h2 { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; font-size: 32px; }
.entry h2::before { content: ''; width: 8px; height: 28px; border-radius: 999px; background: var(--primary); flex: none; }
.entry h3 { margin-top: 2rem; font-size: 26px; }
.entry a { color: var(--primary-dark); text-decoration: underline; }
.entry img { border-radius: .75rem; }
.entry figure { margin-inline: 0; }
/* Post images fill the content column. Classic-editor captions carry an inline width
   (style="width: 1024px") wider than the column, which pushed them into the sidebar. */
.entry .wp-caption { width: auto !important; max-width: 100%; }
.entry .wp-caption img, .entry img.aligncenter, .entry img.size-large, .entry img.size-full, .entry .wp-block-image img { display: block; width: 100%; height: auto; }
.entry figcaption { margin-top: .5rem; color: var(--muted); font-size: 13px; text-align: center; }
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry blockquote { position: relative; margin-inline: 0; padding: 1.5rem 1.75rem 1.5rem 2rem; border-left: 4px solid var(--primary); border-radius: 0 1rem 1rem 0; background: var(--surface-low); font-size: 19px; line-height: 30px; font-style: italic; }
.entry blockquote p { margin: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.entry th { background: var(--asphalt); color: var(--lime); font: 700 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.article__tags a { padding: 6px 14px; border-radius: 999px; background: var(--surface-c); color: var(--asphalt); font-weight: 500; }
.article__tags a:hover { background: var(--primary); color: #fff; }

.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; font-size: 26px; }
.comments__title .vi { color: var(--primary); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 2rem; }
.comment-list .comment-body { position: relative; margin-bottom: 1rem; padding: 1rem 1.25rem 1rem 5rem; border-radius: 1rem; background: #fff; box-shadow: 0 2px 8px rgba(13,27,30,.05); }
.comment-list .avatar { position: absolute; left: 1.25rem; top: 1rem; width: 44px; height: 44px; border-radius: 50%; }
.comment-list .fn { font-weight: 700; font-style: normal; }
.comment-list .comment-metadata { font-size: 12px; color: #7a8c91; }
.comment-list .comment-content p { margin: .5rem 0 0; }
.comment-list .reply a { color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.comment-respond { margin-top: 1.5rem; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 2px 8px rgba(13,27,30,.05); }
.comment-reply-title { font: 700 22px var(--font-head); text-transform: uppercase; margin-bottom: 1rem; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); font: 400 15px var(--font-body); }
.comment-respond textarea:focus, .comment-respond input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.comment-respond .form-submit { margin: 0; }

.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.side-box { padding: 1.25rem 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 4px 12px -2px rgba(13,27,30,.06); }
.side-box h4 { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font: 700 20px var(--font-head); text-transform: uppercase; }
.side-box h4 .vi { color: var(--primary); }
.side-box__all { margin-left: auto; color: var(--primary); font-size: 13px; letter-spacing: .06em; }
.top-list, .shop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.top-list a, .shop-list a { display: flex; gap: .9rem; align-items: flex-start; }
.top-list__n { flex: none; width: 34px; color: var(--primary); font: 800 28px/1 var(--font-head); }
.top-list li:nth-child(n+2) .top-list__n { color: #c3d3da; }
.top-list strong, .shop-list strong { display: block; font-size: 14px; line-height: 20px; }
.top-list a:hover strong, .shop-list a:hover strong { color: var(--primary); }
.top-list small, .shop-list small { display: block; margin-top: 2px; color: #7a8c91; font-size: 12px; }
.shop-list img { flex: none; width: 64px; height: 64px; border-radius: .6rem; object-fit: cover; }
.shop-list small { color: var(--primary-dark); font-weight: 700; font-size: 13px; }
.related { padding-block: 3rem 5rem; background: #fff; }

@media (max-width: 1023px) {
	.feature { grid-template-columns: 1fr; }
	.feature__media { min-height: 0; aspect-ratio: 16 / 10; }
	.article-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
}
@media (max-width: 767px) {
	.news-search, .page-header__aside .news-search { flex: 1 1 100%; width: auto; }
	.page-header__aside { flex: 1 1 100%; }
	.page-header__aside > .btn { flex: 1 1 100%; }
	.section-tabs { gap: 1.25rem; margin-inline: -1rem; padding-inline: 1rem; }
	.header-stats b { font-size: 26px; }
	.member-filter { flex: 1 1 100%; }
	.feature__body { padding: 1.5rem; }
	.entry { font-size: 16px; line-height: 28px; }
	.entry h2 { font-size: 26px; }
	.comment-list .comment-body { padding-left: 1.25rem; padding-top: 4.5rem; }
	.comment-list .children { margin-left: 1rem; }
}

/* Members list */
.member-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.member-count { margin: 0; color: var(--muted); font-size: 14px; }
.member-count b { color: var(--asphalt); }
.member-count a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.member-filter { display: flex; gap: .6rem; flex: 0 1 520px; }
.member-filter .news-search { flex: 1 1 0; min-width: 0; }
.member-sort { flex: none; }
.member-sort select, .woo-wrap .woocommerce-ordering select { height: 100%; padding: 10px 38px 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a6a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: 500 14px var(--font-body); color: var(--asphalt); cursor: pointer; }
.member-sort select:focus, .woo-wrap .woocommerce-ordering select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,175,77,.15); }
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.member-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); }
.member-card__head { display: flex; align-items: center; gap: .85rem; }
.member-card__img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.member-card__img--ph { display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 22px var(--font-head); }
.member-card__who { flex: 1; min-width: 0; }
.member-card h3 { font-size: 16px; }
.member-card__teams { margin: .1rem 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-card__strava { display: inline-flex; align-items: center; gap: .3rem; flex: none; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fff1ea; color: #d64102; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.member-card__strava:hover { background: #fc4c02; color: #fff; }
/* The name's link covers the whole card; Strava stays clickable above it. */
.member-card { position: relative; transition: border-color .15s, box-shadow .15s; }
.member-card:hover { border-color: #cfe6d9; box-shadow: 0 12px 28px -10px rgba(13,27,30,.18); }
.member-card:hover h3 { color: var(--primary-dark); }
.member-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.member-card__link:focus-visible { outline: none; }
.member-card:has(.member-card__link:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.member-card__strava { position: relative; z-index: 1; }
.member-card__pbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding-top: .9rem; border-top: 1px solid var(--border); }
.member-card__pbs div { flex: 1 1 0; min-width: 76px; padding: .45rem .65rem; border-radius: .6rem; background: var(--canvas); }
.member-card__pbs dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.member-card__pbs dd { margin: 0; font: 700 18px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.member-card__pbs .is-sorted { background: #e0f4e8; }
.member-card__pbs .is-sorted dd { color: var(--primary-dark); }
.member-card__nopb { display: flex; align-items: center; min-height: calc(.9rem + 54px); margin: 0; padding-top: .9rem; border-top: 1px solid var(--border); color: #8a979b; font-size: 13px; }
.member-pager { margin-top: 2rem; display: flex; justify-content: center; }
.member-pager .page-numbers { display: inline-block; min-width: 38px; padding: 8px 12px; margin: 0 2px; text-align: center; border-radius: 999px; border: 1px solid var(--border); }
.member-pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.member-empty { padding: 3rem 0; text-align: center; color: var(--muted); }

/* Achievements */
.achv-lead { max-width: 52rem; margin: 0 0 1.5rem; color: var(--muted); font-size: 17px; line-height: 1.6; }
.achv-section { margin-bottom: 3rem; }
.achv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.achv-tabs { display: inline-flex; gap: .25rem; max-width: 100%; padding: .25rem; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.achv-tab { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font-body); white-space: nowrap; color: var(--muted); }
.achv-tab:hover { color: var(--asphalt); background: var(--canvas); }
.achv-tab.is-active { background: var(--primary); color: #fff; }
.achv-search { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex: 0 1 420px; }
.achv-search input[type=search] { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; font: 400 15px var(--font-body); }
.achv-search .btn { padding: 10px 20px; }
.achv-bar .achv-tabs { flex: 0 1 auto; min-width: 0; }
@media (min-width: 900px) {
	.achv-bar { flex-wrap: nowrap; align-items: center; }
	.achv-bar .achv-tabs { flex: 0 1 auto; }
	.achv-bar .achv-search { flex: 0 0 300px; flex-wrap: nowrap; }
	.achv-search__reset { white-space: nowrap; }
}
.achv-search__reset { font-size: 13px; color: var(--muted); text-decoration: underline; }
/* "Sub" band dropdown (FM / HM) in the search form; styled like the members sort (.member-sort) */
.achv-sub select { height: 42px; }
@media (min-width: 900px) { .achv-bar .achv-search--sub { flex-basis: 440px; } }
.achv-sub-note { margin: -.5rem 0 1.25rem; font-size: 13px; color: var(--muted); }
.achv-sub-note a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.achv-who__race { display: none; }
/* Below 900px the form is one row: band, then the search box with an icon button pulled inside its right end.
   16px text keeps iOS from zooming on focus. */
@media (max-width: 899px) {
	.achv-search { flex: 1 1 100%; }
	.achv-search input[type=search], .achv-sub select { font-size: 16px; }
	.achv-search input[type=search] { height: 42px; padding-left: 14px; padding-right: 46px; }
	.achv-search .btn { position: relative; flex: none; width: 34px; height: 34px; margin-left: -46px; padding: 0; border-width: 0; }
	.achv-search__label { display: none; }
	.achv-search__reset { flex-basis: 100%; }
	.achv-sub select { padding: 10px 30px 10px 14px; background-position: right 8px center; }
}
.achv-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.achv-table-scroll { overflow-x: auto; }
.achv-table { width: 100%; border-collapse: collapse; text-align: left; }
.achv-table thead { background: var(--asphalt); color: #fff; }
.achv-table th { padding: 1rem; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.achv-table td { padding: .9rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.achv-table .c { text-align: center; }
.achv-table .r { text-align: right; }
.achv-table tbody tr:hover { background: var(--canvas); }
.achv-table tr.is-top { background: var(--tint); }
.achv-table__rank { font: 700 22px var(--font-head); white-space: nowrap; }
.achv-table__rank .vi { vertical-align: -3px; margin-right: 4px; }
.is-top-1 .achv-table__rank { color: #d4a000; }
.is-top-2 .achv-table__rank { color: #8a949b; }
.is-top-3 .achv-table__rank { color: #b0702f; }
.achv-table__time { font: 700 22px var(--font-head); color: var(--primary); white-space: nowrap; }
.achv-who { display: flex; align-items: center; gap: .75rem; min-width: 200px; }
.achv-table td:last-child { min-width: 220px; }
.achv-who a:hover { color: var(--primary-dark); }
.achv-who strong { display: block; }
.achv-who small { color: var(--muted); font-size: 13px; }
.achv-who__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.achv-who__img--ph { display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 18px var(--font-head); }
.achv-table__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--tint); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.achv-table__foot .member-pager { margin: 0; }
/* Phones: rank, runner, chip time; the race moves under the name, pace is left out. */
@media (max-width: 640px) {
	.achv-table { table-layout: fixed; }
	.achv-table th, .achv-table td { padding: .75rem .5rem; }
	.achv-table th:first-child, .achv-table td:first-child { width: 52px; padding-left: .75rem; }
	.achv-table th:nth-child(3) { width: 84px; padding-left: .25rem; padding-right: .75rem; }
	.achv-table td:nth-child(3) { padding-left: .25rem; padding-right: .75rem; }
	.achv-table th:nth-child(n+4), .achv-table td:nth-child(n+4) { display: none; }
	.achv-table__rank { font-size: 18px; }
	.achv-table__rank .vi { display: none; }
	.achv-table__time { font-size: 18px; }
	.achv-who { min-width: 0; gap: .6rem; }
	.achv-who > div { min-width: 0; }
	.achv-who__img { width: 36px; height: 36px; }
	.achv-who strong { line-height: 1.3; }
	.achv-who small { display: block; overflow: hidden; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
	.achv-who__race { display: block; margin-top: .15rem; font-size: 12px; }
}

/* Dropdown submenu */
.nav__list > li { position: relative; }
.nav__list .sub-menu { list-style: none; margin: 0; padding: .5rem 0; }
@media (min-width: 768px) {
	.nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s; z-index: 60; }
	.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav__list .sub-menu a { display: block; padding: .6rem 1.1rem; white-space: nowrap; }
	.nav__list > li.menu-item-has-children > a::after { content: ''; width: 14px; height: 14px; margin-left: .3rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@media (max-width: 767px) {
	.nav__list .sub-menu { padding: 0 0 0 1rem; }
}

/* Community stories: auth, editor, my stories */
.auth { max-width: 460px; margin: 0 auto; padding-block: 1rem 2rem; }
.auth__lead { color: var(--muted); margin: 0 0 1.25rem; }
.auth__alt { text-align: center; font-size: 14px; color: var(--muted); margin: 1.25rem 0 0; }
.auth__alt a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.form--resend { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form--inline { display: inline; }
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; margin-bottom: .35rem; font: 700 14px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.field small { font: 400 12px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); font: 400 16px/1.4 var(--font-body); background: #fff; color: var(--asphalt); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field__hint { margin: .4rem 0 0; font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; font-size: 14px; }
.auth__submit { width: 100%; }
.auth__or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; font-size: 13px; color: var(--muted); }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn--google { width: 100%; padding-block: 14px; gap: .75rem; background: #fff; color: var(--asphalt); border-color: var(--border); font: 600 15px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.btn--google:hover { border-color: var(--asphalt); }
.form > .login-sub { margin-bottom: 1.1rem; }
.btn--auto { width: auto; margin-top: 0; padding-inline: 22px; }
.btn--danger { background: #fde8ec; color: #b4163a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1.25rem; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px; }
.notice--ok { background: #e0f4e8; color: #0b6b34; }
.notice--err { background: #fde8ec; color: #b4163a; }
.story-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 1.25rem; }
.story-cta__link { font: 700 15px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--primary-dark); }
.story-cta__link:hover { text-decoration: underline; }

.storyform { max-width: 860px; margin: 0 auto; padding-bottom: 3rem; }
.storyform__title { font: 700 28px/1.2 var(--font-head) !important; }
.storyform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.storyform__thumb { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.storyform__thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-lg); }
.storyform__thumb .check { margin: 0; }
.storyform__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.storyform .wp-editor-wrap { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.storyform .mce-panel, .storyform .mce-toolbar-grp { border-color: var(--border) !important; }
.storyform__preview { margin-top: 1rem; }
.storyform__previewbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding: 10px 14px; background: var(--tint); border-radius: var(--radius-lg); }
.storyform__preview .article-title { margin-bottom: 1rem; }

.mystories { max-width: 860px; margin: 0 auto; padding-bottom: 3rem; }
.mystories__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.mystories__bar p { margin: 0; }
.mystories__actions { display: flex; gap: .6rem; }
.mystories__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mystory { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.mystory h3 { font-size: 22px; margin: .35rem 0; text-transform: none; }
.mystory .meta-row { margin: 0; color: var(--muted); font-size: 13px; }
.mystory__note { margin: .5rem 0 0; padding: 8px 12px; border-radius: var(--radius-lg); background: #fde8ec; color: #b4163a; font-size: 14px; }
.mystory__actions { display: flex; gap: .5rem; align-items: center; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font: 700 12px/18px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.status--draft { background: #e9edf0; color: var(--muted); }
.status--pending { background: #fff3cd; color: #8a6100; }
.status--publish { background: #e0f4e8; color: var(--primary-dark); }
@media (max-width: 640px) { .storyform__row { grid-template-columns: 1fr; } .storyform__actions .btn { flex: 1 1 100%; } }

/* Login (design: Stitch "Đăng Nhập") */
.login-page { position: relative; overflow: hidden; padding-block: 3rem 4rem; background: var(--canvas); }
.login-page::before, .login-page::after { content: ''; position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.login-page::before { top: -8rem; left: -8rem; width: 24rem; height: 24rem; background: rgba(0,175,77,.10); }
.login-page::after { top: 40%; right: -8rem; width: 30rem; height: 30rem; background: rgba(209,215,46,.10); }
.login-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: stretch; }
.login-art { min-height: 560px; border-radius: .75rem; background: var(--asphalt) center/cover no-repeat; box-shadow: 0 20px 40px -12px rgba(13,27,30,.35); position: relative; overflow: hidden; }
.login-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,27,30,.45), transparent 40%); }
.login-card { align-self: center; background: #fff; border-radius: .75rem; padding: 2.5rem; box-shadow: 0 10px 30px -8px rgba(13,27,30,.14); }
.login-title { margin: 0 0 1.75rem; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; }
.login-card .field label { font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.login-card .req { color: #ba1a1a; }
.login-card .field__hint { margin: .3rem 0 0 .25rem; font-size: 12px; }
.login-card .field__hint--row { margin: -.8rem 0 1.1rem .25rem; }
/* iOS collapses an empty date field and centres its value. */
.login-card .field input[type="date"] { min-height: 46px; }
.login-card .field textarea { display: block; min-height: 104px; resize: vertical; }
.login-card .field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.input-icon { position: relative; }
.input-icon > .vi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.login-card .input-icon input { padding-left: 46px; padding-right: 46px; border: 0; background: var(--tint); border-radius: var(--radius); }
.login-card .input-icon input:focus { background: #fff; box-shadow: 0 4px 12px rgba(13,27,30,.1); outline: 2px solid var(--primary); }
.input-icon__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.input-icon__toggle:hover { color: var(--primary); }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-size: 14px; }
.login-row .check { margin: 0; }
.login-row a { color: var(--primary); font-weight: 600; }
.login-card .auth__submit { padding-block: 15px; letter-spacing: .12em; }
.login-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding: 1rem 1.1rem; border-radius: .75rem; background: var(--tint); }
.login-join > div { flex: 1 1 260px; }
.login-join strong { display: block; font-size: 15px; }
.login-join p { margin: .15rem 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.login-join .btn--dark { white-space: nowrap; padding: 10px 18px; font-size: 14px; }
.login-card .form--resend { margin-top: 1.5rem; }
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; gap: 1.5rem; } .login-art { order: 2; min-height: 200px; } .login-card { padding: 1.5rem; } }

/* Header account (design: Stitch "Đăng Ký Thành Viên" header) */
.account { position: relative; flex-shrink: 0; }
.account__btn { display: flex; align-items: center; gap: .6rem; height: 42px; padding: 0 .75rem 0 .35rem; border: 0; border-radius: 999px; background: var(--surface-c); color: var(--asphalt); cursor: pointer; font: inherit; text-align: left; }
.account__btn:hover { background: var(--surface-h); }
.account__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--primary); }
.account__who { display: flex; flex-direction: column; line-height: 1.15; }
.account__who strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px var(--font-body); }
.account__who em { font: 700 10px var(--font-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.account__btn .vi { transition: transform .15s; }
.account:hover .account__btn .vi, .account.is-open .account__btn .vi { transform: rotate(180deg); }
.account__menu { position: absolute; right: 0; top: 100%; z-index: 60; width: 210px; margin-top: 8px; padding: .5rem 0; background: #fff; border: 1px solid var(--surface-c); border-radius: .75rem; box-shadow: 0 12px 28px rgba(13,27,30,.12); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.account::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.account:hover .account__menu, .account:focus-within .account__menu, .account.is-open .account__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.account__menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; font-size: 14px; }
.account__menu a:hover { background: var(--tint); color: var(--primary-dark); }
.account__menu a.is-danger { color: #ba1a1a; }
.account__menu a.is-danger:hover { background: #fde8ec; color: #ba1a1a; }
.account__menu hr { border: 0; height: 1px; margin: .35rem 0; background: var(--surface-c); }
@media (max-width: 767px) { .account__who, .account__btn > .vi { display: none; } .account__btn { padding-right: .35rem; } .site-header__login { padding: 0 14px; } .site-header__cta { display: none; } }

/* Register + recover (design: Stitch "Đăng Ký Thành Viên", "Quên Mật Khẩu") */
.login-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--surface-c); }
.login-card__head .login-title { margin-bottom: .35rem; }
.login-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: .75rem; background: var(--surface-c); color: var(--primary); }
.login-sub { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.login-sub a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.login-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.login-card .field > label { display: flex; align-items: center; gap: .4rem; }
.login-card .field > label .vi { color: var(--primary); }
.login-card .field input[type="text"], .login-card .field input[type="email"], .login-card .field input[type="tel"], .login-card .field input[type="url"], .login-card .field input[type="search"], .login-card .field input[type="date"], .login-card .field input[type="password"], .login-card .field select, .login-card .field textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: .75rem; background: var(--canvas); font: 400 16px/1.4 var(--font-body); color: var(--asphalt); box-shadow: inset 0 1px 3px rgba(13,27,30,.08); }
.login-card .field select { appearance: none; padding-right: 40px; cursor: pointer; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.login-card .field input:focus, .login-card .field select:focus { outline: 2px solid var(--primary); background-color: #fff; }
.login-card .input-icon--plain input { padding-left: 14px; }
.login-card .input-icon input { border-radius: var(--radius); }
.login-card .input-icon--plain input { border-radius: .75rem; }
.login-card--bar { position: relative; overflow: hidden; padding-top: 2.75rem; }
.login-card--bar::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--primary), var(--lime), var(--primary)); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font: 700 14px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--primary); }
.recover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; position: relative; z-index: 1; }
.recover-grid .login-art { min-height: 460px; }
.recover-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.recover-head .login-card__icon { width: 56px; height: 56px; }
.recover-head .login-title { margin: .2rem 0 0; font-size: clamp(28px, 3.4vw, 38px); }
.badge-dark { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--asphalt); color: var(--lime); font: 700 11px/16px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.label-split { justify-content: space-between; }
.label-split em { font: 500 13px var(--font-body); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--primary); }
.recover-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--surface-c); font: 600 13px var(--font-body); }
.recover-foot a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.recover-foot a:hover { color: var(--primary); }
@media (max-width: 900px) { .recover-grid { grid-template-columns: 1fr; } .recover-grid .login-art { min-height: 200px; } .login-card .field-row { grid-template-columns: 1fr; gap: 0; } }
.login-card .field .input-icon:not(.input-icon--plain) input[type] { padding-left: 46px; padding-right: 46px; }
.recover-grid .login-card { align-self: stretch; display: flex; flex-direction: column; }
.recover-grid .login-card .recover-foot { margin-top: auto; }
.recover-grid .login-card form { margin-bottom: 1.75rem; }
.login-card .login-sub { margin-bottom: 1.25rem; }
.login-card__head .login-sub { margin-bottom: 0; }
@media (min-width: 768px) { .site-header__login { margin-right: -1.25rem; } }

/* Profile (template-profile.php): summary card beside the forms; the form cards reuse .login-card field styles */
.profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.profile-card { background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; box-shadow: var(--shadow); }
.profile-card__title { margin: 0 0 1.5rem; font-size: 26px; }
.profile-main { display: grid; gap: 1.5rem; }
.profile-main > .notice { margin: 0; }
.profile-id { position: sticky; top: 100px; text-align: center; }
.profile-id__avatar { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--tint); }
/* Avatar upload: camera badge and "Đổi ảnh" both open the hidden file input, which submits on change */
.profile-avatar { position: relative; width: 96px; margin: 0 auto .6rem; }
.profile-avatar__edit { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; transition: background .15s; }
.profile-avatar__edit:hover { background: var(--primary-dark); }
#pf-avatar:focus-visible + .profile-avatar__edit { outline: 2px solid var(--primary); outline-offset: 2px; }
.profile-avatar__actions { display: flex; justify-content: center; gap: 1rem; margin: 0 0 1rem; font-size: 13px; }
.profile-avatar__actions label, .profile-avatar__actions button { padding: 0; border: 0; background: none; font: 600 13px var(--font-body); color: var(--primary-dark); cursor: pointer; }
.profile-avatar__actions label:hover, .profile-avatar__actions button:hover { text-decoration: underline; }
.profile-avatar__actions .is-danger { color: #ba1a1a; }
.profile-id__name { margin: 0 0 .6rem; font-size: 30px; overflow-wrap: anywhere; }
.profile-id__note { margin: .6rem 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.profile-id__public { display: flex; justify-content: center; margin-top: .75rem; }
.profile-facts { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .75rem; text-align: left; font-size: 14px; }
.profile-facts li { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; }
.profile-facts .vi { flex: none; color: var(--primary); }
/* Personal bests: own group under the account facts, time first, rank and race on a second line */
.profile-facts li:not(.profile-facts__pb) + .profile-facts__pb { margin-top: .25rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.profile-facts li.profile-facts__pb { align-items: flex-start; }
.profile-facts__pb .vi { color: #a87f00; }
.profile-facts__pb b { font: 800 18px/1 var(--font-head); color: var(--asphalt); }
.profile-facts__pb small { display: block; margin-top: .2rem; font-size: 12px; color: var(--muted); }
.profile-facts__pb--pending .vi { color: var(--muted); }
.profile-facts li.profile-facts__pb--cta { flex-direction: column; align-items: stretch; gap: .6rem; }
.profile-facts__pb--cta .btn { width: 100%; margin: 0; }
.profile-stats { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
.profile-stats li + li { border-left: 1px solid var(--border); }
.profile-stats b { display: block; font: 800 28px/1 var(--font-head); color: var(--primary-dark); }
.profile-stats span { font-size: 12px; color: var(--muted); }
.profile-id__links { display: grid; gap: .6rem; margin-top: 1.25rem; }
.profile-id__links .btn { width: 100%; margin: 0; }
.profile-id__logout { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: 14px; font-weight: 600; color: #ba1a1a; }
.login-card .field input[readonly] { color: var(--muted); cursor: default; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile-id { position: static; } .profile-card { padding: 1.5rem; } }

/* Result update (template-result-update.php): the two ways side by side, then the results already sent */
.result-update { display: grid; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.result-update > .notice { margin: 0; }
.result-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.result-methods .login-card { align-self: stretch; }
.result-method__step { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; padding: 4px 12px; border-radius: 999px; background: var(--tint); font: 700 12px/16px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); }
.result-method .profile-card__title { margin-bottom: .5rem; }
.result-method .login-sub a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.result-method .field__hint a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }
.result-method__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.result-method__note { display: flex; gap: .5rem; margin: 1.5rem 0 0; padding: 12px 14px; border-radius: .75rem; background: var(--canvas); font-size: 13px; line-height: 20px; color: var(--muted); }
.result-method__note .vi { flex: none; margin-top: 2px; color: var(--primary); }
.login-card .field input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed #c5d3cb; border-radius: .75rem; background: var(--canvas); font: 400 14px var(--font-body); color: var(--muted); cursor: pointer; }
.login-card .field input[type="file"]:hover { border-color: var(--primary); }
.login-card .field input[type="file"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.login-card .field input[type="file"]::file-selector-button { margin-right: .75rem; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--asphalt); color: var(--lime); font: 700 13px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.result-requests__list { list-style: none; margin: 0; padding: 0; }
.result-request { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.result-request:first-child { padding-top: 0; border-top: 0; }
.result-request .status { justify-self: start; }
.result-request__main b { font: 800 18px/1 var(--font-head); }
.result-request__main small { display: block; margin-top: .2rem; font-size: 13px; color: var(--muted); }
.result-request__date { font-size: 13px; color: var(--muted); }
.result-request__note { grid-column: 2 / -1; margin: 0; padding: 8px 12px; border-radius: var(--radius-lg); background: #fde8ec; color: #b4163a; font-size: 14px; }
.status--rejected { background: #fde8ec; color: #b4163a; }
@media (min-width: 901px) { .login-card .field-row--race { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .result-methods { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .result-request { grid-template-columns: minmax(0, 1fr) auto; } .result-request__main { grid-column: 1 / -1; } .result-request__date, .result-request__pb { grid-row: 1; grid-column: 2; } .result-request__note { grid-column: 1 / -1; } }

/* BestMarathon athlete picker (vir_vbm_picker() in inc/vbm.php, assets/js/vbm-picker.js); wp-admin styles its own */
.vbm-pick [hidden] { display: none !important; }
.vbm-pick__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; padding: 12px 14px; border-radius: .75rem; background: var(--tint); }
.vbm-pick__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-h); }
.vbm-pick__who { flex: 1 1 140px; min-width: 0; }
.vbm-pick__info { flex: 1; min-width: 0; }
.vbm-pick__who b, .vbm-pick__info b { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.vbm-pick__who small { display: block; margin-top: .15rem; font-size: 13px; }
.vbm-pick__who code { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--asphalt); }
.vbm-pick__tools { display: flex; gap: .4rem; margin-left: auto; }
.vbm-pick__bar { display: flex; align-items: center; gap: .5rem; }
.login-card .field .vbm-pick__q { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; }
.vbm-pick__btn { flex: none; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--asphalt); font: 600 13px/1.2 var(--font-body); cursor: pointer; transition: border-color .15s, color .15s; }
.vbm-pick__btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.vbm-pick__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.vbm-pick__status { margin: .35rem 0 0 .25rem; font-size: 12px; line-height: 1.5; color: var(--muted); }
.vbm-pick__list { list-style: none; margin: .5rem 0 0; padding: 4px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: .75rem; background: #fff; }
.vbm-pick__opt { display: flex; align-items: center; gap: .75rem; width: 100%; padding: 8px 10px; border: 0; border-radius: .5rem; background: none; color: inherit; font: 400 14px/1.4 var(--font-body); text-align: left; cursor: pointer; }
.vbm-pick__opt:hover { background: var(--tint); }
.vbm-pick__opt:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--tint); }
.vbm-pick__opt:disabled { cursor: not-allowed; opacity: .55; background: none; }
.vbm-pick__opt .vbm-pick__avatar { width: 44px; height: 44px; }
.vbm-pick__meta { display: block; margin-top: .1rem; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.vbm-pick__taken { color: #b4163a; }
.vbm-pick__tag { display: inline-block; margin-left: .3rem; padding: 1px 8px; border-radius: 999px; background: var(--lime); color: var(--asphalt); font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.vbm-pick.is-busy .vbm-pick__status::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; vertical-align: -1px; animation: vbm-spin .7s linear infinite; }
@keyframes vbm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vbm-pick.is-busy .vbm-pick__status::after { animation: none; } }

/* Initial avatars: colour picked from the name by vir_member_avatar() */
.av-0 { background: var(--primary); color: #fff; }
.av-1 { background: #0f7e8c; color: #fff; }
.av-2 { background: var(--asphalt-2); color: var(--lime); }
.av-3 { background: var(--lime); color: var(--asphalt); }
.av-4 { background: #2f6b4f; color: #fff; }
.hof .av-2 { background: rgba(255,255,255,.12); }

/* Regulations page (template-regulations.php): sticky contents, one card per part, org chart, role / fund cards, income table */
html:has(.reg) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.reg) { scroll-behavior: auto; } }
.reg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.reg-toc { position: sticky; top: 104px; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; }
.reg-toc__title, .reg-label, .reg-card__label { margin: 0 0 .6rem; font: 700 13px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reg-toc ol { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.reg-toc a { display: flex; gap: .5rem; padding: 8px 10px; border-radius: .5rem; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; transition: background .15s, color .15s; }
.reg-toc a b { flex: none; min-width: 2.1em; color: var(--primary); font: 700 15px/1.3 var(--font-head); }
.reg-toc a:hover { background: var(--canvas); color: var(--asphalt); }
.reg-toc a.is-active { background: var(--tint); color: var(--asphalt); font-weight: 600; }
.reg-toc__date { display: flex; gap: .5rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.5; }
.reg-toc__date .vi { flex: none; margin-top: 2px; color: var(--primary); }
.reg-main { display: grid; gap: 1.5rem; min-width: 0; }
.reg-section { scroll-margin-top: 100px; padding: 2.25rem 2.5rem 2.5rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; }
.reg-section__head { margin-bottom: 1.5rem; }
.reg-section__head .eyebrow { display: block; margin-bottom: .35rem; }
.reg-section__head h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; text-wrap: balance; }
.reg-sub { display: flex; gap: .4rem; margin: 2.25rem 0 1rem; font-size: 22px; font-weight: 700; }
.reg-sub span { color: var(--primary); }
.reg-section__head + .reg-sub { margin-top: 0; }
.reg-label { margin-top: 1.5rem; }
.reg-list { display: grid; gap: .6rem; max-width: 780px; list-style: none; margin: 0; padding: 0; }
.reg-list li { position: relative; padding-left: 1.4rem; color: #33464b; font-size: 15.5px; line-height: 1.65; }
.reg-list li::before { content: ''; position: absolute; top: .62em; left: .2rem; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.reg-list strong { color: var(--asphalt); font-weight: 600; }
.reg-callout { display: flex; gap: .75rem; margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; background: var(--tint); border: 1px solid #cfe6d9; border-radius: .75rem; }
.reg-callout > .vi { flex: none; margin-top: 3px; color: var(--primary); }
.reg-callout p { margin: 0 0 .5rem; font-size: 15px; }
.reg-callout .reg-list { gap: .35rem; }
.reg-callout .reg-list li { font-size: 14.5px; line-height: 1.6; }
.reg-callout .reg-callout__note { margin: .75rem 0 0; color: var(--muted); font-size: 14px; }

/* Org chart: dark top node, connector lines drawn with pseudo-elements */
.reg-chart { --line: 28px; --gap: 1.25rem; display: grid; justify-items: center; max-width: 640px; margin: .5rem auto 0; }
.reg-chart__node { display: block; width: min(100%, 360px); padding: 1rem 1.25rem; background: var(--tint); border: 1.5px solid #cfe6d9; border-radius: .9rem; text-align: center; transition: border-color .15s, transform .15s; }
.reg-chart__node:hover { border-color: var(--primary); transform: translateY(-2px); }
.reg-chart__node b { display: block; font: 700 22px/1.1 var(--font-head); text-transform: uppercase; }
.reg-chart__node span { display: block; margin-top: .35rem; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.reg-chart__node--top { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.reg-chart__node--top b { color: var(--lime); }
.reg-chart__node--top span { color: rgba(255,255,255,.72); }
.reg-chart__link { width: 2px; height: var(--line); background: var(--primary); }
.reg-chart__leaves { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); width: 100%; padding-top: var(--line); }
.reg-chart__leaves::before { content: ''; position: absolute; top: 0; left: calc((100% - var(--gap)) / 4); right: calc((100% - var(--gap)) / 4); height: 2px; background: var(--primary); }
.reg-chart__leaves .reg-chart__node { position: relative; width: 100%; background: #fff; border-color: var(--border); }
.reg-chart__leaves .reg-chart__node::before { content: ''; position: absolute; bottom: 100%; left: 50%; width: 2px; height: var(--line); margin-left: -1px; background: var(--primary); }
.reg-chart__leaves .reg-chart__node b { font-size: 19px; }

/* Ban quản trị: role cards, the chair's card in dark */
.reg-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reg-role { padding: 1.35rem 1.5rem 1.5rem; background: var(--canvas); border: 1px solid var(--border); border-radius: .9rem; }
.reg-role--wide { grid-column: 1 / -1; }
.reg-role__title { margin: 0; color: var(--primary-dark); font: 700 13px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.reg-role__name { margin: .35rem 0 0; font: 600 19px/1.35 var(--font-body); }
.reg-role__help { margin: .15rem 0 0; color: var(--muted); font-size: 13.5px; }
.reg-role .reg-list { gap: .45rem; margin-top: 1rem; }
.reg-role .reg-list li { font-size: 14.5px; line-height: 1.55; }
.reg-role--lead { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.reg-role--lead .reg-role__title { color: var(--lime); }
.reg-role--lead .reg-list li { color: rgba(255,255,255,.82); }
.reg-role--lead .reg-list li::before { background: var(--lime); }
.reg-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.reg-people li { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: .75rem; }
.reg-people b { font-weight: 600; line-height: 1.4; }
.reg-people span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Cards: member types, perks, funds */
.reg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reg-card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.35rem 1.5rem 1.5rem; background: var(--canvas); border: 1px solid var(--border); border-radius: .9rem; }
.reg-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .25rem; border-radius: .75rem; background: var(--primary); color: #fff; }
.reg-card h4 { margin: 0; font: 600 18px/1.35 var(--font-body); }
.reg-card > p { margin: 0; color: #33464b; font-size: 14.5px; line-height: 1.6; }
.reg-card > p strong { color: var(--asphalt); font-weight: 600; }
.reg-card .link-arrow { margin-top: auto; padding-top: .5rem; }
.reg-card .reg-list { gap: .4rem; }
.reg-card .reg-list li { font-size: 14.5px; line-height: 1.55; }
.reg-card__label { margin: .75rem 0 0; font-size: 12px; }
.reg-perk .reg-perk__pct { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .25rem; color: var(--primary); font: 800 60px/1 var(--font-head); }
.reg-perk__pct small { color: var(--muted); font: 700 14px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.reg-perk h4 { margin-bottom: .5rem; }
.reg-perk--dark { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.reg-perk--dark .reg-perk__pct { color: var(--lime); }
.reg-perk--dark .reg-perk__pct small { color: rgba(255,255,255,.6); }
.reg-perk--dark .reg-list li { color: rgba(255,255,255,.82); }
.reg-perk--dark .reg-list li::before { background: var(--lime); }

/* Quỹ: income table, spend yes / no */
.reg-table-wrap { border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; text-align: left; }
.reg-table th { padding: .8rem 1.1rem; background: var(--asphalt); color: #fff; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.reg-table td { padding: .9rem 1.1rem; border-top: 1px solid var(--border); vertical-align: top; color: #33464b; }
.reg-table td:first-child { width: 52%; color: var(--asphalt); font-weight: 600; }
.reg-table td small { display: block; margin-top: .2rem; color: var(--muted); font-size: 13px; font-weight: 400; }
.reg-table td strong { color: var(--primary-dark); font-weight: 600; }
.reg-table tbody tr:nth-child(even) { background: var(--canvas); }
.reg-spend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.reg-spend__col { padding: 1.25rem 1.4rem 1.4rem; border: 1px solid; border-radius: .9rem; }
.reg-spend__col h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; font: 600 16px var(--font-body); }
.reg-spend__col .reg-list li { font-size: 14.5px; line-height: 1.6; }
.reg-spend__col--yes { background: #f0f9f3; border-color: #cfe6d9; }
.reg-spend__col--yes h4 .vi { color: var(--primary); }
.reg-spend__col--no { background: #fff5f6; border-color: #f7d4db; }
.reg-spend__col--no h4 .vi { color: #b4163a; }
.reg-spend__col--no .reg-list li::before { background: #b4163a; }
.reg-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.75rem 2.5rem; background: var(--asphalt); border-radius: 1rem; }
.reg-end p { max-width: 560px; margin: 0; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; }
.reg-end b { display: block; margin-top: .35rem; color: var(--lime); font: 700 18px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.reg-end .btn { width: auto; }

@media (max-width: 1100px) { .reg-cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 1023px) {
	.reg { grid-template-columns: 1fr; gap: 1.25rem; }
	.reg-toc { position: static; }
	.reg-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 767px) {
	.reg-section { padding: 1.5rem 1.15rem 1.75rem; }
	.reg-section__head { margin-bottom: 1.1rem; }
	.reg-sub { margin-top: 1.75rem; font-size: 20px; }
	.reg-toc ol { grid-template-columns: 1fr 1fr; }
	.reg-toc a { padding: 7px 8px; font-size: 13.5px; }
	.reg-roles, .reg-people, .reg-cards, .reg-spend { grid-template-columns: 1fr; }
	.reg-role, .reg-card, .reg-spend__col { padding: 1.15rem 1.15rem 1.25rem; }
	.reg-chart { --line: 20px; --gap: .75rem; }
	.reg-chart__node { padding: .85rem .9rem; }
	.reg-chart__node b { font-size: 19px; }
	.reg-chart__leaves .reg-chart__node b { font-size: 16px; }
	.reg-perk .reg-perk__pct { font-size: 48px; }
	.reg-table td { padding: .8rem .85rem; }
	.reg-table td:first-child { width: 48%; }
	.reg-end { padding: 1.5rem 1.25rem; }
	.reg-end .btn { width: 100%; }
}

/* Photo library (template-gallery.php, single-vir_album.php): album cards reuse .news-card; photo grid, lightbox, bib1s widget in theme colours */
.album-year + .album-year { margin-top: 3.5rem; }
.album-card__count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; padding: 4px 10px; border-radius: 999px; background: rgba(13,27,30,.72); color: #fff; font-size: 12.5px; font-weight: 600; }
.album-card__count[hidden] { display: none; }
.album-intro { margin-bottom: 2rem; }
.album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.album-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-c); }
.album-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-photos a:hover img { transform: scale(1.04); }
.album-photos a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,16,18,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox::backdrop { background: rgba(8,16,18,.96); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }
.lightbox__counter { margin-right: auto; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.lightbox__btn { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 600 14px var(--font-body); cursor: pointer; transition: background .15s; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 0; margin: 0; padding: 0 5rem 1.5rem; }
.lightbox__img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .2s; }
.lightbox.is-loading .lightbox__img { opacity: .35; }
.lightbox__caption { max-width: 720px; text-align: center; font-size: 14px; line-height: 1.5; opacity: .85; }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .15s; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox.is-single .lightbox__nav { display: none; }

.album-bib1s .bib1s-widget, .bib1s-lightbox { --bib1s-primary: var(--primary); --bib1s-radius: var(--radius-lg); --bib1s-border: var(--border); --bib1s-muted: var(--muted); }
.album-bib1s .bib1s-widget { margin: 0; }
/* The page header already shows the event's name, date and place */
.album-bib1s .bib1s-header .bib1s-title, .album-bib1s .bib1s-header .bib1s-meta { display: none; }

@media (max-width: 767px) {
	.album-photos { grid-template-columns: repeat(3, 1fr); gap: 4px; }
	.album-photos a { border-radius: var(--radius); }
	.lightbox__stage { padding: 0 0 1rem; }
	.lightbox__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(13,27,30,.55); }
	.lightbox__nav--prev { left: .5rem; }
	.lightbox__nav--next { right: .5rem; }
}

/* "Ủng hộ quỹ" button + popup (inc/fund.php); sits under the mobile menu (z-index 60) */
.fund-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: .5rem; padding: 12px 20px 12px 16px; border: 2px solid #fff; border-radius: 999px; background: var(--primary); color: #fff; font: 700 15px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 10px 28px -6px rgba(13,27,30,.45); cursor: pointer; transition: transform .15s, background .15s; }
.fund-fab:hover { transform: translateY(-2px); background: var(--primary-dark); }
.fund-fab:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 2px; }
/* A soft lime pulse draws the eye without moving the button. */
.fund-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fund-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes fund-pulse { 0% { box-shadow: 0 0 0 0 rgba(209,215,46,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(209,215,46,0); } }
@media (prefers-reduced-motion: reduce) { .fund-fab::before { animation: none; } }
.fund { width: min(100% - 2rem, 580px); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius-xl); background: #fff; color: var(--asphalt); box-shadow: 0 30px 80px -20px rgba(13,27,30,.5); overflow: auto; }
.fund::backdrop { background: rgba(13,27,30,.55); backdrop-filter: blur(3px); }
html:has(.fund[open]) { overflow: hidden; }
.fund__head { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.5rem 3.75rem 1.5rem 1.5rem; background: var(--brand-gradient); color: #fff; text-shadow: 0 1px 2px rgba(13,27,30,.25); }
.fund__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 1rem; background: rgba(13,27,30,.2); }
.fund__kicker { margin: 0 0 .2rem; font-size: 13px; font-weight: 600; }
.fund__title { font-size: 30px; font-weight: 800; }
.fund__close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(13,27,30,.2); color: #fff; cursor: pointer; transition: background .15s; }
.fund__close:hover { background: rgba(13,27,30,.38); }
.fund__body { padding: 1.5rem; }
.fund__desc { margin: 0 0 1.25rem; color: var(--muted); font-size: 15px; line-height: 1.6; }
.fund__pay { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.fund__pay--noqr { grid-template-columns: 1fr; }
.fund__qr { margin: 0; text-align: center; }
.fund__qr-img { display: block; width: 100%; height: auto; padding: .5rem; border: 1px solid var(--border); border-radius: 1rem; background: #fff; }
.fund__qr figcaption { display: flex; flex-direction: column; align-items: center; margin-top: .5rem; font-size: 12px; color: var(--muted); }
.fund__qr a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; color: var(--primary-dark); font-weight: 600; }
.fund__qr a:hover { text-decoration: underline; }
.fund__bank { display: grid; gap: .6rem; margin: 0; }
.fund__bank div { padding: .65rem .9rem; border-radius: .75rem; background: var(--canvas); }
.fund__bank .fund__account { background: var(--tint); }
.fund__bank dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.fund__bank dd { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.fund__account b { font: 800 24px/1.1 var(--font-head); letter-spacing: .04em; color: var(--primary-dark); }
.fund__copy { flex: none; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--asphalt); font: 600 12px var(--font-body); cursor: pointer; transition: border-color .15s, color .15s; }
.fund__copy:hover { border-color: var(--primary); color: var(--primary-dark); }
.fund__copy-field { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.fund__foot { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 560px) {
	.fund-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 11px 16px 11px 13px; font-size: 14px; }
	.fund__head { padding: 1.25rem 3.5rem 1.25rem 1.25rem; }
	.fund__title { font-size: 26px; }
	.fund__body { padding: 1.25rem; }
	.fund__pay { grid-template-columns: 1fr; }
	.fund__qr { width: min(100%, 220px); margin-inline: auto; }
}
