/* =====================================================================
   COOP UI layer (v85-10) -- shadcn/ui design language for the static site.
   Tokens, radii, shadows, Button / Card / Badge / Table / Accordion / Input /
   Popover treatments follow shadcn/ui. Loaded last on every page.
   Every rule is scoped with :not(#hero *) so the homepage hero is untouched.
   ===================================================================== */
:root{
  --ui-background:0 0% 100%;
  --ui-foreground:218 38% 15%;
  --ui-muted:210 22% 96%;
  --ui-muted-foreground:214 14% 38%;
  --ui-accent:186 28% 94%;
  --ui-border:214 16% 89%;
  --ui-input:214 16% 84%;
  --ui-primary:185 68% 31%;
  --ui-primary-foreground:0 0% 100%;
  --ui-ring:185 68% 31%;
  --ui-radius:.625rem;
  --ui-shadow-xs:0 1px 2px 0 rgb(15 23 42 / .05);
  --ui-shadow-sm:0 1px 3px 0 rgb(15 23 42 / .08),0 1px 2px -1px rgb(15 23 42 / .06);
  --ui-shadow-md:0 8px 24px -6px rgb(15 23 42 / .14),0 2px 6px -2px rgb(15 23 42 / .06);
}

:where(a,button,input,select,textarea,summary):focus-visible:not(#hero *){outline:2px solid hsl(var(--ui-ring));outline-offset:2px;border-radius:6px}
::selection{background:hsl(var(--ui-primary) / .18)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.btn-primary:not(#hero *),
.btn-secondary:not(#hero *),
.btn-outline:not(#hero *),
.nav-cta:not(#hero *),
.cta:not(#hero *),
.secondary:not(#hero *),
.guide-cta:not(#hero *),
.v53-submit:not(#hero *),
.portal-btn-primary:not(#hero *),
.portal-btn-secondary:not(#hero *),
.mtg-btn:not(#hero *),
.tip-btn:not(#hero *),
.open-mtg:not(#hero *),
.cta-strip a:not(#hero *),
.v79-more a:not(#hero *),
.v84-learn a.btn:not(#hero *){border-radius:8px!important;font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif!important;font-size:14px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;line-height:1.25!important;box-shadow:var(--ui-shadow-xs);transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease!important}
.btn-primary:not(#hero *),
.btn-secondary:not(#hero *),
.btn-outline:not(#hero *),
.portal-btn-primary:not(#hero *),
.portal-btn-secondary:not(#hero *),
.v53-submit:not(#hero *){min-height:44px!important;height:auto!important;padding:11px 22px!important}
.cta:not(#hero *),
.secondary:not(#hero *),
.guide-cta:not(#hero *){padding:12px 22px!important;min-height:44px}
.nav-cta:not(#hero *){min-height:38px!important;height:auto!important;padding:9px 16px!important}
.btn-primary:hover:not(#hero *),
.cta:hover:not(#hero *),
.guide-cta:hover:not(#hero *),
.v53-submit:hover:not(#hero *),
.portal-btn-primary:hover:not(#hero *){box-shadow:var(--ui-shadow-sm);filter:brightness(1.06);transform:translateY(-1px)}
.secondary:hover:not(#hero *),
.btn-outline:hover:not(#hero *),
.portal-btn-secondary:hover:not(#hero *){background:hsl(var(--ui-accent))!important;border-color:hsl(var(--ui-primary) / .45)!important;color:hsl(var(--ui-primary))!important}
body:not(.index-page) .secondary:not(#hero *),
.svc-page .secondary:not(#hero *){border:1px solid hsl(var(--ui-input))!important;background:hsl(var(--ui-background))!important;color:hsl(var(--ui-foreground))!important}
.section-label:not(#hero *),
.kicker:not(#hero *),
.eyebrow:not(#hero *),
.v53-kicker:not(#hero *),
.panel-kicker:not(#hero *),
.services-hero-kicker:not(#hero *),
.services-support-kicker:not(#hero *),
.portal-kicker:not(#hero *),
.v49-practice-label:not(#hero *),
.service-tag:not(#hero *),
.plan-tag:not(#hero *),
.vs-pill:not(#hero *),
.vs-badge:not(#hero *){display:inline-flex!important;align-items:center;gap:8px;width:fit-content;max-width:100%;padding:3px 12px;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:999px;background:color-mix(in srgb,currentColor 5%,transparent);font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif!important;font-size:12px!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important;line-height:1.5}
.section-label:not(#hero *)::before,
.section-label:not(#hero *)::after,
.kicker:not(#hero *)::before,
.kicker:not(#hero *)::after,
.eyebrow:not(#hero *)::before,
.eyebrow:not(#hero *)::after{display:none!important}
.card:not(#hero *),
.service-card:not(#hero *),
.client-path-grid article:not(#hero *),
.v57-home-news-card:not(#hero *),
.v78-featured-card:not(#hero *),
.v43-insight-card:not(#hero *),
.v57-news-card:not(#hero *),
.serve-card:not(#hero *),
.value-card:not(#hero *),
.services-support-card:not(#hero *),
.services-value-card:not(#hero *),
.v49-practice-card:not(#hero *),
.pillar:not(#hero *),
.scard:not(#hero *),
.plan:not(#hero *),
.vs-card:not(#hero *),
.resource-brief-card:not(#hero *),
.v53-form-card:not(#hero *),
.v53-office-card:not(#hero *),
.v53-intro-card:not(#hero *),
.v53-hero-card:not(#hero *),
.portal-step-card:not(#hero *),
.portal-login-card:not(#hero *),
.faq-item:not(#hero *),
.related a:not(#hero *),
.related-grid a:not(#hero *),
.hero-card:not(#hero *),
.cmp-fit:not(#hero *),
.addons:not(#hero *),
.saddons:not(#hero *),
.tip-box:not(#hero *),
.mtg-card:not(#hero *){border-radius:12px!important;box-shadow:var(--ui-shadow-sm);transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease,background-color .2s ease}
.v43-insight-card:hover:not(#hero *),
.v78-featured-card:hover:not(#hero *),
.v57-home-news-card:hover:not(#hero *),
.related a:hover:not(#hero *),
.related-grid a:hover:not(#hero *),
.v49-practice-card:hover:not(#hero *),
.service-card:hover:not(#hero *),
.v57-news-card:hover:not(#hero *){box-shadow:var(--ui-shadow-md);transform:translateY(-2px)}
.v78-featured-card:not(#hero *),
.v57-news-card:not(#hero *),
.editorial-media-card:not(#hero *),
.about-photo-main:not(#hero *),
.about-img-wrap:not(#hero *),
.services-hero-card:not(#hero *),
.services-hero-photo:not(#hero *),
.v49-specialized-visual:not(#hero *),
.v49-specialized-shell:not(#hero *),
.resource-brief-card:not(#hero *),
.hero-card:not(#hero *),
.vs-card:not(#hero *){overflow:hidden}
.services-grid:not(#hero *){gap:16px!important;background:transparent!important;border:0!important}
.client-path-grid article:not(#hero *){background:hsl(var(--ui-background));border-color:hsl(var(--ui-border))!important}
.service-card:not(#hero *){border:1px solid hsl(var(--ui-border))!important;background:hsl(var(--ui-background))!important;background-image:none!important;min-height:0!important;padding:32px 30px!important}
.svc-page .card:not(#hero *),
.svc-page .faq-item:not(#hero *),
.related a:not(#hero *),
.related-grid a:not(#hero *),
.scard:not(#hero *),
.plan:not(#hero *),
.faq-item:not(#hero *){border-color:hsl(var(--ui-border))!important}
.v63-authority-grid>*:not(#hero *),
.about-img-wrap:not(#hero *),
.editorial-media-card:not(#hero *),
.about-photo-main:not(#hero *),
.services-hero-photo:not(#hero *),
.services-hero-card:not(#hero *){border-radius:12px!important;overflow:hidden}
.v63-authority-grid>*:not(#hero *){box-shadow:var(--ui-shadow-sm);transition:box-shadow .2s,transform .2s}
.v63-authority-grid>*:hover:not(#hero *){box-shadow:var(--ui-shadow-md);transform:translateY(-2px)}
.v63-authority-label:not(#hero *){display:inline-flex;width:fit-content;padding:3px 12px;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:999px;font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif!important;font-size:12px!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important}
.credential-tag:not(#hero *),
.cred-tag:not(#hero *),
.about-meta-row span:not(#hero *){border-radius:999px!important;padding:4px 12px!important;font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
.direct-answer:not(#hero *){border-radius:10px!important;border:1px solid hsl(185 30% 84%)!important;border-left:4px solid hsl(var(--ui-primary))!important;background:hsl(185 32% 96%)!important;box-shadow:var(--ui-shadow-xs)}
.disclaimer:not(#hero *),
.pr-disclaimer:not(#hero *),
.small-print:not(#hero *){border-radius:10px;border:1px solid hsl(var(--ui-border));background:hsl(var(--ui-muted));padding:14px 18px}
.guide-toc a:not(#hero *){display:inline-flex;align-items:center;padding:6px 14px;border:1px solid hsl(var(--ui-border));border-radius:999px;background:hsl(var(--ui-background));font-size:14px;font-weight:500;text-decoration:none!important;color:hsl(var(--ui-foreground))!important;box-shadow:var(--ui-shadow-xs);transition:background-color .15s,border-color .15s}
.guide-toc a:hover:not(#hero *){background:hsl(var(--ui-accent));border-color:hsl(var(--ui-primary) / .4)}
.guide-table-wrap:not(#hero *),
.tbl-wrap:not(#hero *){border:1px solid hsl(var(--ui-border));border-radius:12px;overflow:auto;background:hsl(var(--ui-background));box-shadow:var(--ui-shadow-xs);-webkit-overflow-scrolling:touch}
.guide-table-wrap table:not(#hero *),
.tbl-wrap table:not(#hero *),
.guide-main table:not(#hero *),
table.cmp:not(#hero *){border-collapse:separate!important;border-spacing:0!important;border:0!important;margin:0!important}
.guide-main th:not(#hero *),
.guide-main td:not(#hero *),
.cmp th:not(#hero *),
.cmp td:not(#hero *){border:0!important;border-bottom:1px solid hsl(var(--ui-border))!important}
.guide-main tr:last-child td:not(#hero *),
.guide-main tr:last-child th:not(#hero *),
.cmp tr:last-child td:not(#hero *),
.cmp tr:last-child th:not(#hero *){border-bottom:0!important}
.guide-main thead th:not(#hero *),
.cmp thead th:not(#hero *){background:hsl(var(--ui-muted))!important;color:hsl(var(--ui-muted-foreground))!important;font-weight:500!important;font-size:13px!important;letter-spacing:0!important;text-transform:none!important}
.guide-main tbody tr:hover:not(#hero *),
.cmp tbody tr:hover:not(#hero *){background:hsl(var(--ui-muted) / .6)}
.guide-main th:not(#hero *){font-weight:500}
.guide-main details:not(#hero *),
.faq-body details:not(#hero *),
details.faq:not(#hero *){border-bottom:1px solid hsl(var(--ui-border))!important;padding:0!important}
.guide-main summary:not(#hero *),
.faq-body summary:not(#hero *),
details.faq summary:not(#hero *){display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;font-weight:500!important;cursor:pointer;list-style:none;transition:color .15s}
.guide-main summary:not(#hero *)::-webkit-details-marker,
.faq-body summary:not(#hero *)::-webkit-details-marker{display:none}
.guide-main summary:not(#hero *)::after,
.faq-body summary:not(#hero *)::after{content:'';flex:0 0 16px;width:16px;height:16px;opacity:.55;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s ease}
.guide-main details[open]>summary:not(#hero *)::after,
.faq-body details[open]>summary:not(#hero *)::after{transform:rotate(180deg)}
.guide-main summary:hover:not(#hero *),
.faq-body summary:hover:not(#hero *){text-decoration:underline;text-underline-offset:4px}
.guide-main details>*:not(summary):not(#hero *){padding-bottom:4px}
.faq-trigger:not(#hero *){border-radius:8px;transition:background-color .15s}
.faq-trigger:hover:not(#hero *){background:hsl(var(--ui-muted) / .6)}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not(#hero *),
select:not(#hero *),
textarea:not(#hero *){min-height:40px;padding:8px 12px;border:1px solid hsl(var(--ui-input))!important;border-radius:8px!important;background-color:hsl(var(--ui-background));color:hsl(var(--ui-foreground));font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;font-size:15px;box-shadow:var(--ui-shadow-xs);transition:border-color .15s,box-shadow .15s}
textarea:not(#hero *){min-height:110px}
input:not(#hero *)::placeholder,
textarea:not(#hero *)::placeholder{color:hsl(var(--ui-muted-foreground) / .75)}
input:not([type=checkbox]):not([type=radio]):focus:not(#hero *),
select:focus:not(#hero *),
textarea:focus:not(#hero *){outline:none!important;border-color:hsl(var(--ui-ring))!important;box-shadow:0 0 0 3px hsl(var(--ui-ring) / .22)!important}
nav .navlinks>a:not(#hero *),
nav .nav-links>a:not(#hero *),
nav .nav-item>a:not(#hero *),
nav .nav-links .nav-item>a:not(#hero *){border-radius:6px;transition:background-color .15s,box-shadow .15s}
nav .navlinks>a:hover:not(#hero *),
nav .nav-links>a:hover:not(#hero *),
nav .nav-item>a:hover:not(#hero *){background:color-mix(in srgb,currentColor 7%,transparent);box-shadow:0 0 0 6px color-mix(in srgb,currentColor 7%,transparent)}
nav .nav-dd:not(#hero *){border:1px solid hsl(var(--ui-border))!important;border-radius:12px!important;padding:6px!important;min-width:320px;box-shadow:0 12px 32px -8px rgb(15 23 42 / .18),0 2px 8px -2px rgb(15 23 42 / .08)!important;background:hsl(var(--ui-background))!important}
nav .nav-dd a:not(#hero *),
nav .navlinks .nav-dd a:not(#hero *),
nav .nav-links .nav-dd a:not(#hero *){border-left:0!important;border-radius:8px;padding:9px 14px!important;transition:background-color .12s}
nav .nav-dd a:hover:not(#hero *),
nav .nav-dd a:focus-visible:not(#hero *),
nav .nav-dd a[aria-current=page]:not(#hero *){background:hsl(var(--ui-accent))!important}
nav .nav-dd .nav-dd-all:not(#hero *){margin-top:6px!important;padding-top:6px!important;border-top:1px solid hsl(var(--ui-border))!important;border-radius:0 0 8px 8px}
nav .nav-dd-toggle:not(#hero *){border-radius:6px!important}
nav .lang:not(#hero *),
.lang:not(#hero *){border-radius:8px;font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;font-weight:500;letter-spacing:.02em;box-shadow:var(--ui-shadow-xs);transition:background-color .15s}
nav .lang:hover:not(#hero *){background:hsl(var(--ui-accent))}
nav.crumbs:not(#hero *){box-shadow:none}
.v70-mobile-menu summary:not(#hero *){border-radius:8px!important;font-family:'DM Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif!important;font-weight:500;background:hsl(var(--ui-background))}
.v70-menu-links:not(#hero *){border-radius:0 0 12px 12px;box-shadow:var(--ui-shadow-md)!important}
nav:not(#hero *){backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px)}

.cat-btn:not(#hero *){border-radius:8px!important;transition:background-color .15s,color .15s}
.cat-btn:hover:not(#hero *){background:hsl(var(--ui-accent))}
footer a:hover:not(#hero *),
.footer-col a:hover:not(#hero *),
.v70-privacy-footer a:hover:not(#hero *){text-decoration:underline;text-underline-offset:4px}
img.about-img:not(#hero *),
.about-img:not(#hero *),
.services-photo:not(#hero *),
.about-photo-main img:not(#hero *){border-radius:inherit}
blockquote:not(#hero *){border-radius:0 12px 12px 0}
@media (max-width:640px){
  .services-grid:not(#hero *){gap:12px!important}
  .guide-table-wrap:not(#hero *),.tbl-wrap:not(#hero *){border-radius:10px}
}
@media (prefers-reduced-motion:reduce){
  *:not(#hero *){transition-duration:.01ms!important}
  .v43-insight-card:hover:not(#hero *),.service-card:hover:not(#hero *),.related a:hover:not(#hero *){transform:none!important}
}

