/*
Theme Name: TenxTenx
Theme URI: https://tenxtenx.com
Author: 10X Group
Author URI: https://tenxtenx.com
Description: Bilingual (English / Tiếng Việt) one-page theme for 10X Group - Saladin, Saladin Insurance Broker and TenX. Five views (Group, Saladin, Saladin Broker, TenX, About us), responsive from 320px to desktop, contact form via wp_mail. Works standalone (?lang=en|vi) or with Polylang / WPML.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tengroup
Tags: one-column, custom-colors, translation-ready, full-width-template
*/

:root {
	--navy: #1E3888; --green: #14C560; --green-dk: #008A40; --mint: #F7FEF3; --mint-line: #DDE5DA;
	--tenx: #1F2160; --tenx-blue: #1FA9E1; --tenx-sky: #4FC3EE; --leaf: #9FF9AB;
	--ink: #191C1D; --ink-2: #3D4042; --ink-3: #414941; --grey: #5C5F5F; --line: #DCDFE3; --line-2: #EEF0F2; --bg-2: #F8FAFA;
	--rail: #A9B3A6; --display: -apple-system, BlinkMacSystemFont, "Noto Sans Display", "Noto Sans", sans-serif;
	--header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, li, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); }
input, textarea, button, select { font-family: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-in { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand-word { font-family: var(--display); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .32em; padding-left: .32em; color: var(--tenx); }
.header-right { display: flex; align-items: center; gap: 8px 16px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--grey); box-shadow: inset 0 -2px 0 transparent; transition: color .15s; white-space: nowrap; }
.main-nav a:hover { color: var(--green); }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.lang-switch a { height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--grey); transition: background .15s; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.menu-toggle, .icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; display: none; align-items: center; justify-content: center; color: var(--navy); font-size: 24px; }
.icon-btn { display: flex; color: #1B1D20; }
.menu-toggle:active, .icon-btn:active { background: rgba(26,28,25,.08); }

/* Active nav per view */
html[data-page="home"] .main-nav [data-go="home"], html[data-page="a"] .main-nav [data-go="a"], html[data-page="b"] .main-nav [data-go="b"],
html[data-page="c"] .main-nav [data-go="c"], html[data-page="map"] .main-nav [data-go="map"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--green); }
html[data-page="home"] .drawer-nav [data-go="home"], html[data-page="a"] .drawer-nav [data-go="a"], html[data-page="b"] .drawer-nav [data-go="b"],
html[data-page="c"] .drawer-nav [data-go="c"], html[data-page="map"] .drawer-nav [data-go="map"] { background: #E1F6E0; color: var(--navy); }
html[data-page="home"] .drawer-nav [data-go="home"] .ico, html[data-page="a"] .drawer-nav [data-go="a"] .ico, html[data-page="b"] .drawer-nav [data-go="b"] .ico,
html[data-page="c"] .drawer-nav [data-go="c"] .ico, html[data-page="map"] .drawer-nav [data-go="map"] .ico { color: var(--green-dk); }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.48); animation: tgFade .2s both; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86%); background: #fff; display: flex; flex-direction: column; box-shadow: 0 4px 8px rgba(16,24,40,.08); animation: tgSlide .25s cubic-bezier(.4,0,.2,1) both; }
.drawer-head { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); }
.drawer-nav { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 12px; border-radius: 8px; font-size: 16px; font-weight: 600; color: #1B1D20; }
.drawer-nav a span { flex: 1; }
.drawer-nav .ico { font-size: 22px; color: var(--grey); }
.drawer-nav .chev { font-size: 20px; color: #8B9389; }
.drawer-foot { flex: none; padding: 16px 20px 24px; border-top: 1px solid var(--line); }
@keyframes tgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tgSlide { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- Views ---------- */
.view { display: none; }
html[data-page="home"] [data-view="home"], html[data-page="a"] [data-view="a"], html[data-page="b"] [data-view="b"],
html[data-page="c"] [data-view="c"], html[data-page="map"] [data-view="map"] { display: block; }

/* ---------- Type & atoms ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.eyebrow.on-navy { color: var(--leaf); letter-spacing: 1.5px; }
.eyebrow.on-tenx { color: var(--tenx-sky); letter-spacing: 1.5px; }
.eyebrow.dk { color: var(--green-dk); letter-spacing: 1.5px; }
.eyebrow.sm { font-size: 13px; letter-spacing: 1px; }
.eyebrow-sm { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dk); margin-bottom: 14px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.h-hero { font-size: 52px; line-height: 64px; font-weight: 600; color: #fff; text-wrap: balance; max-width: 1100px; }
.h-page { font-size: 46px; line-height: 58px; font-weight: 600; color: #fff; text-wrap: balance; }
.h2 { font-size: 36px; line-height: 48px; font-weight: 600; text-wrap: balance; }
.h2s { font-size: 28px; line-height: 38px; font-weight: 600; color: var(--navy); }
.h3 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--navy); text-wrap: pretty; }
.navy { color: var(--navy); }
.white { color: #fff; }
.lead { font-size: 17px; line-height: 28px; max-width: 540px; text-wrap: pretty; }
.lead.on-navy { color: rgba(255,255,255,.9); }
.lead.grey { font-size: 16px; line-height: 26px; color: var(--grey); max-width: 520px; }
.quote { margin-top: -12px; font-size: 20px; line-height: 32px; color: #fff; text-wrap: pretty; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 27px; color: var(--ink-2); }
.prose p, .note { text-wrap: pretty; }
.badge { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.badge.lg { width: 32px; height: 32px; font-size: 14px; }

.btn { height: 48px; padding: 0 24px; border-radius: 4px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; color: #fff; transition: box-shadow .15s, background .15s; }
.btn i { font-size: 20px; }
.btn:hover { color: #fff; box-shadow: inset 0 0 0 100px rgba(255,255,255,.12); }
.btn-green { background: var(--green); }
.btn-blue { background: var(--tenx-blue); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn-tonal { background: #E1F6E0; color: var(--navy); font-weight: 600; }
.btn-tonal:hover { color: var(--navy); box-shadow: inset 0 0 0 100px rgba(26,28,25,.06); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-btn { height: 44px; padding: 0 16px; margin-left: -16px; border: 0; background: none; border-radius: 4px; color: var(--green); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { background: rgba(20,197,96,.08); }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 24px; }
.checks i { color: var(--green); font-size: 18px; line-height: 24px; flex: none; }
.theme-tenx .checks i, .theme-tenx .num { color: var(--tenx-blue); }
.theme-tenx .eyebrow { color: var(--tenx-blue); }
.theme-tenx .navy, .theme-tenx .svc h3, .theme-tenx .val h3 { color: var(--tenx); }
.theme-tenx .val-navy { border-top-color: var(--tenx); }
.theme-tenx .val-green { border-top-color: var(--tenx-blue); }

/* ---------- Layout ---------- */
.sec { padding: 80px 0; }
.sec-tail { padding: 0 0 72px; }
.sec-mint { background: var(--mint); border-top: 1px solid var(--mint-line); border-bottom: 1px solid var(--mint-line); }
.sec-grey { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 24px; }
.g-200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.g-220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g-360 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.g-380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g-400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.g-460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.gap-16 { gap: 16px; } .gap-40 { gap: 40px; align-items: start; } .gap-48 { gap: 48px; }
.stack-16, .stack-20, .stack-32, .stack-36, .stack-40 { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; } .stack-20 { gap: 20px; min-width: 0; } .stack-32 { gap: 32px; } .stack-36 { gap: 36px; } .stack-40 { gap: 40px; }

/* ---------- Hero ---------- */
.hero-navy { background: var(--navy); color: #fff; }
.hero-tenx { background: var(--tenx); color: #fff; }
.hero-grey { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero-home { padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 56px; flex-wrap: wrap; }
.hero-split { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .mission { padding-top: 8px; }
.hero-copy .btn-row { padding-top: 8px; }
.hero-art { display: flex; justify-content: center; }
.logo-tile { width: 100%; max-width: 340px; aspect-ratio: 1/1; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.logo-tile.bordered { border: 1px solid var(--line); }
.logo-tile.pad-40 { padding: 40px; }
.logo-tile img { width: 100%; height: auto; display: block; }
.tenx-art { width: 100%; max-width: 320px; display: block; }

/* ---------- Home ---------- */
.arm { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.arm:hover { box-shadow: 0 4px 8px rgba(16,24,40,.08); }
.arm-logo { height: 132px; display: flex; align-items: center; justify-content: center; padding: 24px; border-bottom: 1px solid var(--line); }
.arm-logo img { width: 80%; object-fit: contain; }
.logo-a { background: var(--mint); } .logo-a img { height: 84px; }
.logo-b { background: #fff; } .logo-b img { height: 40px; }
.logo-c { background: var(--tenx); } .logo-c img { height: 80px; }
.arm-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.arm-id { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }
.arm .checks { gap: 8px; flex: 1; }
.arm .checks li { gap: 8px; line-height: 22px; }
.arm .checks i { line-height: 22px; }
.arm-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px dashed var(--mint-line); }
.ext { height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--grey); font-size: 15px; }
.mail { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--navy); margin-top: -8px; }
.mail i { font-size: 18px; color: var(--green); }
.cred-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cred-head .head { max-width: 800px; }
.note { font-size: 14px; line-height: 20px; color: var(--grey); max-width: 360px; }
.stat { background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--green); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 44px; line-height: 60px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { font-size: 15px; line-height: 22px; }

/* ---------- A / C ---------- */
.svc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.svc .num { font-size: 40px; line-height: 44px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: 21px; line-height: 28px; font-weight: 600; color: var(--navy); }
.svc p { font-size: 15px; line-height: 24px; color: var(--grey); text-wrap: pretty; }
.val { border-top: 3px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.val-green { border-top-color: var(--green); }
.val h3 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--navy); }
.val p { font-size: 16px; line-height: 26px; color: var(--ink-2); text-wrap: pretty; }
.prod-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--green); border-radius: 8px; background: var(--mint); color: var(--ink); }
.prod-card:hover, .page-card:hover { color: var(--ink); box-shadow: 0 4px 8px rgba(16,24,40,.08); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-head b, .page-card b { font-size: 17px; font-weight: 600; color: var(--navy); }
.pc-head i, .page-card i { font-size: 22px; color: var(--green); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--mint-line); font-size: 14px; line-height: 20px; }
.page-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.page-card:hover { border-color: var(--green); }
.page-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-card > span span { font-size: 14px; color: var(--grey); }

/* ---------- B ---------- */
.mission-grid { gap: 16px 48px; align-items: start; }
.mission-1 { font-size: 24px; line-height: 36px; font-weight: 600; color: var(--navy); text-wrap: pretty; }
.mission-2 { font-size: 16px; line-height: 27px; color: var(--ink-2); padding-top: 4px; text-wrap: pretty; }
.table { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kv { display: grid; grid-template-columns: clamp(132px, 34%, 176px) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.kv:last-child, .disc:last-child { border-bottom: 0; }
.kv .k { padding: 12px 16px; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--grey); background: var(--bg-2); border-right: 1px solid var(--line-2); display: flex; align-items: center; }
.kv .v { padding: 12px 16px; font-size: 15px; line-height: 22px; display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.kv .v a { font-weight: 500; }
.disc { display: grid; grid-template-columns: 32px minmax(0, 1fr) 92px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.disc-head { background: var(--bg-2); border-bottom-color: var(--line); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--grey); }
.disc-head span:last-child, .disc .dd { text-align: right; }
.dl { width: 32px; height: 32px; border-radius: 6px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.dt { font-size: 15px; line-height: 22px; text-wrap: pretty; min-width: 0; }
.dd { font-size: 14px; line-height: 22px; color: var(--grey); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- About us: founder + letter ---------- */
.letter-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.letter-left { flex: 0 1 420px; min-width: min(100%, 300px); display: flex; flex-direction: column; gap: 32px; }
.letter-right { flex: 1 1 480px; min-width: 0; max-width: 820px; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 420px; }
.founder-photo { height: 285px; background-size: cover; background-position: center 30%; border-bottom: 1px solid var(--line); }
.founder-body { padding: 28px; }
.f-name { font-family: var(--display); font-size: 24px; font-weight: 700; color: #1B1D20; letter-spacing: -.018em; text-wrap: pretty; }
.f-role { font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 5px; text-wrap: pretty; }
.f-bio { display: grid; gap: 11px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #EFF1F1; }
.f-bio div { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.f-bio i { color: var(--green); font-size: 17px; flex: none; margin-top: 1px; }
.f-prev { margin-top: 20px; padding-top: 18px; border-top: 1px solid #EFF1F1; }
.f-prev .lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8B9389; margin-bottom: 6px; }
.f-prev .val-txt { font-size: 13.5px; font-weight: 700; color: var(--navy); text-wrap: pretty; }
.l-lead { font-family: var(--display); font-size: 26px; line-height: 1.3; letter-spacing: -.022em; font-weight: 700; margin: 0 0 24px; color: #1B1D20; text-wrap: pretty; }
.l-list { display: grid; gap: 26px; }
.l-sec h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: var(--navy); letter-spacing: -.01em; text-wrap: pretty; }
.l-sec p { font-size: 15px; line-height: 1.78; color: var(--ink-3); text-wrap: pretty; }
.l-sec p + p { margin-top: 14px; }
.letter-toggle { display: none; }
.l-close { margin-top: 32px; padding: 24px 26px; background: #EBF3E8; border: 1px solid var(--mint-line); border-radius: 8px; }
.l-close p { font-size: 15px; line-height: 1.7; font-weight: 700; color: #1B1D20; margin-bottom: 18px; text-wrap: pretty; }
.sig { font-size: 15px; font-weight: 700; color: var(--navy); }
.sig-role { font-size: 13.5px; color: var(--grey); margin-top: 3px; }

/* ---------- About us: ecosystem tree ---------- */
.map-sec { padding: 72px 0 88px; }
.tree { display: flex; flex-direction: column; align-items: center; }
.tree-root { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 32px; border-radius: 8px; background: var(--navy); color: #fff; margin-bottom: 28px; }
.tree-root:hover { color: #fff; box-shadow: 0 4px 8px rgba(16,24,40,.16); }
.tree-root b { font-size: 18px; font-weight: 600; }
.tree-root i { display: none; }
.tree-root::after { content: ""; position: absolute; top: 100%; left: calc(50% - 1px); width: 2px; height: 28px; background: var(--rail); }
.tree-cols { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tree-col { display: flex; flex-direction: column; min-width: 0; }
.tree-link { position: relative; height: 28px; }
.tree-link::before { content: ""; position: absolute; top: 0; left: -12px; right: -12px; height: 2px; background: var(--rail); }
.tree-col:first-child .tree-link::before { left: calc(50% - 1px); }
.tree-col:last-child .tree-link::before { right: calc(50% - 1px); }
.tree-link::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 28px; background: var(--rail); }
.tree-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; flex: 1; }
.tc-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.tc-head:hover { background: var(--mint); color: var(--ink); }
.tc-head > i { display: none; font-size: 20px; color: var(--grey); }
.tc-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-name b { font-size: 16px; font-weight: 600; color: var(--navy); }
.tc-name span { font-size: 13px; color: var(--grey); }
.tree-card ul { padding: 8px 0; }
.tree-card li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 20px; font-size: 15px; line-height: 22px; color: var(--ink); }
.tree-card li a:hover { background: rgba(20,197,96,.08); color: var(--ink); }
.tree-card li i { color: var(--rail); flex: none; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; padding: 80px 0; --accent: var(--leaf); }
html[data-page="b"] .contact, html[data-page="map"] .contact { display: none; }
html[data-page="c"] .contact { background: var(--tenx); --accent: var(--tenx-sky); }
.contact .c-accent, .contact .eyebrow.c-accent { color: var(--accent); }
.ct-c, .ce-a, .ce-c { display: none; }
html[data-page="c"] .ct-group { display: none; }
html[data-page="c"] .ct-c, html[data-page="c"] .ce-c, html[data-page="a"] .ce-a { display: flex; }
html[data-page="c"] .ct-c { display: inline; }
.contact .grid { align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; }
.lead-sm { font-size: 16px; line-height: 26px; color: rgba(255,255,255,.85); max-width: 440px; }
.c-line { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #fff; }
.c-line:first-of-type { padding-top: 8px; }
.c-line i { font-size: 20px; }
a.c-line:hover { color: #fff; text-decoration: underline; }
.contact-box { min-width: 0; }
.form, .thanks { background: #fff; color: var(--ink); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.thanks { padding: 40px; gap: 12px; }
.thanks > i { font-size: 44px; color: var(--green); line-height: 1; }
.thanks h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
.thanks p { font-size: 15px; line-height: 24px; color: var(--grey); }
.thanks .link-btn { align-self: flex-start; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.form input:not([type="checkbox"]), .form textarea { height: 46px; padding: 12px; border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px var(--mint-line); font-size: 15px; outline: none; color: var(--ink); background: #fff; width: 100%; }
.form textarea { height: auto; resize: vertical; }
.form input:focus, .form textarea:focus { box-shadow: inset 0 0 0 2px var(--green); }
.agree { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.form label.cb { flex-direction: row; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 21px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.cb input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.form .submit { align-self: flex-start; padding: 0 28px; }
.form .submit[disabled] { opacity: .6; cursor: wait; }
.form-err { font-size: 14px; color: #BA1A1A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-in { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.footer-brand, .f-h { display: none; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.f-group { display: contents; }
.footer-links a { color: var(--grey); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--green); }
.footer-links a i { display: none; }
.f-sep { width: 1px; height: 16px; background: var(--line); }

/* ---------- Generic content (index.php) ---------- */
.content-main { padding-top: 64px; padding-bottom: 64px; max-width: 820px; }
.entry + .entry { margin-top: 48px; }
.entry-title { font-size: 32px; line-height: 40px; color: var(--navy); margin-bottom: 16px; }
.entry-content { font-size: 16px; line-height: 27px; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1em; }

/* ================= Tablet ================= */
@media (max-width: 1080px) {
	.main-nav { display: none; }
	.menu-toggle { display: flex; }
	.header-right { gap: 8px; }
	.h-hero { font-size: 44px; line-height: 56px; }
	.tree-cols { gap: 16px; }
	.tree-link::before { left: -8px; right: -8px; }
}

/* ================= Mobile (matches 10X Group Mobile Website) ================= */
@media (max-width: 767px) {
	:root { --header-h: 64px; }
	.wrap { padding: 0 16px; }
	.header-in { min-height: 64px; padding: 0 6px 0 16px; }
	.brand img { height: 30px; }
	.brand-word { font-size: 9px; }
	.brand { gap: 3px; }
	.lang-switch { height: 36px; padding: 3px; background: #EFF1F1; box-shadow: inset 0 0 0 1px var(--line); }
	.lang-switch a { height: 28px; min-width: 34px; padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .03em; }

	.sec { padding: 40px 0; }
	.sec-tail { padding: 0 0 40px; }
	.eyebrow { font-size: 13px; color: var(--green-dk); }
	.theme-tenx .eyebrow { color: #1679A8; }
	.eyebrow.on-navy, .eyebrow.on-tenx { font-size: 13px; }
	.head { gap: 8px; }
	.stack-36, .stack-40, .stack-32 { gap: 20px; }
	.h-hero { font-family: var(--display); font-size: 30px; line-height: 38px; text-wrap: pretty; }
	.h-page { font-family: var(--display); font-size: 28px; line-height: 36px; text-wrap: pretty; }
	.h2 { font-family: var(--display); font-size: 24px; line-height: 32px; color: var(--navy); }
	.contact .h2 { font-size: 26px; line-height: 34px; color: #fff; }
	.h2s { font-family: var(--display); font-size: 22px; line-height: 30px; }
	.h3 { font-size: 19px; line-height: 27px; }
	.lead { font-size: 16px; line-height: 26px; }
	.lead.grey, .prose { font-size: 15px; line-height: 25px; }
	.quote { margin-top: 0; font-size: 17px; line-height: 28px; }
	.grid { gap: 16px; }
	.gap-48, .gap-40 { gap: 24px; }

	.btn { height: 52px; border-radius: 8px; font-weight: 600; width: 100%; }
	.btn-row { flex-direction: column; gap: 12px; }
	.btn:active { box-shadow: none; filter: brightness(.92); }

	/* Hero */
	.hero-home { padding-top: 40px; padding-bottom: 44px; gap: 18px; }
	.hero-row { flex-direction: column; align-items: stretch; gap: 18px; }
	.hero-row .btn-row { padding-top: 8px; }
	.hero-split { padding-top: 32px; padding-bottom: 40px; gap: 18px; display: flex; flex-direction: column-reverse; align-items: stretch; }
	.hero-copy { gap: 18px; }
	.hero-copy .mission { order: 4; padding-top: 0; font-size: 12px; }
	.hero-copy .quote { order: 3; }
	.hero-copy .btn-row { order: 5; padding-top: 4px; }
	.hero-copy > .eyebrow:first-child { padding-top: 8px; }
	.hero-art { justify-content: flex-start; }
	.logo-tile { max-width: none; aspect-ratio: auto; height: 120px; padding: 16px; }
	.logo-tile img { width: auto; height: 100%; max-width: 100%; }
	.logo-tile.pad-40 { padding: 0; }
	.logo-tile.pad-40 img { height: 48px; max-width: 86%; object-fit: contain; }
	.tenx-art { width: 168px; }

	/* Home */
	.arm { box-shadow: 0 1px 2px rgba(16,24,40,.05); }
	.arm-logo { height: 104px; padding: 20px; }
	.logo-a img { height: 64px; width: 72%; } .logo-b img { height: 40px; width: 56%; } .logo-c img { height: 96px; width: 80%; }
	.arm-body { padding: 20px; gap: 14px; }
	.arm-links { justify-content: space-between; padding-top: 6px; flex-wrap: nowrap; }
	.arm-links .link-btn { padding: 0 12px; margin-left: -12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--green-dk); }
	.arm-links .ext { padding: 0; font-size: 14px; }
	.mail { margin-top: -10px; min-height: 32px; }
	.cred-head { flex-direction: column; align-items: stretch; gap: 8px; }
	.note { font-size: 13px; line-height: 19px; max-width: none; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.stat { padding: 16px; }
	.stat b { font-size: 26px; line-height: 34px; }
	.stat span { font-size: 13px; line-height: 19px; }

	/* A / C */
	.svc { padding: 20px; gap: 10px; }
	.svc .num { font-size: 30px; line-height: 34px; }
	.svc h3 { font-size: 18px; line-height: 26px; }
	.val { padding-top: 20px; gap: 14px; }
	.val h3 { font-size: 19px; line-height: 27px; }
	.val p { font-size: 15px; line-height: 25px; }
	.prod-card { padding: 20px; }
	.prod-card .pc-head i { color: var(--green-dk); }
	.chips span { font-size: 13px; }
	.pages { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
	.pages .prod-card { border-radius: 0; border: 0; border-bottom: 1px solid var(--green); }
	.page-card { min-height: 64px; padding: 12px 16px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line-2); }
	.page-card:last-child { border-bottom: 0; }
	.page-card b { font-size: 16px; }
	.page-card > span span { font-size: 13px; line-height: 19px; }
	.page-card i { font-size: 20px; color: var(--green-dk); }

	/* B */
	.mission-1 { font-size: 19px; line-height: 29px; }
	.mission-2 { font-size: 15px; line-height: 25px; padding-top: 0; }
	.mission-grid { gap: 14px; }
	.kv { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
	.kv .k { padding: 0; background: none; border: 0; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
	.kv .v { padding: 0; }
	.kv .v a { font-weight: 600; color: var(--green-dk); }
	.disc-head { display: none; }
	.disc { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "i t" "i d"; gap: 2px 12px; align-items: start; padding: 14px 16px; }
	.disc .dl { grid-area: i; }
	.disc .dt { grid-area: t; }
	.disc .dd { grid-area: d; text-align: left; font-size: 13px; line-height: 18px; }

	/* About: founder + letter */
	.letter { padding: 32px 0 40px; }
	.letter-cols { flex-direction: column; gap: 20px; }
	.letter-left, .letter-right { flex: none; width: 100%; max-width: none; min-width: 0; gap: 28px; }
	.founder { max-width: none; }
	.founder-photo { height: 240px; }
	.founder-body { padding: 20px; }
	.f-name { font-size: 22px; line-height: 30px; }
	.f-role { line-height: 20px; margin-top: 4px; }
	.f-bio { gap: 10px; margin-top: 16px; padding-top: 16px; }
	.f-bio div { font-size: 14px; line-height: 22px; gap: 8px; }
	.f-bio i { line-height: 22px; margin-top: 0; }
	.f-prev { margin-top: 16px; padding-top: 16px; }
	.f-prev .lbl { color: var(--grey); margin-bottom: 4px; }
	.f-prev .val-txt { font-size: 14px; line-height: 21px; }
	.letter-intro .eyebrow-sm { margin-bottom: 10px; }
	.l-lead { font-size: 22px; line-height: 30px; margin-bottom: 20px; letter-spacing: 0; }
	.l-list { gap: 20px; }
	.l-sec h3 { font-size: 16px; line-height: 24px; margin-bottom: 10px; }
	.l-sec p { line-height: 26px; }
	.l-sec p + p { margin-top: 10px; }
	.letter:not(.open) .l-extra, .letter:not(.open) .l-close { display: none; }
	.letter-toggle { display: flex; height: 48px; margin-top: 0; }
	.letter.open .letter-toggle { margin-top: 20px; }
	.letter-right { margin-top: -8px; }
	.l-close { margin-top: 20px; padding: 20px; }
	.l-close p { line-height: 25px; margin-bottom: 16px; }
	.sig-role { font-size: 13px; margin-top: 2px; }

	/* About: tree becomes a vertical rail */
	.map-sec { padding: 40px 0; }
	.map-sec .stack-40 { gap: 20px; }
	.tree { align-items: stretch; }
	.tree-root { flex-direction: row; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; margin-bottom: 0; }
	.tree-root b { font-size: 17px; }
	.tree-root i { display: block; font-size: 20px; color: var(--leaf); }
	.tree-root::after { display: none; }
	.tree-cols { display: flex; flex-direction: column; gap: 0; }
	.tree-col { position: relative; padding: 16px 0 0 28px; }
	.tree-col::before { content: ""; position: absolute; left: 15px; top: 0; width: 2px; height: 100%; background: var(--rail); }
	.tree-col:last-child::before { height: 53px; }
	.tree-link { position: absolute; left: 15px; top: 51px; width: 13px; height: 2px; background: var(--rail); }
	.tree-link::before, .tree-link::after { display: none; }
	.tc-head { min-height: 72px; padding: 0 16px; }
	.tc-head > i { display: block; }
	.tc-name b { line-height: 22px; }
	.tc-name span { line-height: 18px; }
	.tree-card ul { padding: 4px 0; }
	.tree-card li a { min-height: 44px; padding: 10px 16px; }
	.tree-card li i { color: #8B9389; }

	/* Contact */
	.contact { padding: 40px 0; }
	.contact-copy { gap: 12px; }
	.lead-sm { font-size: 15px; line-height: 24px; color: rgba(255,255,255,.88); }
	.c-line { font-size: 14px; line-height: 21px; align-items: flex-start; }
	.c-line:first-of-type { padding-top: 4px; }
	.c-line i { font-size: 18px; line-height: 21px; flex: none; }
	.form { padding: 20px; gap: 14px; }
	.thanks { padding: 28px 20px; gap: 10px; }
	.thanks > i { font-size: 40px; }
	.thanks h3 { font-size: 19px; line-height: 27px; }
	.thanks .link-btn { padding: 0 12px; margin-left: -12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--green-dk); }
	.form .grid { gap: 14px; }
	.form label { gap: 6px; }
	.form input:not([type="checkbox"]), .form textarea { height: 48px; padding: 0 12px; font-size: 16px; }
	.form textarea { height: auto; padding: 12px; }
	.form label.cb { font-size: 13px; line-height: 20px; }
	.cb input { width: 20px; height: 20px; margin: 0; }
	.form .submit { align-self: stretch; margin-top: 4px; }

	/* Footer */
	.footer-in { padding-top: 32px; padding-bottom: 32px; flex-direction: column; align-items: stretch; gap: 20px; }
	.footer-brand { display: inline-flex; align-self: flex-start; padding: 0; }
	.footer-links { flex-direction: column; align-items: stretch; gap: 20px; }
	.f-group { display: flex; flex-direction: column; }
	.f-h { display: block; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
	.footer-links a { min-height: 44px; justify-content: space-between; color: var(--ink-2); }
	.footer-links a i { display: inline; color: #8B9389; }
	.f-sep { display: none; }
	.copy { order: 9; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
