/* Shared editorial theme for every public page. Loaded after page-specific CSS. */
:root{--paper:#fafaf8;--ink:#222725;--muted:#626a65;--line:#e1e5df;--green:#315c4a;--site-forest:#293d31;--site-cream:#f8f1e5;--site-serif:Georgia,"Songti SC",serif}
body{background:var(--paper);color:var(--ink)}
.site-header{position:sticky;top:0;z-index:10;padding:0;border:0;border-bottom:1px solid var(--line);background:rgba(250,250,248,.96);backdrop-filter:none;-webkit-backdrop-filter:none}
.site-header .nav{display:flex;align-items:center;width:min(1200px,calc(100% - 96px));min-height:86px;margin-inline:auto;padding:0;gap:38px;border:0;border-radius:0;background:none;box-shadow:none;position:relative}
.site-header .nav::after{display:none}
.site-header .brand{font-size:23px;font-weight:650;letter-spacing:-1px;gap:12px}
.site-header .brand>span{font-size:15px;font-weight:500;letter-spacing:-.4px;color:var(--muted)}
.site-header nav{display:flex;align-items:center;gap:32px;margin-left:auto;font-size:14px}
.site-header nav a{font-size:14px;color:var(--ink);padding:12px 0}
.site-header nav a:hover{color:var(--green)}
.site-header nav a[aria-current=page]{color:var(--green);text-decoration:underline;text-underline-offset:7px}
.site-header .language{min-height:44px;min-width:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:none;box-shadow:none;font-size:12px;color:var(--ink)}
body>footer{background:#f1f3ee;border-top:1px solid var(--line);padding-top:44px;color:var(--ink)}
body>footer .footer-top{display:flex;align-items:center;justify-content:space-between;gap:24px}
body>footer .brand{font-size:23px;font-weight:650;letter-spacing:-1px;gap:12px}
body>footer .brand>span{font-size:15px;font-weight:500;letter-spacing:-.4px;color:var(--muted)}
body>footer .footer-top>p{font-size:13px;color:var(--muted);margin-left:auto}
body>footer .footer-top>a:last-child{font-size:13px}
body>footer .footer-apps{padding-block:30px;margin-top:30px;border-top:1px solid var(--line)}
body>footer .footer-apps>div{display:flex;flex-wrap:wrap;gap:12px 30px;font-size:13px}
body>footer .footer-apps a{display:inline-flex;align-items:center;min-height:44px;padding-block:8px}
body>footer .footer-apps .eyebrow{margin-bottom:16px}
body>footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:28px;color:var(--muted)}
body>footer .footer-bottom>div{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px}
body>footer .footer-bottom a{display:inline-flex;align-items:center;min-height:44px;padding-block:10px}
body>footer .footer-bottom small{font-size:11px}
.page-heading h1,.product-heading h1,.wallet-hero h1,.legal h1{font-family:var(--site-serif);font-weight:400;color:var(--site-forest);letter-spacing:-.04em;line-height:1.2}
.page-heading{padding-block:70px 54px}
.page-heading h1{font-size:clamp(38px,5vw,64px)}
.product-heading h1,.wallet-hero h1{font-size:clamp(38px,5vw,64px)}
.legal h1{font-size:clamp(32px,4vw,46px)}
.button,.hero-actions .button{border-radius:5px;box-shadow:none}
.button.primary{background:var(--green);color:#fff}
.product-emblem{background:var(--site-cream);border-radius:0;box-shadow:none}
.product-visual-label{border-radius:0;background:var(--paper);border-color:var(--line);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.qingji-identity{border-radius:0;background:var(--site-cream);color:var(--site-forest)}
.qingji-identity strong{font-family:var(--site-serif);font-weight:400}
.feature-grid article{padding-top:24px;border-top:1px solid var(--line)}
.feature-grid .tiny-number{font-family:var(--site-serif);color:#647561}
.support-callout,.contact-panel{background:#f1f3ee;border-radius:0;border-color:var(--line);box-shadow:none}
.related-grid>a{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:24px 0}
.gallery-section{background:#f1f3ee}
.legal{max-width:850px;overflow-wrap:anywhere}
.legal>section,.wallet-document>section{scroll-margin-top:140px}
.legal h2{color:var(--site-forest);font-weight:500}
.wallet-document>header{padding:0 0 24px}
.wallet-document>section{background:none;border-radius:0;padding:0;margin:0 0 40px}
.wallet-document nav{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px 14px;margin:0 0 28px;font-size:13px}
.wallet-document nav a{display:inline-flex;align-items:center;min-height:44px;padding:6px 0}
.wallet-document .sub{font-size:13px;color:var(--muted);line-height:1.9}
.wallet-document .badge{display:inline-block;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);padding:4px 0}
.wallet-document details{border-top:1px solid var(--line);padding:16px 0}
.wallet-document summary{font-size:16px;line-height:1.65;font-weight:500;cursor:pointer;min-height:44px;padding:8px 0}
.wallet-document .legacy-document-footer{margin-top:40px;padding-top:20px;border-top:1px solid var(--line)}
.legal pre{white-space:pre-wrap;overflow-wrap:anywhere}
.legal table{display:block;max-width:100%;overflow-x:auto}
.legal a{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1050px){
 .site-header .nav{gap:24px}
 .product-heading{gap:40px;grid-template-columns:1.1fr 1fr}
 .feature-grid{gap:28px}
}
@media(max-width:760px){
 .site-header .nav{width:calc(100% - 40px);min-height:70px;gap:16px}
 .site-header .brand,body>footer .brand{font-size:21px;gap:8px}
 .site-header .brand>span,body>footer .brand>span{font-size:12px}
 .site-header nav{gap:18px}
 .site-header nav a{font-size:12px;min-height:44px;display:inline-flex;align-items:center;padding-block:8px}
 .site-header .language{min-width:44px;min-height:44px;font-size:11px}
 body>footer{padding-top:30px}
 body>footer .footer-top{flex-wrap:wrap;gap:12px}
 body>footer .footer-top>p{width:100%;margin:0;font-size:12px}
 body>footer .footer-top>a:last-child{margin-top:8px;font-size:13px;min-height:44px;display:inline-flex;align-items:center}
 body>footer .footer-apps{margin-top:25px;padding-block:24px}
 body>footer .footer-apps>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
 body>footer .footer-apps a{min-width:0;overflow-wrap:anywhere;font-size:12px}
 body>footer .footer-bottom{align-items:flex-start;flex-direction:column;gap:12px;padding-block:22px}
 body>footer .footer-bottom>div{gap:8px 24px}
 .page-heading{padding-block:38px 34px}
 .page-heading h1{font-size:38px}
 .product-heading h1,.wallet-hero h1{font-size:38px;letter-spacing:-.04em;line-height:1.3}
 .legal h1{font-size:32px}
 .feature-grid{gap:0}
 .wallet-document>section{margin-bottom:30px}
 .wallet-document>header{padding-bottom:18px}
 .wallet-document summary{font-size:15px}
 .support-callout,.contact-panel{border-radius:0}
 .related-grid>a{padding:20px 0}
}
@media(max-width:480px){
 .site-header .nav{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 16px;padding-block:10px 0;min-height:0}
 .site-header .brand{grid-column:1;grid-row:1;align-self:center}
 .site-header .language{grid-column:2;grid-row:1}
 .site-header nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:4px 0 0;gap:16px}
 .site-header nav a{justify-content:center;min-width:0;min-height:44px;font-size:12px;white-space:normal;text-align:center}
 html{scroll-padding-top:125px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Mobile refinements validated with WebKit at 320, 390 and 430 CSS pixels. */
@media(max-width:760px){
 .site-header{background:var(--paper)}
 .site-header .brand,body>footer .brand{min-height:44px;align-items:center}
 .dayleaf-hero h1,.product-heading h1,.wallet-hero h1,.page-heading h1{font-size:clamp(32px,9.2vw,38px);line-height:1.3;text-wrap:balance}
 html[lang=en] .dayleaf-hero h1,html[lang=en] .product-heading h1,html[lang=en] .wallet-hero h1,html[lang=en] .page-heading h1{font-size:clamp(32px,9.2vw,38px);line-height:1.2;text-wrap:balance}
 .wallet-document>header{padding-bottom:0}
 .wallet-document>header nav{margin-bottom:12px}
 .wallet-document>header h1{margin:18px 0 12px}
 .wallet-document>header p{margin:12px 0}
 .wallet-document>header .badge{margin:8px 0}
 .wallet-document>section>h2:first-child{margin-top:24px}
 .product-actions>.text-link,.hero-actions>.text-link,.hero-secondary{display:inline-flex;align-items:center;min-height:44px}
 :is(.home-editorial,.collection-editorial) .hero-app-signatures>a{min-height:44px}
 :is(.home-editorial,.collection-editorial) .hero-secondary{min-height:44px;display:inline-flex;align-items:center}
 :is(.home-editorial,.collection-editorial) .collection .product-grid .product-card .card-bottom{padding-block:4px;min-height:52px}
 :is(.home-editorial,.collection-editorial) .collection .product-grid .product-card .card-bottom>a{display:inline-flex;align-items:center;min-height:44px;padding-block:8px}
}
