/* Stooper Unified Public Design 2026.12.06 — final layer, after page-specific styles.
   Keeps application dimensions, data, semantics, print layouts and functional selectors intact. */
:root{
  --st-ink:#19344d;--st-muted:#52697e;--st-brand:#245780;--st-brand-hover:#183f60;
  --st-link:#185e94;--st-surface:#ffffff;--st-bg:#f6f8fa;--st-tint:#eef5fb;
  --st-border:#d6e2eb;--st-radius:16px;--st-control:10px;
  --st-shadow:0 3px 12px rgba(25,52,77,.045);--st-shadow-hover:0 8px 22px rgba(25,52,77,.09);
  --st-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --st-space:clamp(18px,3vw,40px);--st-content:1260px;
  --background:var(--st-bg);--foreground:var(--st-ink);--primary:var(--st-brand);--primary-foreground:#fff;
  --muted-foreground:var(--st-muted);--border:var(--st-border);
}
html[lang^="zh"]{--st-font:"Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif}
@media screen{
body,html[lang^="zh"] body{font-family:var(--st-font);background:var(--st-bg);color:var(--st-ink);font-size:16px;line-height:1.6}
/* Shared type scale. No fixed heights: translated text can grow. */
.hero h1,.page-heading h1,.article>h1,.stooper-article-hero h1,.ai-unified .ai-hero h1{font-size:clamp(2.15rem,4.3vw,3.65rem);line-height:1.13;letter-spacing:-.035em;font-weight:690;color:var(--st-ink);overflow-wrap:anywhere;text-wrap:pretty}
.hero h1 em{font-family:inherit;font-weight:650;color:var(--st-brand);font-style:normal;letter-spacing:inherit}
.section-heading h2,.resource-group-heading h2,.within h2,.custom-band h2,.studio-promo h2{font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.2;font-weight:680;letter-spacing:-.028em;color:var(--st-ink);overflow-wrap:anywhere}
.page-heading .lede,.hero .lede,.section-heading p:not(.eyebrow),.resource-group-heading p:not(.eyebrow){color:var(--st-muted);font-size:1.06rem;line-height:1.72}
.eyebrow,.article-kicker{font-size:.76rem;font-weight:750;letter-spacing:.12em;color:var(--st-brand)}
.product-info h3,.category-card h3,.guide h3,.solution-grid h3,.home-visual-copy h3,.contact-card h3,.search-card h2{font-size:clamp(1.12rem,1.6vw,1.35rem);line-height:1.38;letter-spacing:-.012em;font-weight:680;overflow-wrap:anywhere}
.product-info p,.category-card p,.guide p,.solution-grid p,.home-visual-copy p,.search-card p{font-size:.94rem;line-height:1.65;color:var(--st-muted)}
html[lang^="zh"] :is(.hero h1,.page-heading h1,.stooper-article-hero h1,.section-heading h2,.guide h3){letter-spacing:0;line-height:1.35}
/* Shared header. Keep existing desktop/mobile menu behavior and click targets. */
.draft-ribbon{background:#e7f0f7;color:#385c77;font-size:11px;font-weight:600}
header.header{max-width:var(--st-content);min-height:78px;height:auto;padding:16px var(--st-space);gap:20px}
header.header .wordmark{color:var(--st-ink);font-weight:820;line-height:1.1;letter-spacing:-.065em;flex-shrink:0}
header.header > nav{gap:clamp(5px, .75vw, 11px);align-items:center}
header.header > nav > a:not(.stooper-studio-nav-link){padding:9px 8px;border:1px solid transparent;border-radius:8px;font-size:.875rem;font-weight:550;color:var(--st-ink);line-height:1.35;white-space:nowrap}
header.header > nav > a:not(.stooper-studio-nav-link):hover,header.header > nav > a:not(.stooper-studio-nav-link).active,header.header > nav > a:not(.stooper-studio-nav-link)[aria-current="page"]{background:#e8f0f7;color:var(--st-brand-hover);border-color:transparent}
header.header a.stooper-studio-nav-link,header.header a.stooper-studio-nav-link:visited{background:var(--st-brand-hover);border-color:var(--st-brand-hover);color:#fff!important;font-weight:750;min-height:40px;border-radius:var(--st-control);padding:10px 14px;box-shadow:0 2px 5px #19344d16}
header.header a.stooper-studio-nav-link :is(strong,span,b){color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:750}
header.header a.stooper-studio-nav-link:hover,header.header a.stooper-studio-nav-link:focus-visible{background:#102f49;color:#fff!important}
header.header .header-contact{border:1px solid var(--st-border);border-radius:var(--st-control);background:#fff;font-weight:650;font-size:.875rem;white-space:nowrap;min-height:44px;padding:10px 13px}
header.header .header-contact:hover{background:var(--st-tint);border-color:#9ebad0;color:var(--st-brand-hover)}
header.header .mobile-menu summary{border:1px solid var(--st-border);border-radius:var(--st-control);background:#fff;min-height:44px;padding:10px 12px;font-weight:650}
header.header .mobile-menu > div{border-radius:var(--st-radius);border-color:var(--st-border);box-shadow:var(--st-shadow-hover);max-width:calc(100vw - 30px)}
header.header .mobile-menu > div > a:not(.stooper-studio-nav-link){border-radius:8px;padding:10px;min-height:44px}
header.header .mobile-menu > div > a:not(.stooper-studio-nav-link):hover{background:var(--st-tint)}
/* Layout rhythm shared by the homepage, tool directory, services, guides and hubs. */
main > .section,.stooper-article-shell{max-width:var(--st-content);margin-inline:auto}
main > .section{padding:clamp(38px,5.6vw,76px) var(--st-space)}
main > .section.inner{padding-top:clamp(28px,4.5vw,58px);min-height:0}
main > .section.studio-promo{padding-top:clamp(24px,3vw,40px);padding-bottom:24px}
main > .home-visual-section{padding-top:32px}
.page-heading{max-width:900px;margin-bottom:clamp(26px,4vw,42px)}
.section-heading{gap:16px 24px;margin-bottom:clamp(22px,3vw,34px)}
main > .hero{max-width:var(--st-content);margin:0 auto;background:radial-gradient(ellipse at 92% 8%,#dcebf7 0,transparent 54%),linear-gradient(145deg,#fff,#eef5fb);border:1px solid var(--st-border);border-radius:24px;padding:clamp(30px,5vw,65px) var(--st-space) 0}
main > .hero .hero-top{padding-inline:0}
.service-preview,.studio-promo-shell,.custom-band{border-radius:var(--st-radius);border:1px solid var(--st-border);box-shadow:var(--st-shadow)}
.studio-promo-shell{background:#eaf2f9}
/* Button family: action links only; article hyperlinks remain text links. */
main :is(a.button,button.button,a.studio-primary,a.studio-secondary,a.tool-open,a.wa-button),.stooper-related-cta a,.article-cta-actions a{border-radius:var(--st-control);min-height:44px;font-family:var(--st-font);font-weight:650;font-size:.9rem;line-height:1.4;padding:11px 17px;gap:9px;max-width:100%;white-space:normal;text-align:center;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}
main :is(a.button.primary,button.button.primary,a.studio-primary,a.tool-open),.stooper-related-cta a{background:var(--st-brand);border:1px solid var(--st-brand);color:#fff!important;text-decoration:none!important;box-shadow:0 2px 5px #19344d19}
main :is(a.button.primary,button.button.primary,a.studio-primary,a.tool-open) :is(strong,b,span),.stooper-related-cta a :is(strong,b,span){color:inherit!important}
main :is(a.button.primary,button.button.primary,a.studio-primary,a.tool-open):hover,.stooper-related-cta a:hover{background:var(--st-brand-hover);border-color:var(--st-brand-hover);color:white!important;box-shadow:var(--st-shadow-hover)}
main :is(a.button:not(.primary),button.button:not(.primary),a.studio-secondary){background:white;border:1px solid #b9cddb;color:var(--st-brand-hover);text-decoration:none}
main :is(a.button:not(.primary),button.button:not(.primary),a.studio-secondary):hover{background:var(--st-tint);border-color:#8baec8}
main a.text-link,.end-note > a{color:var(--st-link);font-weight:650;text-underline-offset:4px;gap:7px;line-height:1.45}
main a.text-link:hover,.end-note > a:hover{color:var(--st-brand-hover);text-decoration:underline}
main a.text-link.back{font-size:.88rem}
main :is(button.button,a.button,a.studio-primary,a.studio-secondary):active{transform:translateY(1px);box-shadow:none}
main button:disabled,main input[type=submit]:disabled{cursor:not-allowed;opacity:.6}
/* Consistent catalogue cards, preserving featured artwork and semantic content. */
.product-grid,.category-grid,.solution-grid,.home-visual-grid,.legal-card-grid{gap:18px}
main :is(.product-card,.category-card,.solution-grid article,.home-visual-card,.search-card,.legal-card,.contact-card,.detail-preview,.studio-benefits article,.career-card){border:1px solid var(--st-border);border-radius:var(--st-radius);background:var(--st-surface);box-shadow:var(--st-shadow);min-width:0}
main :is(a.product-card,a.category-card,a.home-visual-card,a.legal-card,a.career-card){transition:box-shadow .18s,border-color .18s,transform .18s}
@media(hover:hover){main :is(a.product-card,a.category-card,a.home-visual-card,a.legal-card,a.career-card):hover{border-color:#97b6cd;box-shadow:var(--st-shadow-hover);transform:translateY(-2px)}}
.product-info,.category-card,.solution-grid article,.home-visual-copy{padding:clamp(18px,2.2vw,26px)}
.product-info>small,.category-card small,.guide small{color:var(--st-muted);font-size:.76rem;font-weight:650}
.product-art{border-bottom:1px solid #e1eaf0}
main .product-status{font-weight:650;color:var(--st-link)}
.guide-list{display:grid;gap:10px}
main a.guide{padding:clamp(15px,2vw,23px);gap:18px;border:1px solid var(--st-border);border-radius:12px;background:#fff;transition:border-color .16s,background-color .16s,box-shadow .16s;min-width:0}
main a.guide > div{min-width:0}
main a.guide:hover{background:#f9fcff;border-color:#96b5cc;box-shadow:var(--st-shadow)}
main a.guide:hover h3{color:var(--st-link)}
main .guide-arrow{color:var(--st-link);background:var(--st-tint);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex:none}
/* Standard article shell, reading rhythm, tables, navigation and CTAs. */
.stooper-article-shell{width:calc(100% - 2 * var(--st-space));padding-top:clamp(22px,3vw,38px)}
.stooper-article-hero{border:1px solid var(--st-border);background:linear-gradient(135deg,#fff,#eaf3fa);border-radius:20px;padding:clamp(24px,4vw,48px);margin-bottom:24px}
.stooper-article-hero .sub,.article .article-deck{color:var(--st-muted);line-height:1.7}
.stooper-article-layout{grid-template-columns:minmax(0,1fr) minmax(205px,248px);gap:clamp(24px,4vw,42px)}
.stooper-article-copy,.article-body{font-size:1.055rem;line-height:1.82;color:var(--st-ink)}
.stooper-article-copy p,.article-body p{line-height:1.82}
.stooper-article-copy h2,.stooper-article-copy .article-body h2,.article-body h2{font-size:clamp(1.4rem,2.5vw,1.9rem);line-height:1.3;font-weight:700;letter-spacing:-.018em;color:var(--st-ink);margin-top:36px;margin-bottom:14px}
.stooper-article-copy h3,.stooper-article-copy .article-body h3,.article-body h3{font-size:1.2rem;line-height:1.42;font-weight:680;color:var(--st-ink)}
:is(.stooper-article-copy,.article-body) a:not(.button):not(.tool-open):not(.stooper-post-help__link):not(.article-cta-actions a):not(.stooper-related-cta a){color:var(--st-link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
:is(.stooper-article-copy,.article-body) a:hover{color:var(--st-brand-hover)}
.stooper-article-feature,.article-body img,.stooper-article-copy figure img{border-radius:var(--st-radius)}
.stooper-toc,.guide-toc,.related-guides,.stooper-related-cta,.article-cta,.article-helper,.article-quick-answer{background:var(--st-tint);border:1px solid var(--st-border);border-radius:var(--st-radius);box-shadow:none}
.stooper-toc h2,.guide-toc summary{font-weight:700;color:var(--st-ink)}
.stooper-toc a,.guide-toc a{color:var(--st-link);border-radius:6px;padding:10px 8px;line-height:1.5}
.stooper-toc a:hover,.guide-toc a:hover{background:#dfeefa;color:var(--st-brand-hover)}
:is(.stooper-article-copy,.article-body) :is(th,td){border-color:var(--st-border);padding:12px 14px;vertical-align:top}
:is(.stooper-article-copy,.article-body) th{background:#e8f1f8;color:var(--st-ink);font-weight:700}
:is(.stooper-article-copy,.article-body) tr:nth-child(even) td{background:#f8fafc}
.stooper-lang-switch a,.language-option,.career-languages a{border-radius:var(--st-control);min-height:38px;padding:8px 12px;font-size:.85rem;font-weight:650}
.stooper-lang-switch a[aria-current="page"],.language-option.is-active,.career-languages a[aria-current="page"]{background:var(--st-brand);border-color:var(--st-brand);color:#fff!important}
/* Form polish limited to standard fields; do not restyle sliders, checkboxes, file controls, canvases or document print previews. */
:is(.brief-form,.discovery-panel,.quick-search,.hs-controls,.legal-request-form,.calculator,.contact-layout) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){border:1px solid #bccedd;border-radius:var(--st-control);background:#fff;color:var(--st-ink);font-family:var(--st-font);line-height:1.45;min-height:44px}
:is(.brief-form,.discovery-panel,.quick-search,.hs-controls,.legal-request-form,.calculator,.contact-layout) :is(input,select,textarea):focus-visible{border-color:var(--st-brand);outline:2px solid #7daacc;outline-offset:2px}
main :is(.discovery-panel,.quick-search,.editor-note,.tool-note,.contact-tips,.legal-summary){border-radius:var(--st-radius)}
/* Harmonize specialized public tool controls without changing application layouts. */
:is(.stooper-direct-app-shell,.stooper-incoterms-modern,.invoice-app,.ai-unified,.career-quiz-widget,.career-discovery) button:not([disabled]){cursor:pointer}
:is(.stooper-direct-app-shell,.stooper-incoterms-modern,.invoice-app,.ai-unified,.career-quiz-widget,.career-discovery) button:focus-visible{outline:3px solid #e2a625;outline-offset:3px}
:is(.stooper-direct-app-shell,.stooper-incoterms-modern,.invoice-app) :is(button.primary-action,button.sr-next,button.sr-btn,button.add-item){border-radius:var(--st-control)}
.ai-unified .ai-section,.career-discovery .career-text-panel{border-radius:var(--st-radius)}
/* Footer and end-note retain shared links and privacy controls. */
.end-note,.stooper-article-shell > section.stooper-post-help{background:#e5eff7;border-top:1px solid var(--st-border)}
.end-note > p,.stooper-article-shell > section.stooper-post-help .stooper-post-help__line,.stooper-article-shell > section.stooper-post-help .stooper-post-help__line em{font-family:var(--st-font);font-size:clamp(1.25rem,2.2vw,1.7rem);font-style:normal;line-height:1.4;font-weight:620;letter-spacing:-.02em;color:var(--st-ink)}
body > footer{border-top:1px solid var(--st-border);padding-top:42px;max-width:var(--st-content)}
body > footer small{font-size:.75rem;color:var(--st-ink);font-weight:750;letter-spacing:.09em}
body > footer a:not(.wordmark),body > footer p{font-size:.88rem;color:var(--st-muted);line-height:1.6}
body > footer a:not(.wordmark):hover{color:var(--st-link);text-decoration:underline;text-underline-offset:3px}
body > footer .footer-base{border-top:1px solid var(--st-border)}
/* Accessible focus and mobile spacing; do not remove existing focus behavior. */
header.header :is(a,summary):focus-visible,main :is(a,button,input,select,textarea,summary):focus-visible,footer :is(a,button):focus-visible{outline:3px solid #d6961b;outline-offset:3px}
@media(max-width:1100px){header.header{min-height:74px;padding:12px var(--st-space);gap:12px}}
@media(max-width:920px){.stooper-article-layout{grid-template-columns:1fr}.stooper-toc{position:static;order:-1}}
@media(max-width:700px){
  :root{--st-space:18px}main > .hero{border-radius:0;border-inline:0;padding-top:32px}main > .section{padding-block:36px}.section-heading{align-items:flex-start;flex-wrap:wrap}.page-heading{margin-bottom:24px}.product-grid,.category-grid,.solution-grid,.home-visual-grid{gap:12px}.product-info,.category-card,.solution-grid article,.home-visual-copy{padding:18px}main a.guide{gap:10px}.guide-arrow{width:28px!important;height:28px!important}.stooper-article-shell{width:calc(100% - 32px)}.stooper-article-hero{border-radius:16px;padding:22px 18px}.stooper-article-copy,.article-body{font-size:1rem;line-height:1.75}.stooper-article-copy p,.article-body p{line-height:1.75}.hero h1,.page-heading h1,.stooper-article-hero h1{font-size:clamp(1.85rem,7.4vw,2.65rem)}.hero .actions{gap:10px 14px;flex-wrap:wrap}.end-note{padding:28px 18px}.studio-promo-shell{border-radius:16px}.draft-ribbon{letter-spacing:.065em}
}
@media(max-width:380px){header.header{padding-inline:12px;gap:9px}header.header a.stooper-studio-nav-link{padding-inline:10px}header.header .mobile-menu summary{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){main :is(a,button),header.header a{transition:none!important;transform:none!important}}
}

/* Final reading and responsive header refinements. */
@media screen{
.service-preview h2,.detail-preview h2,.story h2,.contact-card h2,.legal-doc h2{font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.3;font-weight:680;letter-spacing:-.025em}
.stooper-article-hero .article-updated{font-size:.82rem;color:var(--st-muted);margin:14px 0;font-weight:550}
.stooper-r8-discover{display:grid;gap:10px;background:#fff;border:1px solid var(--st-border);border-radius:12px;padding:16px 18px;margin:18px 0;color:var(--st-muted)}
.stooper-r8-discover p{font-size:.94rem;line-height:1.6;margin:0}
.stooper-r8-discover p:first-child a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:var(--st-control);background:var(--st-brand);color:white!important;font-weight:650;padding:10px 15px;line-height:1.4;text-decoration:none!important;text-align:center}
.stooper-r8-discover p:first-child a:hover{background:var(--st-brand-hover)}
.stooper-article-hero figure{margin:22px 0 0}.stooper-article-feature{margin:0}
header.header .stooper-dc-language{flex-shrink:0;border:1px solid var(--st-border);border-radius:9px;padding:3px;background:#fff}
@media(max-width:1100px){header.header:has(>.stooper-dc-language){height:auto!important;flex-wrap:wrap}header.header:has(>.stooper-dc-language)>.stooper-dc-language{order:5;flex-basis:100%;justify-content:flex-end;margin-left:0}header.header:has(>.stooper-dc-language)>.mobile-menu{order:3}}
@media(max-width:700px){header.header:has(>.stooper-dc-language){padding-block:10px!important;row-gap:8px!important}.stooper-r8-discover{padding:13px}.stooper-r8-discover p:first-child a{width:100%}}
}
