/* Truffle Hunt – theme parts (header, footer, shortcodes) and the section
   classes used by the Elementor templates (set under Advanced > CSS Classes). */

/* ---------- Base ---------- */
body { background: var(--th-color-bg); color: var(--th-color-text); font-family: var(--th-font-body); }
h1, h2, h3, h4 { font-family: var(--th-font-heading); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
:focus-visible { outline: 3px solid var(--th-color-accent); outline-offset: 3px; }
.th-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-icon { width: 1.25em; height: 1.25em; flex: none; }
.th-show-ph .th-ph { outline: 1.5px dashed var(--th-color-accent); outline-offset: 2px; background: color-mix(in srgb, var(--th-color-accent) 12%, transparent); border-radius: 3px; }

/* ---------- Buttons (shortcodes + Elementor button widgets with class th-btn-w / th-btn-ghost / th-btn-dark) ---------- */
.th-btn,
.elementor .th-btn-w .elementor-button,
.elementor .th-btn-ghost .elementor-button,
.elementor .th-btn-dark .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 3rem; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--th-font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	background: var(--th-color-accent); color: var(--th-color-on-accent); transition: transform .15s ease, background-color .15s ease;
}
.th-btn:hover, .elementor .th-btn-w .elementor-button:hover { background: color-mix(in srgb, var(--th-color-accent) 85%, #fff); color: var(--th-color-on-accent); transform: translateY(-1px); }
.elementor .th-btn-ghost .elementor-button { background: transparent; color: var(--th-color-primary); border-color: currentColor; }
.elementor .th-btn-ghost .elementor-button:hover { background: var(--th-color-primary); color: var(--th-color-on-primary); }
.th-btn--dark, .elementor .th-btn-dark .elementor-button { background: var(--th-color-primary); color: var(--th-color-on-primary); }
.th-btn--dark:hover, .elementor .th-btn-dark .elementor-button:hover { background: var(--th-color-on-accent); color: #fff; }
.th-btn--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.th-site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--th-color-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--th-color-line); }
.admin-bar .th-site-header { top: 32px; }
.th-header__inner, .th-footer__inner { width: min(100% - 2 * var(--th-gutter), var(--th-wrap)); margin-inline: auto; }
.th-header { position: relative; }
.th-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.th-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--th-color-primary); }
.th-brand__name { font-family: var(--th-font-heading); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.th-logo--small { width: 2.75rem; height: auto; }
.th-logo--hero { width: 100%; max-width: 26rem; height: auto; margin-inline: auto; display: block; filter: drop-shadow(0 12px 28px rgb(43 43 42 / 12%)); }
.th-nav { display: flex; align-items: center; gap: 1.25rem; }
.th-nav__list { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.th-nav__list a { color: var(--th-color-text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.th-nav__list a:hover { color: var(--th-color-secondary); }
.th-lang { display: flex; gap: .15rem; list-style: none; margin: 0; padding: .2rem; border: 1px solid var(--th-color-line); border-radius: 999px; }
.th-lang a { display: block; padding: .25rem .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--th-color-muted); text-decoration: none; border-radius: 999px; }
.th-lang a[aria-current="true"] { background: var(--th-color-primary); color: var(--th-color-on-primary); }
.th-nav-toggle { display: none; }
@media (max-width: 60rem) {
	.th-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; padding: 0; background: none; border: 1px solid var(--th-color-line); border-radius: 50%; cursor: pointer; color: var(--th-color-primary); }
	.th-nav-toggle__bars, .th-nav-toggle__bars::before, .th-nav-toggle__bars::after { display: block; width: 1.15rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
	.th-nav-toggle__bars::before, .th-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.th-nav-toggle__bars::before { top: -6px; } .th-nav-toggle__bars::after { top: 6px; }
	.th-nav-toggle[aria-expanded="true"] .th-nav-toggle__bars { background: transparent; }
	.th-nav-toggle[aria-expanded="true"] .th-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.th-nav-toggle[aria-expanded="true"] .th-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
	.th-nav { position: absolute; inset: 100% calc(-1 * var(--th-gutter)) auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--th-gutter) 1.5rem; background: var(--th-color-bg); border-bottom: 1px solid var(--th-color-line); box-shadow: var(--th-shadow); }
	.js .th-nav:not(.is-open) { display: none; }
	.th-nav__list { flex-direction: column; gap: 0; }
	.th-nav__list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--th-color-line); font-size: 1.05rem; }
	.th-lang { align-self: flex-start; }
	.th-lang a { padding: .45rem .8rem; font-size: .9rem; }
}

/* ---------- Footer ---------- */
.th-footer { padding: 2.5rem 0; font-size: .92rem; color: var(--th-color-muted); }
.th-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.th-footer__brand strong { font-family: var(--th-font-heading); font-weight: 600; color: var(--th-color-primary); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.th-footer__brand p { margin: .25rem 0 0; }
.th-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.th-footer a { color: inherit; }

/* ---------- Sections (classes on Elementor containers) ---------- */
.e-con.th-sec { --padding-top: var(--th-space); --padding-bottom: var(--th-space); padding-block: var(--th-space); }
.e-con.th-sec--tint { background-color: var(--th-color-tint); }
.e-con.th-sec--orange { background-color: var(--th-color-accent); color: var(--th-color-on-accent); }
.e-con.th-sec--orange .elementor-heading-title { color: var(--th-color-on-accent); }
.e-con.th-sec--dark { background-color: var(--th-color-primary); color: var(--th-color-on-primary); }
.e-con.th-sec--dark .elementor-heading-title, .e-con.th-sec--dark a:not(.elementor-button) { color: var(--th-color-on-primary); }
.th-lead, .th-lead p { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--th-color-muted); max-width: 40rem; }
.th-sec--dark .th-lead, .th-sec--dark .th-lead p, .th-sec--orange .th-lead, .th-sec--orange .th-lead p { color: inherit; opacity: .92; }
.th-kicker .elementor-heading-title { font-family: var(--th-font-heading); font-size: .95rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--th-color-secondary); }
.th-sec--dark .th-kicker .elementor-heading-title { color: var(--th-color-accent); }

/* Hero: two columns on desktop, logo first on mobile */
.e-con-boxed.th-hero-cols > .e-con-inner,
.e-con-full.th-hero-cols { display: grid !important; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; }
@media (max-width: 48rem) {
	.e-con-boxed.th-hero-cols > .e-con-inner,
	.e-con-full.th-hero-cols { grid-template-columns: 1fr; }
	.e-con.th-hero-cols .th-hero-art { order: -1; max-width: 15rem; margin-inline: auto; }
}
.th-hero-title .elementor-heading-title { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.25rem); line-height: 1.08; }
.e-con.th-row { flex-direction: row !important; flex-wrap: wrap; gap: .75rem; }
.th-facts ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.th-facts li { padding: .45rem .9rem; background: var(--th-color-surface); border: 1px solid var(--th-color-line); border-radius: 999px; font-size: .92rem; font-weight: 500; }

/* Card grids (steps, audiences) */
.e-con.th-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.e-con.th-grid > .e-con-inner { display: contents; }
.e-con.th-grid > .elementor-widget { width: auto; max-width: none; margin: 0; }
/* Styled on the widget itself, so it works with and without Elementor's
   "optimized markup" (which drops .elementor-widget-container). */
.elementor-widget.th-card { height: 100%; padding: 1.5rem; background: var(--th-color-surface); border: 1px solid var(--th-color-line); border-radius: var(--th-radius); }
.th-sec--tint .elementor-widget.th-card { border-color: transparent; box-shadow: var(--th-shadow); }
.th-card .elementor-icon-box-wrapper { text-align: left; }
.th-card .elementor-icon { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; font-size: 1.15rem; border-radius: 50%; background: var(--th-color-tint); color: var(--th-color-secondary); fill: var(--th-color-secondary); }
.th-sec--tint .th-card .elementor-icon { background: var(--th-color-secondary); color: #fff; fill: #fff; }
.th-card .elementor-icon-box-icon { margin-bottom: 1rem !important; }
.th-card .elementor-icon-box-title { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 600; color: var(--th-color-primary); }
.th-card .elementor-icon-box-description { margin: 0; color: var(--th-color-muted); }

/* Partners */
.th-partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.th-partner { display: flex; flex-direction: column; background: var(--th-color-surface); border: 1px solid var(--th-color-line); border-radius: var(--th-radius); overflow: hidden; }
.th-partner__logo { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 1.25rem; background: var(--th-color-tint); color: var(--th-color-secondary); }
.th-partner__logo img { max-height: 100%; width: auto; object-fit: contain; }
.th-partner__logo .th-icon { width: 2.5rem; height: 2.5rem; }
.th-partner__body { padding: 1.1rem 1.25rem 1.35rem; }
.th-partner__body h3 { margin: .4rem 0 .35rem; font-size: 1.2rem; font-weight: 600; color: var(--th-color-primary); }
.th-partner__body p { color: var(--th-color-muted); font-size: .95rem; margin: 0 0 .5rem; }
.th-partner__body a { color: var(--th-color-secondary); }
.th-tag { display: inline-block; padding: .15rem .55rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--th-color-secondary); background: var(--th-color-tint); border-radius: 999px; }
.th-empty { padding: 1.25rem; border: 1.5px dashed var(--th-color-line); border-radius: var(--th-radius); color: var(--th-color-muted); text-align: center; }
.e-con.th-join { padding: 1.5rem 1.75rem; background: var(--th-color-tint); border-radius: var(--th-radius); }

/* Hall of Fame */
.th-hof__board { margin-top: .5rem; background: var(--th-color-surface); color: var(--th-color-text); border-radius: var(--th-radius); box-shadow: var(--th-shadow); overflow: hidden; }
.th-hof__note { margin: 0; padding: 1.5rem; text-align: center; color: var(--th-color-muted); }
.th-hof__table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-variant-numeric: tabular-nums; }
.th-hof__table th, .th-hof__table td { border: 0; border-bottom: 1px solid var(--th-color-line); background: none !important; }
.th-hof__table th { padding: .75rem 1.25rem; text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--th-color-muted); }
.th-hof__table td { padding: .7rem 1.25rem; vertical-align: middle; }
.th-hof__table tr:last-child td { border-bottom: 0; }
.th-hof__table .th-num { text-align: right; font-weight: 700; white-space: nowrap; }
.th-hof__rank { width: 3rem; font-family: var(--th-font-heading); font-weight: 600; color: var(--th-color-muted); }
.th-hof__table tr.is-top .th-hof__rank { color: var(--th-color-secondary); }
.th-hof__flag { margin-right: .35rem; }
.th-hof__date { display: block; font-size: .8rem; color: var(--th-color-muted); }
.th-hof__board--frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.th-hof__more { margin: 1.25rem 0 0; }

/* FAQ (Elementor Accordion widget with class th-faq) */
.th-faq .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--th-color-line) !important; }
.th-faq .elementor-tab-title { padding: 1.1rem 0 !important; font-family: var(--th-font-body); font-weight: 600; font-size: 1.08rem; }
.th-faq .elementor-tab-title a { color: var(--th-color-primary); text-decoration: none; }
.th-faq .elementor-tab-content { padding: 0 0 1.1rem !important; border: 0 !important; color: var(--th-color-muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
