
:root{
  --bg:#f8f3eb;--paper:#fff;--ink:#121212;--muted:#56616d;--line:#ded2c2;--accent:#b9853c;--accent2:#8d5f22;--coral:#f26b3a;--footer:#101214;
  --max:1180px;--h1:48px;--h2:34px;--body:15px;--nav:13px;
}
body.theme-blue{--bg:#f5f8fc;--paper:#fff;--ink:#0f172a;--muted:#475569;--line:#dbe5f1;--accent:#1d4ed8;--accent2:#0f2f6b;--coral:#2563eb;--footer:#0b1220}
body.theme-dark{--bg:#0f1115;--paper:#171b23;--ink:#f8fafc;--muted:#b8c0cc;--line:#2c3340;--accent:#d6a85c;--accent2:#f1c26b;--coral:#f1c26b;--footer:#07090c}
body.font-compact{--h1:42px;--h2:30px;--body:14.5px;--nav:12.5px}
body.font-large{--h1:56px;--h2:40px;--body:16px;--nav:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:var(--body);line-height:1.7}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
.wrap,.header-inner{width:min(var(--max),calc(100% - 48px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
body.theme-dark .site-header{background:rgba(23,27,35,.94)}
.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:13px}
.brand-mark{font-family:Georgia,serif;color:var(--accent);font-size:28px;letter-spacing:-.06em}
.brand-name{font-family:Georgia,serif;font-size:20px;letter-spacing:.08em;text-transform:uppercase}
.nav{display:flex;gap:28px;align-items:center;flex-wrap:wrap}
.nav a{font-size:var(--nav);font-weight:800;letter-spacing:.06em}
.nav a:nth-child(5){color:var(--coral)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:4px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;transition:.15s}
.btn:hover{background:var(--accent2);color:#fff;transform:translateY(-1px)}
.btn:active{transform:scale(.97)}
.hero{position:relative;overflow:hidden;padding:74px 0 72px;background:linear-gradient(90deg,var(--paper) 0 63%,var(--bg) 63% 100%);border-bottom:1px solid var(--line)}
.hero::after{content:"";position:absolute;right:-110px;top:70px;width:360px;height:360px;border-radius:50%;background:rgba(185,133,60,.10)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.eyebrow{color:var(--accent);font-size:12px;font-weight:900;letter-spacing:.22em;text-transform:uppercase;margin:0 0 14px}
h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.06}
h1{font-size:var(--h1);letter-spacing:-.05em;margin:0 0 22px;max-width:680px}
h2{font-size:var(--h2);letter-spacing:-.035em;margin:0 0 18px}
h3{font-size:23px;margin:0 0 12px}
.lead{max-width:700px;color:var(--muted);font-size:17px;margin:0 0 28px}
.hero-image{position:relative}
.hero-image::before{content:"";position:absolute;left:-20px;top:22px;width:100%;height:100%;border:1px solid var(--accent);border-radius:12px;opacity:.35}
.hero-image img{position:relative;width:100%;max-height:560px;height:auto;object-fit:contain;object-position:center center;border-radius:12px;box-shadow:0 26px 74px rgba(42,31,19,.16);background:var(--paper)}
.section{padding:64px 0}
.section.alt{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-intro{max-width:830px;margin:0 0 36px;color:var(--muted);font-size:16px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:42px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-6{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:26px;box-shadow:0 22px 60px rgba(42,31,19,.055)}
.alt .card{background:var(--bg)}
.card::before{content:"";display:block;width:46px;height:1px;background:var(--accent);margin:0 0 22px}
.card p{color:var(--muted);margin:0}
.resource-card{background:transparent;border-top:1px solid var(--line);padding:24px 6px 20px}
.resource-card h3{font-size:21px}
.resource-card p{color:var(--muted);margin:0}
.contact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.contact-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:24px;min-height:154px;display:flex;flex-direction:column;gap:16px;justify-content:space-between;box-shadow:0 18px 50px rgba(42,31,19,.05)}
.contact-card svg{width:28px;height:28px;color:var(--accent);flex:0 0 auto}
.contact-card strong{font-family:Georgia,serif;font-size:21px;font-weight:400}
.contact-card span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.cta-band{background:var(--accent);color:#fff;padding:64px 0}
.cta-band h2,.cta-band p{color:#fff}
.site-footer{background:var(--footer);color:#fff;padding:48px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:42px}
.site-footer a,.site-footer p{color:rgba(255,255,255,.72)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:32px;padding-top:20px;color:rgba(255,255,255,.52);font-size:12px}
@media(max-width:940px){.header-inner{align-items:flex-start;flex-direction:column;padding:18px 0}.hero{background:var(--paper);padding:58px 0}.hero-grid,.grid-2,.grid-3,.grid-6,.contact-grid,.footer-grid{grid-template-columns:1fr}.nav{gap:18px}.hero-image::before{display:none}}
@media(max-width:560px){.wrap,.header-inner{width:min(var(--max),calc(100% - 28px))}h1{font-size:36px}.btn{width:100%}}


.subitems{margin:20px 0 0;padding:0;list-style:none;display:grid;gap:12px}
.subitems li{border-top:1px solid var(--line);padding-top:12px}
.subitems strong{display:block;font-size:14px;letter-spacing:.02em;margin-bottom:4px;color:var(--ink)}
.subitems span{display:block;color:var(--muted);font-size:14px;line-height:1.55}
.subitems a{font-size:13px;color:var(--accent);font-weight:800}
.resource-card .subitems{margin-top:16px}
.contact-card .subitems{margin-top:4px;gap:8px}
.contact-card .subitems li{padding-top:8px}


.card-img{width:100%;aspect-ratio:16/10;object-fit:contain;border-radius:7px;margin:0 0 22px;background:var(--bg);border:1px solid var(--line)}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.team-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:0 22px 60px rgba(42,31,19,.06)}
.team-img{width:100%;height:360px;object-fit:contain;object-position:center center;display:block;background:var(--bg)}
.team-body{padding:24px}
.team-meta{color:var(--accent);font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 12px}
.team-text{color:var(--muted);margin:0 0 16px}
.team-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.team-links a{border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:13px;color:var(--ink)}
.upload-note{font-size:13px;color:var(--muted)}
@media(max-width:940px){.team-grid{grid-template-columns:1fr}}


.sub-img{width:100%;max-height:150px;object-fit:contain;border-radius:6px;border:1px solid var(--line);margin:0 0 8px;background:var(--bg)}
.subitems .sub-link{display:inline-block;margin-top:6px;font-size:13px;color:var(--accent);font-weight:800}
.contact-open{display:inline-flex;margin-top:6px;color:var(--accent);font-weight:800;font-size:13px}
.admin-warning{border:1px solid #f59e0b;background:#fffbeb;color:#92400e;padding:12px;border-radius:8px}


.page-hero{padding:64px 0 46px;background:var(--paper);border-bottom:1px solid var(--line)}
.page-hero .lead{max-width:850px}
.page-content{padding:46px 0 76px}
.home-overview{padding:46px 0 66px}
.item-link{display:inline-flex;margin-top:18px;color:var(--accent);font-weight:900;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.breadcrumb-mini{color:var(--muted);font-size:13px;margin:0 0 18px}
.breadcrumb-mini a{color:var(--accent);font-weight:800}
.section-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.sub-page-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:20px}
.sub-page-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:20px}
.sub-page-card h3{font-size:22px}
.sub-page-card p{color:var(--muted);margin:0}
.home-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}
.shortcut-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:24px;box-shadow:0 16px 46px rgba(42,31,19,.05)}
.shortcut-card h3{font-size:21px}
.shortcut-card p{color:var(--muted);margin:0 0 14px}
@media(max-width:940px){.home-shortcuts,.sub-page-list{grid-template-columns:1fr}}


/* v16: keep uploaded photos visible instead of cropping important content */
.hero-image img,.card-img,.team-img,.sub-img{background:linear-gradient(135deg,rgba(185,133,60,.08),rgba(255,255,255,.65))}
.hero-image{overflow:visible}
.card-img,.sub-img{padding:4px}
@media(max-width:940px){.team-img{height:auto;max-height:520px}}


/* v17 contact app display */
.contact-card{position:relative}
.contact-app{font-style:normal;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800;color:var(--accent);margin-top:-8px}
.contact-card strong{overflow-wrap:anywhere}
.contact-open{border-top:1px solid var(--line);padding-top:12px}


/* v19: footer contact uses App logos instead of text list */
.site-footer h3{margin-bottom:16px}
.footer-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  max-width:260px;
}
.footer-social-link{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff!important;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  text-decoration:none;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.footer-social-link svg{width:20px;height:20px;display:block}
.footer-social-link:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.34);
  box-shadow:0 16px 32px rgba(0,0,0,.24);
}
.footer-social-phone{background:rgba(15,118,110,.28)}
.footer-social-sms{background:rgba(37,99,235,.26)}
.footer-social-email{background:rgba(185,133,60,.28)}
.footer-social-telegram{background:rgba(39,167,231,.26)}
.footer-social-whatsapp{background:rgba(34,197,94,.26)}
.footer-social-facebook{background:rgba(24,119,242,.24)}
.footer-social-instagram{background:rgba(214,41,118,.24)}
.footer-social-x{background:rgba(255,255,255,.10)}
.footer-social-linkedin{background:rgba(10,102,194,.25)}
.footer-social-youtube{background:rgba(255,0,0,.22)}
.footer-social-website{background:rgba(148,163,184,.20)}
@media(max-width:940px){.footer-socials{max-width:none}}


/* v21: front navigation is clearly clickable and active state follows the current page */
.nav{
  position:relative;
  z-index:20;
}
.nav a:nth-child(5){
  color:inherit;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 4px;
  border-radius:999px;
  cursor:pointer;
  position:relative;
  transition:color .16s ease, background .16s ease, transform .16s ease;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:2px;
  height:2px;
  border-radius:999px;
  background:transparent;
  transition:background .16s ease, transform .16s ease;
  transform:scaleX(.45);
}
.nav-link:hover{
  color:var(--accent);
  transform:translateY(-1px);
}
.nav-link:hover::after{
  background:rgba(185,133,60,.45);
  transform:scaleX(1);
}
.nav-link.active{
  color:var(--accent);
}
.nav-link.active::after{
  background:var(--accent);
  transform:scaleX(1);
}
@media(max-width:940px){
  .nav-link{
    min-height:36px;
  }
}


/* v24: selectable frontend templates */
/* 1. Classic Advisory: default/current look */
body.tpl-classic{
  --radius:8px;
}

/* 2. Executive Dark: premium dark hero/header, warmer cards */
body.tpl-executive{
  --bg:#0d1117;
  --paper:#111827;
  --ink:#f8fafc;
  --muted:#cbd5e1;
  --line:rgba(255,255,255,.14);
  --accent:#d8a45b;
  --accent2:#f0c987;
  --coral:#f59e0b;
}
body.tpl-executive .site-header{
  background:rgba(13,17,23,.92);
  border-bottom-color:rgba(255,255,255,.12);
}
body.tpl-executive .hero{
  background:
    radial-gradient(circle at 80% 20%, rgba(216,164,91,.18), transparent 34%),
    linear-gradient(135deg,#0d1117 0%,#141b2a 100%);
}
body.tpl-executive .page-hero{
  background:linear-gradient(135deg,#0d1117,#111827);
}
body.tpl-executive .card,
body.tpl-executive .resource-card,
body.tpl-executive .team-card,
body.tpl-executive .contact-card{
  background:#151d2b;
  border-color:rgba(255,255,255,.14);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
body.tpl-executive .site-footer{
  background:#05070b;
}
body.tpl-executive .brand-name,
body.tpl-executive h1,
body.tpl-executive h2,
body.tpl-executive h3{
  color:#ffffff;
}
body.tpl-executive .breadcrumb,
body.tpl-executive .breadcrumb a{
  color:#d8a45b;
}

/* 3. Editorial: magazine-style whitespace, fine lines, lighter feel */
body.tpl-editorial{
  --bg:#fbfaf7;
  --paper:#ffffff;
  --ink:#111111;
  --muted:#5f6b7a;
  --line:#e6ded2;
  --accent:#9b6b2f;
  --accent2:#c49252;
  --coral:#b45309;
  --h1:64px;
}
body.tpl-editorial .site-header{
  background:rgba(251,250,247,.96);
}
body.tpl-editorial .hero{
  padding:96px 0 84px;
  background:
    linear-gradient(90deg,rgba(155,107,47,.10) 0 1px,transparent 1px 100%),
    linear-gradient(#fbfaf7,#ffffff);
  background-size:80px 100%,auto;
}
body.tpl-editorial .hero-grid{
  grid-template-columns:1.05fr .95fr;
  gap:72px;
}
body.tpl-editorial .card,
body.tpl-editorial .resource-card{
  box-shadow:none;
  border-top:2px solid var(--accent);
  border-radius:0;
}
body.tpl-editorial .team-card,
body.tpl-editorial .contact-card{
  box-shadow:none;
  border-radius:0;
}
body.tpl-editorial .site-footer{
  background:#111111;
}
body.tpl-editorial .btn{
  border-radius:999px;
}

/* 4. Modern Cards: bright, rounded, more app-like */
body.tpl-modern{
  --bg:#f4f7fb;
  --paper:#ffffff;
  --ink:#0f172a;
  --muted:#526071;
  --line:#d8e1ec;
  --accent:#2563eb;
  --accent2:#0f766e;
  --coral:#f97316;
}
body.tpl-modern .site-header{
  background:rgba(255,255,255,.88);
  border-bottom-color:#d8e1ec;
}
body.tpl-modern .hero{
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.14), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(15,118,110,.12), transparent 30%),
    #f4f7fb;
}
body.tpl-modern .hero-image img,
body.tpl-modern .card,
body.tpl-modern .resource-card,
body.tpl-modern .team-card,
body.tpl-modern .contact-card{
  border-radius:28px;
}
body.tpl-modern .card,
body.tpl-modern .resource-card,
body.tpl-modern .team-card,
body.tpl-modern .contact-card{
  border:1px solid rgba(216,225,236,.95);
  box-shadow:0 22px 60px rgba(15,23,42,.08);
}
body.tpl-modern .btn{
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:0;
}
body.tpl-modern .brand-mark{
  width:44px;
  height:44px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  letter-spacing:-.08em;
}
body.tpl-modern .site-footer{
  background:#0f172a;
}

/* Template switch keeps nav readable */
body.tpl-executive .nav-link:hover,
body.tpl-executive .nav-link.active{
  color:#f0c987;
}
body.tpl-modern .nav-link:hover,
body.tpl-modern .nav-link.active{
  color:#2563eb;
}


/* v30: image fitting, clearer favicon/brand, and team detail pages */
.hero-image img,.card-img,.team-img,.sub-img,.detail-img,.team-profile-img{background:transparent!important;object-fit:contain!important;object-position:center center!important}
.hero-image img{width:100%;height:auto!important;max-height:680px}.card-img{aspect-ratio:auto!important;height:auto!important;max-height:420px;padding:0!important}.sub-img{height:auto!important;max-height:220px;padding:0!important}.team-img{height:auto!important;max-height:520px;padding:0!important}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 8px;border-radius:13px;background:var(--accent);color:#fff!important;font-family:Arial,Helvetica,sans-serif;font-size:17px!important;font-weight:900;letter-spacing:-.03em!important;line-height:1}.team-card-summary .subitems{display:none!important}.profile-link{background:var(--accent);color:#fff!important;border-color:var(--accent)!important}
.team-profile-grid{display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;gap:44px;align-items:center}.team-profile-img{width:100%;max-height:680px;border-radius:14px;border:1px solid var(--line);box-shadow:0 24px 70px rgba(0,0,0,.12)}.profile-actions{margin-top:24px}.profile-actions a{background:var(--paper)}.detail-img{width:100%;max-height:260px;border-radius:8px;border:1px solid var(--line);margin-bottom:14px}.team-detail-list:empty::before{content:"No additional details have been added yet.";color:var(--muted)}
@media(max-width:940px){.team-profile-grid{grid-template-columns:1fr}.hero-image img,.team-profile-img{max-height:none}}


/* v31: 图片按原比例显示，不再用灰色框强行裁切或补边 */
.hero-image,.card,.resource-card,.team-card,.sub-page-card{overflow:visible}
.hero-image::before{display:none!important}
.hero-image img,.card-img,.team-img,.sub-img,.detail-img,.team-profile-img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:initial!important;object-position:center center!important;margin-left:auto!important;margin-right:auto!important;background:transparent!important;padding:0!important}
.hero-image img{max-height:72vh!important}.card-img,.detail-img{max-height:520px!important}.sub-img{max-height:260px!important}.team-img{max-height:520px!important}.team-profile-img{max-height:760px!important}.team-card-summary .subitems{display:none!important}.profile-link{background:var(--accent);color:#fff!important;border-color:var(--accent)!important}


/* v34: 统一前台主题、替换巨大默认人像占位图、提高深色主题可读性 */
.image-placeholder{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:320px!important;
  aspect-ratio:4/3!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb,var(--accent) 20%,transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb,var(--paper) 92%,var(--accent)), color-mix(in srgb,var(--bg) 88%,var(--accent)) )!important;
  color:var(--accent)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 10%,transparent)!important;
  overflow:hidden!important;
}
.image-placeholder span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:92px;
  height:92px;
  border-radius:28px;
  border:1px solid color-mix(in srgb,var(--accent) 38%,transparent);
  background:color-mix(in srgb,var(--paper) 82%,transparent);
  font-family:Georgia,serif;
  font-size:34px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.08em;
}
.hero-image .image-placeholder{min-height:520px!important;aspect-ratio:1/1!important}
.team-img.image-placeholder{min-height:360px!important;aspect-ratio:4/5!important;border-radius:0!important;box-shadow:none!important}
.team-profile-img.image-placeholder{min-height:560px!important;aspect-ratio:4/5!important}
.card-img.image-placeholder,.detail-img.image-placeholder{min-height:220px!important;aspect-ratio:16/10!important}
.sub-img.image-placeholder{min-height:130px!important;aspect-ratio:16/9!important}

body.tpl-executive{
  color:#f8fafc!important;
  background:#080c13!important;
}
body.tpl-executive .section,
body.tpl-executive .page-content,
body.tpl-executive .home-overview{
  background:#080c13!important;
}
body.tpl-executive .section.alt{
  background:#0d1420!important;
}
body.tpl-executive .hero,
body.tpl-executive .page-hero{
  color:#f8fafc!important;
  background:
    radial-gradient(circle at 85% 10%,rgba(216,164,91,.18),transparent 34%),
    linear-gradient(135deg,#07101b 0%,#101827 100%)!important;
}
body.tpl-executive .site-header{
  background:rgba(7,12,20,.94)!important;
}
body.tpl-executive .lead,
body.tpl-executive .section-intro,
body.tpl-executive .card p,
body.tpl-executive .resource-card p,
body.tpl-executive .team-text,
body.tpl-executive .shortcut-card p,
body.tpl-executive .sub-page-card p,
body.tpl-executive .contact-card span,
body.tpl-executive .breadcrumb-mini{
  color:#cbd5e1!important;
}
body.tpl-executive .card,
body.tpl-executive .resource-card,
body.tpl-executive .team-card,
body.tpl-executive .contact-card,
body.tpl-executive .shortcut-card,
body.tpl-executive .sub-page-card{
  background:linear-gradient(180deg,#111827,#0d1420)!important;
  border-color:rgba(216,164,91,.26)!important;
  color:#f8fafc!important;
}
body.tpl-executive .image-placeholder{
  background:linear-gradient(135deg,#0f172a,#111827)!important;
  color:#d8a45b!important;
  border-color:rgba(216,164,91,.32)!important;
}
body.tpl-executive .image-placeholder span{
  background:rgba(216,164,91,.10)!important;
  border-color:rgba(216,164,91,.45)!important;
}
body.tpl-executive .team-links a,
body.tpl-executive .profile-actions a{
  color:#f8fafc!important;
  background:#111827!important;
  border-color:rgba(255,255,255,.16)!important;
}
body.tpl-executive .profile-link,
body.tpl-executive .btn{
  background:linear-gradient(135deg,#d8a45b,#f0c987)!important;
  color:#0b111c!important;
  border-color:#d8a45b!important;
}
body.tpl-editorial .image-placeholder{border-radius:0!important;box-shadow:none!important;background:#f8f5ef!important}
body.tpl-modern .image-placeholder{border-radius:28px!important;background:linear-gradient(135deg,#eff6ff,#ffffff)!important;color:#2563eb!important}


/* v35: no fake letter-image blocks; show photos only when uploaded, and allow long content */
.image-placeholder{display:none!important}
.hero-image:empty{display:none!important}
.card-img:empty,.team-img:empty,.sub-img:empty,.detail-img:empty,.team-profile-img:empty{display:none!important}
.card p,.resource-card p,.team-text,.lead,.section-intro,.sub-page-card p,.subitems span,.site-footer p{white-space:pre-wrap;overflow:visible!important;max-height:none!important}
.card,.resource-card,.team-card,.sub-page-card,.shortcut-card{height:auto!important;min-height:0!important;overflow:visible!important}
.card:not(:has(img)):before{margin-bottom:16px}
.resource-card:not(:has(img)){padding-top:20px}
.team-card-summary:not(:has(img)) .team-body{padding-top:28px}


/* v36: long text folds by default and expands on click */
.text-block{color:var(--muted);margin:0 0 16px;line-height:1.72;position:relative;overflow:visible;overflow-wrap:anywhere;white-space:normal}
.text-block .text-content{max-width:100%}
.text-block.is-collapsible.collapsed .text-content{max-height:7.2em;overflow:hidden;position:relative}
.text-block.is-collapsible.collapsed .text-content::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2.8em;background:linear-gradient(to bottom,rgba(255,255,255,0),var(--paper))}
.alt .text-block.is-collapsible.collapsed .text-content::after{background:linear-gradient(to bottom,rgba(255,255,255,0),var(--bg))}
.text-block.expanded .text-content{max-height:none}
.read-more{margin-top:8px;border:1px solid var(--line);background:transparent;color:var(--accent);font-weight:900;border-radius:999px;padding:8px 14px;cursor:pointer;letter-spacing:.03em}
.read-more:hover{border-color:var(--accent);background:rgba(185,133,60,.08)}
.card .text-block,.resource-card .text-block,.shortcut-card .text-block,.sub-page-card .text-block,.team-card .text-block{font-size:15px}
.team-profile-hero .lead.text-block{font-size:17px;max-width:720px}
body.tpl-executive .text-block.is-collapsible.collapsed .text-content::after{background:linear-gradient(to bottom,rgba(255,255,255,0),var(--paper))}
body.tpl-executive .read-more{background:rgba(255,255,255,.04);color:var(--accent)}
body.tpl-modern .text-block.is-collapsible.collapsed .text-content::after{background:linear-gradient(to bottom,rgba(255,255,255,0),var(--paper))}
body.tpl-editorial .text-block.is-collapsible.collapsed .text-content::after{background:linear-gradient(to bottom,rgba(255,255,255,0),var(--paper))}

/* v37: cleaner frontend cards, logo-based contact cards, and full profile bio */
.contact-top{display:flex;align-items:center;gap:16px;width:100%}
.contact-logo,.contact-action-logo{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:color-mix(in srgb,var(--accent) 13%,transparent);border:1px solid color-mix(in srgb,var(--accent) 36%,var(--line));color:var(--accent);flex:0 0 auto;text-decoration:none!important;transition:transform .16s ease, background .16s ease, border-color .16s ease}
.contact-logo svg,.contact-action-logo svg{width:28px;height:28px;color:currentColor}
.contact-action-logo:hover{transform:translateY(-2px);background:var(--accent);color:#fff;border-color:var(--accent)}
.contact-card{min-height:128px;justify-content:center}
.contact-card strong{display:block;margin-top:4px;font-size:18px;line-height:1.35}
.contact-card .contact-app{margin:0 0 4px;display:block}
.team-profile-hero .lead.text-block .text-content{max-height:none!important;overflow:visible!important}
.team-profile-hero .read-more{display:none!important}
.grid-6 .resource-card .subitems,.grid-3 .card .subitems,.contact-card .subitems{display:none!important}
.resource-card,.card{display:flex;flex-direction:column;justify-content:flex-start}
.nav-link.active{font-weight:900;color:var(--accent)!important;border-bottom:2px solid var(--accent)}
body.tpl-executive .contact-logo,body.tpl-executive .contact-action-logo{background:rgba(216,164,91,.10);border-color:rgba(216,164,91,.38)}
@media(max-width:940px){.contact-top{align-items:flex-start}.contact-logo,.contact-action-logo{width:50px;height:50px;border-radius:16px}}
.contact-action-logo .contact-logo{width:auto;height:auto;border:0;background:transparent;color:inherit;box-shadow:none}
.contact-action-logo .contact-logo svg{width:28px;height:28px}


/* v38 team behavior: team list shows preview only; full content is on profile page */
.team-summary-only .text-content{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.team-profile-hero .text-block .text-content,
.team-detail-list .text-block .text-content{
  max-height:none !important;
  overflow:visible !important;
  display:block !important;
}


/* v39: Blue Ridge polish and US family-office layout refinements */
.brand-name{letter-spacing:-.02em}
.page-hero h1,.hero h1{letter-spacing:-.035em}
.team-card.no-photo .team-body{padding-top:30px}
.team-card.has-photo .team-img{display:block}
.team-profile-grid.no-photo{grid-template-columns:1fr;max-width:860px}
.team-profile-grid.no-photo>div{max-width:760px}
.contact-top{display:flex;align-items:center;gap:16px}
.contact-logo,.contact-action-logo{width:50px;height:50px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--bg);color:var(--accent);flex:0 0 auto;box-shadow:0 12px 30px rgba(42,31,19,.06)}
.contact-logo svg,.contact-action-logo svg{width:25px;height:25px}
.contact-action-logo:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(42,31,19,.10)}
.contact-card strong{font-family:inherit;font-size:15px;font-weight:700;color:var(--ink);line-height:1.45}
.contact-card .contact-app{font-size:12px;margin:0 0 4px;color:var(--accent)}
.tpl-modern .contact-logo,.tpl-modern .contact-action-logo{background:#fff}
.tpl-executive .contact-logo,.tpl-executive .contact-action-logo{background:#111827;color:#d8a45b;border-color:rgba(255,255,255,.18)}
/* v40: team contact buttons use logos instead of text labels */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.member-action-row{align-items:center}
.member-action-icon{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;border-radius:999px;border:1px solid var(--line);background:var(--paper);color:var(--accent)!important;text-decoration:none!important;box-shadow:0 10px 22px rgba(42,31,19,.06);transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease}
.member-action-icon svg{width:20px;height:20px;display:block;color:currentColor}
.member-action-icon:hover{transform:translateY(-2px);background:var(--accent);color:#fff!important;border-color:var(--accent)}
.member-action-phone{color:#0f766e!important}.member-action-email{color:#b9853c!important}.member-action-telegram{color:#229ed9!important}
.profile-actions .member-action-icon{width:44px;height:44px}.profile-actions .member-action-icon svg{width:22px;height:22px}
.profile-actions .back-link{border-color:var(--line)!important;background:var(--paper)!important;color:var(--ink)!important}
.tpl-executive .member-action-icon{background:#111827;border-color:rgba(255,255,255,.18);color:#d8a45b!important}.tpl-executive .member-action-icon:hover{background:#d8a45b;color:#111827!important;border-color:#d8a45b}
.team-card.has-photo .team-img{display:block!important}.team-profile-grid.has-photo .team-profile-img{display:block!important}


/* v41: stronger team photo display and cache-safe layout */
.team-card.has-photo{display:flex;flex-direction:column;}
.team-card.has-photo .team-img{display:block!important;width:100%!important;min-height:260px;height:360px;object-fit:contain;object-position:center center;background:var(--bg);border-bottom:1px solid var(--line);}
.team-profile-grid.has-photo{display:grid;grid-template-columns:minmax(240px,360px) 1fr;gap:34px;align-items:start;}
.team-profile-grid.has-photo .team-profile-img{display:block!important;width:100%;max-height:520px;object-fit:contain;border-radius:18px;border:1px solid var(--line);background:var(--bg);}
@media(max-width:940px){.team-profile-grid.has-photo{grid-template-columns:1fr}.team-card.has-photo .team-img{height:auto;max-height:520px}}


/* v42: tighter team profile page; details live beside the photo instead of leaving a large empty area */
.team-profile-hero.compact-profile{padding-bottom:56px!important;}
.team-profile-hero.compact-profile .wrap{max-width:1160px;}
.team-profile-grid.has-photo{grid-template-columns:minmax(280px,360px) minmax(0,760px)!important;gap:34px!important;align-items:start!important;}
.team-profile-grid.no-photo{max-width:900px!important;}
.team-profile-main{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
.team-profile-main h1{margin-bottom:16px;}
.profile-actions{margin-top:20px!important;margin-bottom:0!important;}
.profile-detail-panel{width:100%;margin-top:26px;padding-top:24px;border-top:1px solid var(--line);}
.profile-detail-eyebrow{margin-bottom:14px!important;}
.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.profile-detail-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px 20px;box-shadow:0 14px 42px rgba(15,23,42,.06);}
.profile-detail-card h3{margin:0 0 8px;font-size:18px;line-height:1.25;}
.profile-detail-card .text-block,.profile-detail-card .text-content{font-size:15px;line-height:1.72;color:var(--text);}
.profile-photo-wrap{position:sticky;top:92px;align-self:start;}
.team-profile-grid.has-photo .team-profile-img{max-height:600px!important;object-fit:cover!important;object-position:center top!important;}
.team-detail-list:empty{display:none!important;}
@media(max-width:1080px){.team-profile-grid.has-photo{grid-template-columns:minmax(240px,330px) 1fr!important}.profile-detail-grid{grid-template-columns:1fr}}
@media(max-width:940px){.team-profile-grid.has-photo{grid-template-columns:1fr!important}.profile-photo-wrap{position:static}.team-profile-grid.has-photo .team-profile-img{max-height:none!important}.profile-detail-grid{grid-template-columns:1fr}}


/* v43: US-style team directory and profile pages */
.team-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:46px 58px!important;align-items:start!important;max-width:1180px;margin:0 auto!important;}
.team-member-tile{display:flex!important;flex-direction:column;align-items:center;text-align:center;text-decoration:none;color:var(--ink);gap:10px;padding:4px 8px;border:0!important;background:transparent!important;box-shadow:none!important;transition:transform .16s ease,color .16s ease;}
.team-member-tile:hover{transform:translateY(-3px);color:var(--accent);}
.team-photo-circle{width:178px;height:178px;border-radius:999px;display:block;overflow:hidden;background:var(--paper);box-shadow:0 12px 32px rgba(42,31,19,.08);}
.team-photo-circle .team-img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center top!important;border:0!important;background:transparent!important;margin:0!important;padding:0!important;display:block!important;}
.team-tile-name{font-weight:850;font-size:18px;line-height:1.2;letter-spacing:.01em;color:var(--ink);margin-top:4px;}
.team-tile-role{font-family:Georgia,serif;color:var(--muted);font-size:15px;line-height:1.35;max-width:220px;}
.team-member-tile.no-photo .team-tile-name{margin-top:0;}
.team-profile-page{padding:54px 0 74px;background:var(--paper);}
.team-profile-page .wrap{max-width:1120px;}
.team-profile-page .breadcrumb-mini{font-size:13px;margin:0 0 36px;color:var(--muted);}
.team-profile-page .team-profile-grid.has-photo{display:grid!important;grid-template-columns:300px minmax(0,650px)!important;gap:64px!important;align-items:start!important;}
.team-profile-page .profile-photo-wrap{position:static!important;}
.team-profile-page .team-profile-img{width:300px!important;height:300px!important;max-width:300px!important;max-height:300px!important;border-radius:999px!important;object-fit:cover!important;object-position:center top!important;border:0!important;box-shadow:0 16px 40px rgba(42,31,19,.08)!important;background:transparent!important;}
.team-profile-page .team-profile-main h1{font-size:clamp(42px,5vw,64px);line-height:.98;margin:0 0 10px;}
.team-profile-page .profile-line{font-size:18px;letter-spacing:0;text-transform:none;color:var(--ink);font-weight:500;margin:0 0 14px;}
.team-profile-page .profile-summary{font-size:17px;line-height:1.8;max-width:650px;margin-top:24px;}
.team-profile-page .profile-actions{gap:12px;margin:14px 0 24px;}
.team-profile-page .member-action-icon{width:32px!important;height:32px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--accent)!important;}
.team-profile-page .member-action-icon svg{width:18px!important;height:18px!important;}
.team-profile-page .member-action-icon:hover{background:transparent!important;color:var(--ink)!important;transform:translateY(-1px);}
.profile-detail-panel{margin-top:30px!important;width:100%;}
.profile-detail-grid{display:block!important;}
.profile-detail-card{border:0!important;background:transparent!important;padding:0!important;margin:0 0 28px!important;box-shadow:none!important;}
.profile-detail-card h3{font-size:17px!important;line-height:1.4;margin:0 0 6px!important;font-weight:850;color:var(--ink);font-family:var(--sans);}
.profile-detail-card .text-block{font-size:16px;line-height:1.72;color:var(--ink);}
.team-profile-page .back-link{margin-top:6px;border:1px solid var(--line);border-radius:999px;padding:9px 14px;color:var(--ink);text-decoration:none;font-size:14px;}
body.tpl-executive .team-member-tile,body.tpl-executive .team-tile-name,body.tpl-executive .team-profile-page .profile-line,body.tpl-executive .profile-detail-card h3,body.tpl-executive .profile-detail-card .text-block{color:var(--ink)!important;}
body.tpl-executive .team-profile-page{background:var(--bg);}
@media(max-width:900px){.team-grid{grid-template-columns:repeat(2,minmax(150px,1fr))!important;gap:34px 26px!important}.team-photo-circle{width:150px;height:150px}.team-profile-page .team-profile-grid.has-photo{grid-template-columns:1fr!important;gap:28px!important}.team-profile-page .team-profile-img{width:230px!important;height:230px!important;max-width:230px!important;max-height:230px!important}.team-profile-page .team-profile-main h1{font-size:42px}}


/* v44: final homepage layout cleanup - no empty image panel when no hero image is uploaded */
.hero{position:relative;overflow:hidden;}
.hero.no-hero-image{padding:84px 0 72px;background:linear-gradient(135deg,var(--paper) 0%,var(--paper) 58%,var(--bg) 58%,var(--bg) 100%);border-bottom:1px solid var(--line);}
.hero.no-hero-image .hero-grid{display:block;max-width:1180px;margin:0 auto;}
.hero.no-hero-image .hero-copy{max-width:760px;padding:0;}
.hero.no-hero-image .hero-copy h1{max-width:760px;margin-bottom:24px;}
.hero.no-hero-image .hero-lead{max-width:680px;}
.hero.no-hero-image::after{content:"";position:absolute;right:-90px;top:70px;width:360px;height:360px;border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,transparent);pointer-events:none;}
.hero.has-hero-image .hero-grid{align-items:center;}
.hero.has-hero-image .hero-image{min-height:360px;display:flex;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--line);border-radius:22px;overflow:hidden;}
.hero.has-hero-image .hero-img{width:100%;height:100%;max-height:520px;object-fit:cover;object-position:center;}
.home-overview{padding-top:58px;}
.home-shortcuts{margin-top:28px;}
.shortcut-card{min-height:220px;}
@media(max-width:900px){.hero.no-hero-image{padding:58px 0 50px;background:var(--paper)}.hero.no-hero-image::after{display:none}.hero.no-hero-image .hero-copy{max-width:none}.hero.has-hero-image .hero-image{min-height:auto}}

/* v44: tighter, more American corporate spacing across front pages */
.page-hero{padding-top:54px;padding-bottom:46px;}
.page-content{padding-top:54px;padding-bottom:72px;}
.grid-3,.grid-6,.contact-grid{gap:26px;}
.card,.resource-card,.contact-card{border-radius:14px;}
.site-header{border-bottom:1px solid var(--line);}

/* v45: make uploaded homepage hero images blend into the page instead of looking pasted on */
.hero.has-hero-image{
  padding:96px 0 86px!important;
  background:
    radial-gradient(circle at 86% 42%, color-mix(in srgb, var(--accent) 10%, transparent) 0 18%, transparent 19%),
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 68%, color-mix(in srgb, var(--bg) 78%, var(--paper)) 68%, color-mix(in srgb, var(--bg) 78%, var(--paper)) 100%)!important;
  border-bottom:1px solid var(--line)!important;
}
.hero.has-hero-image::after{
  width:260px!important;
  height:260px!important;
  right:-70px!important;
  top:126px!important;
  background:color-mix(in srgb, var(--accent) 8%, transparent)!important;
}
.hero.has-hero-image .hero-grid{
  grid-template-columns:minmax(0, .92fr) minmax(320px, .72fr)!important;
  gap:72px!important;
  align-items:center!important;
}
.hero.has-hero-image .hero-copy{
  max-width:620px!important;
}
.hero.has-hero-image .hero-image{
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:34px!important;
  overflow:visible!important;
  padding:0!important;
  box-shadow:none!important;
}
.hero.has-hero-image .hero-image::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:26px -22px -22px 34px!important;
  border-radius:34px!important;
  background:color-mix(in srgb, var(--accent) 7%, transparent)!important;
  border:1px solid color-mix(in srgb, var(--accent) 14%, transparent)!important;
  z-index:-1!important;
}
.hero.has-hero-image .hero-img{
  width:100%!important;
  max-width:520px!important;
  height:440px!important;
  max-height:52vh!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:28px!important;
  border:1px solid color-mix(in srgb, var(--accent) 16%, var(--line))!important;
  box-shadow:0 24px 64px rgba(42,31,19,.14)!important;
  background:var(--paper)!important;
}
@media(max-width:1100px){
  .hero.has-hero-image .hero-grid{gap:42px!important;grid-template-columns:1fr .72fr!important}
  .hero.has-hero-image .hero-img{height:380px!important}
}
@media(max-width:900px){
  .hero.has-hero-image{padding:58px 0 54px!important;background:var(--paper)!important}
  .hero.has-hero-image::after,.hero.has-hero-image .hero-image::before{display:none!important}
  .hero.has-hero-image .hero-grid{grid-template-columns:1fr!important;gap:30px!important}
  .hero.has-hero-image .hero-img{max-width:100%!important;height:auto!important;max-height:none!important}
}
