/*
 * The X Concept theme. Section, card and background styles come from the
 * plugin (sections.css); this file is the frame: base type, header, footer,
 * articles, listings. Colors from the Customizer arrive as --txc-* variables.
 */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-optical-sizing: auto;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--txc-ink);
	background: var(--txc-page, #fff);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--txc-accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: color-mix(in srgb, var(--txc-accent) 30%, transparent); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--txc-accent); outline-offset: 3px; border-radius: 6px; }
.is-dark :where(a, button, input, summary):focus-visible { outline-color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.txc-skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1rem; border-radius: 12px; background: #fff; color: #0A0F1C; font-weight: 700; }
.txc-skip:focus { top: 1rem; }

.txc-main { display: block; }

/* ---------------------------------------------------------------- header */
/* Full-width white bar, sticky. "Dark" in the Customizer gives the same bar in ink. */
.txc-header {
	position: sticky; top: 0; z-index: 100;
	width: 100%;
	background: rgba(255, 255, 255, .94);
	color: var(--txc-ink);
	border-bottom: 1px solid rgba(10, 15, 28, .08);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow .25s ease, background .25s ease;
}
.txc-header.is-scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 8px 24px -16px rgba(10, 15, 28, .25); }
.admin-bar .txc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .txc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .txc-header { top: 0; } }
.txc-header__bar {
	display: flex; align-items: center; gap: 1.5rem;
	width: min(100% - 2 * var(--txc-gutter, 1rem), var(--txc-wrap, 80rem)); margin-inline: auto;
	min-height: 4.5rem;
}
.txc-header--dark .txc-header { background: color-mix(in srgb, var(--txc-dark, #070B16) 96%, transparent); color: #F4F6FF; border-bottom-color: rgba(255, 255, 255, .08); }
.txc-header--dark .txc-header.is-scrolled { background: var(--txc-dark, #070B16); }

.txc-brand { display: inline-flex; align-items: center; gap: .625rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.125rem; flex: none; }
.txc-brand__logo { max-height: 2.5rem; width: auto; }
.txc-mark { position: relative; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: linear-gradient(135deg, var(--txc-accent), color-mix(in srgb, var(--txc-accent) 50%, #7C3AED)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -6px color-mix(in srgb, var(--txc-accent) 70%, transparent); flex: none; }
.txc-mark::before, .txc-mark::after { content: ""; position: absolute; width: 1.125rem; height: 3px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.txc-mark::after { transform: rotate(-45deg); background: var(--txc-accent-2); }

.txc-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.txc-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.txc-menu li { position: relative; margin: 0; }
.txc-menu a { position: relative; display: inline-flex; align-items: center; min-height: 4.5rem; padding: 0 .75rem; color: inherit; text-decoration: none; font-weight: 500; font-size: .9688rem; opacity: .78; transition: opacity .2s; }
.txc-menu a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--txc-accent); transform: scaleX(0); transition: transform .2s ease; }
.txc-menu a:hover, .txc-menu .current-menu-item > a, .txc-menu .current-menu-ancestor > a, .txc-menu a[aria-current="page"] { opacity: 1; }
.txc-menu .current-menu-item > a::after, .txc-menu .current-menu-ancestor > a::after, .txc-menu a[aria-current="page"]::after, .txc-menu > li > a:hover::after { transform: scaleX(1); }
.txc-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 15rem; list-style: none; margin: 0; padding: .5rem; border-radius: 16px; background: #fff; color: var(--txc-ink); border: 1px solid rgba(10, 15, 28, .08); box-shadow: 0 20px 40px -20px rgba(10, 15, 28, .35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; }
.txc-menu li:hover > .sub-menu, .txc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.txc-menu .sub-menu a { display: flex; min-height: 2.5rem; border-radius: 10px; opacity: .9; }
.txc-menu .sub-menu a::after { display: none; }
.txc-menu .sub-menu a:hover { background: #F3F5FA; }
.txc-header__cta { min-height: 2.75rem; padding: 0 1.25rem; font-size: .9375rem; }
.txc-header .txc-btn--primary { background: var(--txc-ink); color: #fff; box-shadow: none; }
.txc-header .txc-btn--primary:hover { background: var(--txc-accent); color: #fff; }
.txc-header--dark .txc-header .txc-btn--primary { background: #fff; color: #0A0F1C; }
.txc-header--dark .txc-header .txc-btn--primary:hover { background: #E8ECFF; color: #0A0F1C; }

.txc-burger { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 1px solid rgba(10, 15, 28, .1); background: transparent; color: inherit; cursor: pointer; place-items: center; }
.txc-header--dark .txc-burger { border-color: rgba(255, 255, 255, .16); }
.txc-burger__lines, .txc-burger__lines::before, .txc-burger__lines::after { display: block; width: 1.125rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background .25s; }
.txc-burger__lines { position: relative; }
.txc-burger__lines::before, .txc-burger__lines::after { content: ""; position: absolute; left: 0; }
.txc-burger__lines::before { top: -6px; }
.txc-burger__lines::after { top: 6px; }
.txc-header.is-open .txc-burger__lines { background: transparent; }
.txc-header.is-open .txc-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.txc-header.is-open .txc-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
	.txc-burger { display: grid; }
	.txc-header__bar { flex-wrap: wrap; min-height: 4rem; gap: .75rem; }
	.txc-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .75rem; padding: .25rem 0 1rem; margin: 0; max-height: calc(100vh - 5rem); overflow: auto; }
	.txc-header.is-open .txc-nav { display: flex; }
	.txc-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.txc-menu a { min-height: 3.25rem; font-size: 1.125rem; width: 100%; border-bottom: 1px solid rgba(10, 15, 28, .06); opacity: 1; }
	.txc-header--dark .txc-menu a { border-bottom-color: rgba(255, 255, 255, .08); }
	.txc-menu a::after { display: none; }
	.txc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; color: inherit; }
	.txc-header__cta { justify-content: center; min-height: 3rem; }
	html.txc-nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- footer */
.txc-footer { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(1rem, 3vw, 2rem); padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem; background: var(--txc-dark, #070B16); color: var(--txc-ink); }
.txc-footer__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 0% 0%, color-mix(in srgb, var(--txc-accent) 30%, transparent), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(124, 58, 237, .22), transparent 70%); }
.txc-footer__inner { width: min(100% - 2 * var(--txc-gutter, 1rem), var(--txc-wrap, 80rem)); margin-inline: auto; }
.txc-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); }
.txc-brand--footer .txc-brand__logo { max-height: 2.75rem; width: auto; }
.txc-footer__brand { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.txc-footer__blurb { margin: 0; color: var(--txc-muted); max-width: 26rem; }
.txc-footer .txc-business-info__name { display: none; }
.txc-footer .txc-business-info address { color: var(--txc-muted); font-size: .9375rem; }
.txc-footer .txc-business-info a { color: var(--txc-ink); text-decoration: none; }
.txc-footer__menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.txc-footer__title { margin: 0 0 1rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--txc-muted); }
.txc-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.txc-footer__links a { color: var(--txc-ink); text-decoration: none; opacity: .9; }
.txc-footer__links a:hover { opacity: 1; text-decoration: underline; }
.txc-footer__word { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; font-size: clamp(3.5rem, 14vw, 13rem); line-height: .8; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.txc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--txc-border); font-size: .875rem; color: var(--txc-muted); }
.txc-footer__bottom p { margin: 0; }
.txc-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.txc-footer__legal a { color: inherit; text-decoration: none; }
.txc-footer__legal a:hover { color: var(--txc-ink); }
@media (max-width: 900px) {
	.txc-footer__top { grid-template-columns: 1fr; }
	.txc-footer__menus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- article */
.txc-article__head .txc-sec__inner { display: grid; gap: 1.125rem; justify-items: start; }
.txc-article__head .txc-pill a { color: inherit; text-decoration: none; }
.txc-article__head .txc-breadcrumbs { margin: 0; }
.txc-article__title { margin: 0; font-size: clamp(2.125rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -.04em; max-width: 22ch; }
.txc-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: .5rem 0 0; font-size: .9375rem; color: var(--txc-muted); }
.txc-article__author { display: inline-flex; align-items: center; gap: .5rem; color: var(--txc-ink); font-weight: 600; }
.txc-article__initial { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, var(--txc-accent), #7C3AED); color: #fff; font-weight: 700; font-size: .875rem; }
.txc-article__media { width: min(100% - 2 * var(--txc-gutter, 1rem), 65rem); margin: calc(-1 * clamp(2rem, 5vw, 4rem)) auto 0; position: relative; z-index: 2; }
.txc-article__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--txc-radius); box-shadow: 0 30px 60px -30px rgba(7, 11, 22, .5); }
.txc-article__head:has(+ .txc-article__media) { padding-bottom: calc(var(--txc-sec-space) + clamp(2rem, 5vw, 4rem)); }
.txc-article__body { width: min(100% - 2 * var(--txc-gutter, 1rem), 44rem); margin: clamp(2.5rem, 5vw, 4rem) auto; display: grid; gap: 2rem; }
.txc-article__body .txc-prose { font-size: 1.125rem; }
.txc-article__body .txc-block.txc-block { margin: 0; }
.txc-prose figure { margin: 2em 0; }
.txc-prose figcaption { font-size: .875rem; color: var(--txc-muted); margin-top: .5rem; }
.txc-prose pre { overflow: auto; padding: 1rem 1.25rem; border-radius: var(--txc-radius-sm); background: #0B1020; color: #E6EAF5; font-size: .875rem; }
.txc-prose code { font-size: .9em; background: var(--txc-surface-alt); padding: .1em .35em; border-radius: 6px; }
.txc-prose pre code { background: transparent; padding: 0; }
.txc-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.txc-prose th, .txc-prose td { border-bottom: 1px solid var(--txc-border); padding: .625rem .75rem .625rem 0; text-align: left; }
.txc-prose .alignwide, .txc-prose .alignfull { margin-inline: 0; }
.txc-prose .wp-block-image img, .txc-prose .wp-caption img { border-radius: var(--txc-radius-sm); }
.txc-prose .aligncenter { display: block; margin-inline: auto; }
.txc-prose .alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.txc-prose .alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.txc-prose .wp-block-buttons, .txc-prose .wp-block-button { margin: 1.5em 0; }
.txc-prose .wp-block-button__link { display: inline-flex; padding: .75rem 1.25rem; border-radius: 999px; background: var(--txc-accent); color: #fff; text-decoration: none; font-weight: 600; }

/* --------------------------------------------------------------- listings */
.txc-chips--filter { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.txc-grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.txc-grid--lead > .txc-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.txc-grid--lead > .txc-card:first-child .txc-card__media img { height: 100%; aspect-ratio: 16 / 10; }
.txc-grid--lead > .txc-card:first-child .txc-card__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.txc-grid--lead > .txc-card:first-child .txc-card__title { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.1; }
@media (max-width: 760px) { .txc-grid--lead > .txc-card:first-child { grid-template-columns: 1fr; } }
.txc-pager { margin-top: clamp(2rem, 4vw, 3rem); }
.txc-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; list-style: none; margin: 0; padding: 0; }
.txc-pager a, .txc-pager span { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .875rem; border-radius: 999px; border: 1px solid var(--txc-border); color: inherit; text-decoration: none; font-weight: 600; }
.txc-pager .current { background: var(--txc-ink); color: var(--txc-page, #fff); border-color: var(--txc-ink); }
.txc-pager a:hover { border-color: var(--txc-accent); }
.txc-empty-state { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.txc-empty-state h2 { margin: 0; }
.txc-plain-head { width: min(100% - 2 * var(--txc-gutter, 1rem), 70rem); margin: 3rem auto 1.5rem; }
.txc-plain-head h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0; letter-spacing: -.04em; }
.txc-plain-body { width: min(100% - 2 * var(--txc-gutter, 1rem), 44rem); margin: 0 auto 4rem; }

/* Search */
.txc-search { display: flex; align-items: center; gap: .5rem; width: min(100%, 36rem); padding: .375rem .375rem .375rem 1rem; border-radius: 999px; border: 1px solid var(--txc-border); background: var(--txc-surface); }
.txc-search:focus-within { border-color: var(--txc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--txc-accent) 15%, transparent); }
.txc-search .txc-icon { width: 1.25rem; height: 1.25rem; color: var(--txc-muted); }
.txc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; height: 2.75rem; outline: 0; }
.txc-search .txc-btn { min-height: 2.75rem; }
.txc-searchbar { width: min(100% - 2 * var(--txc-gutter, 1rem), var(--txc-wrap, 80rem)); margin: 2rem auto 0; }
.txc-searchbar--404 { width: auto; margin: .5rem 0; }
.txc-sec--404 .txc-sec__inner { display: grid; gap: 1.25rem; justify-items: start; }

/* Map + filters pick up the tokens */
.txc-filters label { font-weight: 600; }
.txc-filters select { min-height: 2.75rem; font: inherit; }
.leaflet-container { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Footer legal row: legal pages first, then copyright + utility links. */
.txc-footer__bottom:has(.txc-footer__legalnav) { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.txc-footer__legalnav { display: contents; }
.txc-footer__legalnav .txc-footer__legal:first-child { grid-column: 1 / -1; grid-row: 1; padding-bottom: 1rem; border-bottom: 1px solid var(--txc-border); }
.txc-footer__bottom:has(.txc-footer__legalnav) > p { grid-column: 1; grid-row: 2; }
.txc-footer__util { grid-column: 2; grid-row: 2; }
.txc-footer__choices { display: inline-flex; align-items: center; gap: .5rem; }
.txc-privacy-icon { flex: none; width: 1.75rem; height: auto; }
.txc-footer__legal a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.txc-footer__legal a:hover, .txc-footer__legal a:focus-visible { text-decoration-color: currentColor; }
@media (max-width: 640px) {
	.txc-footer__bottom:has(.txc-footer__legalnav) { grid-template-columns: 1fr; }
	.txc-footer__util { grid-column: 1; grid-row: 3; }
	.txc-footer__legalnav .txc-footer__legal:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
	.txc-footer__legalnav .txc-footer__legal:first-child li:has(.txc-footer__choices) { grid-column: 1 / -1; }
}
