/*
Theme Name: Entisco
Theme URI: https://entisco.com
Author: Entisco
Description: Block theme for the Entisco website. Bilingual (English and Simplified Chinese) with a shared design: Registry Green, Seal Red and Paper.
Version: 1.0.0
Requires at least: 6.5
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: entisco
*/

/* ---------- base ---------- */
.wp-site-blocks > * + *{margin-block-start:0}
.wp-block-post-content > *{margin-block:0}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[lang="zh-Hans"] body{line-height:1.85}
:focus-visible{outline:2px solid var(--wp--preset--color--seal);outline-offset:3px}
a{text-underline-offset:.2em}
::selection{background:var(--wp--preset--color--seal);color:#fff}

/* ---------- header ---------- */
.e-header{border-bottom:1px solid var(--wp--preset--color--rule)}
.e-header-row{padding-block:18px;gap:16px 32px}
.e-logo{display:block;line-height:0;text-decoration:none}
.e-logo svg{height:24px;width:auto;display:block}
.e-nav{font-size:.95rem;font-weight:500}
.e-nav .wp-block-navigation-item__content{text-decoration:none;color:var(--wp--preset--color--ink)}
.e-nav .wp-block-navigation-item__content:hover{color:var(--wp--preset--color--seal)}
.e-nav .e-nav-cta .wp-block-navigation-item__content{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);padding:.5rem 1.1rem;border-radius:2px}
.e-nav .e-nav-cta .wp-block-navigation-item__content:hover{background:var(--wp--preset--color--seal);color:#fff}
.e-lang{font-size:.9rem;font-weight:500;text-decoration:none;color:var(--wp--preset--color--muted);border:1px solid var(--wp--preset--color--rule);padding:.3rem .75rem;border-radius:2px}
.e-lang:hover{color:var(--wp--preset--color--seal);border-color:var(--wp--preset--color--seal)}
.e-header-row .wp-block-shortcode{margin:0}
.wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}

/* ---------- sections ---------- */
.e-section{padding-block:clamp(56px,8vw,104px)}
/* nested has-global-padding is zeroed by core, so restore the side gutter on sections */
:root{--e-off:max(0px,calc((100% - 1120px) / 2))}
.e-main .e-section > *{margin-left:var(--e-off)!important;margin-right:auto!important}
.e-main .e-section{padding-left:var(--wp--style--root--padding-left);padding-right:var(--wp--style--root--padding-right)}
.e-section + .e-section{border-top:1px solid var(--wp--preset--color--rule)}
.e-pagehead + .e-section{border-top:0}
.e-pagehead + .e-section{padding-top:clamp(24px,4vw,48px)}
.e-eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 1.5rem;font-size:.78rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--wp--preset--color--seal)}
.e-eyebrow::before{content:"";flex:none;width:34px;height:8px;background:var(--wp--preset--color--seal)}
.e-h1{font-size:clamp(2.1rem,5.4vw,3.9rem);line-height:1.12;font-weight:500;letter-spacing:-.005em;margin:0;max-width:17em;text-wrap:balance}
html[lang="zh-Hans"] .e-h1{letter-spacing:0;line-height:1.25;max-width:15em}
.e-lede{font-size:clamp(1.08rem,1.5vw,1.25rem);color:var(--wp--preset--color--muted);max-width:42em;margin:1.5rem 0 0}
.e-actions{margin-top:2.25rem;gap:14px}
.e-hero{padding-block:clamp(64px,10vw,128px) clamp(56px,8vw,104px)}
.e-pagehead{padding-block:clamp(56px,8vw,104px) clamp(16px,3vw,32px)}
.e-pagehead .e-h1{font-size:clamp(2rem,4.4vw,3.1rem)}
.e-h2{font-size:clamp(1.6rem,2.8vw,2.2rem);line-height:1.25;font-weight:500;margin:0;text-wrap:balance}
.e-h3{font-size:1.25rem;line-height:1.35;font-weight:500;margin:0 0 .6rem}
.e-big{font-size:clamp(1.12rem,1.8vw,1.4rem);line-height:1.65;max-width:40em;margin:1.5rem 0 0}
.e-also{color:var(--wp--preset--color--muted);margin:1.75rem 0 0;max-width:46em}
.e-small{font-size:.92rem;color:var(--wp--preset--color--muted);max-width:52em;margin:1.25rem 0 0}

/* ledger columns: a heavy rule on top, no cards */
.e-cols{gap:clamp(28px,4vw,56px);margin:2.5rem 0 0}
.e-cols .e-col{border-top:2px solid var(--wp--preset--color--ink);padding-top:1.25rem}
.e-cols .e-col p{margin:0}
.e-num{font-size:.85rem;font-weight:500;letter-spacing:.14em;color:var(--wp--preset--color--seal);margin:0 0 .5rem}

/* packages */
.e-pkgname{font-size:clamp(1.6rem,2.6vw,2rem)}
.e-pkgtag{color:var(--wp--preset--color--muted)}
.e-lead{margin:1.5rem 0 .25rem!important;font-size:.78rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--wp--preset--color--seal)}
html[lang="zh-Hans"] .e-lead{letter-spacing:.04em;text-transform:none;font-size:.9rem}
.e-pkg ul.wp-block-list{list-style:none;margin:0;padding:0}
.e-pkg ul.wp-block-list li{padding:.7rem 0;border-bottom:1px solid var(--wp--preset--color--rule)}

/* prose pages */
.e-prose > *,.e-faq > *{max-width:46em;margin-left:var(--e-off)!important;margin-right:auto!important}
.e-prose h2{font-size:clamp(1.35rem,2.2vw,1.7rem);margin:2.75rem 0 .75rem}
.e-prose > h2:first-child{margin-top:0}
.e-prose > .wp-block-heading:first-child{margin-top:0}
.e-prose ul.wp-block-list{padding-left:1.25rem}
.e-prose ul.wp-block-list li{margin:.35rem 0}
.e-note{background:var(--wp--preset--color--tint);border-left:3px solid var(--wp--preset--color--seal);padding:1rem 1.25rem;margin-top:2rem;max-width:46em}
.e-note p{margin:0}
.e-need > .wp-block-group.e-note{margin-left:0!important}

/* FAQ */
.wp-block-details{border-bottom:1px solid var(--wp--preset--color--rule);padding:1.15rem 0}
.wp-block-details:first-child{border-top:1px solid var(--wp--preset--color--ink)}
.wp-block-details summary{cursor:pointer;list-style:none;font-size:1.15rem;font-weight:500;padding-right:2rem;position:relative}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";position:absolute;right:0;top:0;color:var(--wp--preset--color--seal);font-weight:400;font-size:1.4rem;line-height:1.3}
.wp-block-details[open] summary::after{content:"\2212"}
.wp-block-details p{margin:.9rem 0 0;color:var(--wp--preset--color--muted);max-width:42em}

/* notice + bands */
.e-notice{background:var(--wp--preset--color--surface)}
.e-notice > *{max-width:46em;margin-left:var(--e-off)!important;margin-right:auto!important}
.e-notice .e-h2{margin-bottom:1rem}
.e-notice p{margin:0 0 .75rem}
.e-band{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);padding-block:clamp(48px,7vw,88px)}
.e-band + .e-band{border-top:0}
.e-band .e-h2{color:var(--wp--preset--color--paper)}
.e-band p{margin:.75rem 0 0;color:#C9D3CE}
.e-band .e-actions{margin-top:1.75rem}
.e-band .wp-block-button__link{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}
.e-band .wp-block-button__link:hover{background:var(--wp--preset--color--seal);color:#fff}
.e-section.e-band{border-top:0}

/* buttons */
.wp-block-button .wp-block-button__link{border-radius:2px;font-weight:500;letter-spacing:.01em;text-decoration:none;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.wp-block-button .wp-block-button__link:hover{background:var(--wp--preset--color--seal);color:#fff}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink);padding:calc(.85rem - 1px) calc(1.6rem - 1px)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:transparent;color:var(--wp--preset--color--seal);border-color:var(--wp--preset--color--seal)}

/* intake page */
.e-startform{padding-block:0 96px!important;border-top:0!important}
.e-starthead{padding-bottom:24px}
iframe.e-intake{display:block;width:100%;min-height:760px;border:0;background:transparent}

/* ---------- footer ---------- */
.e-footer{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);padding-block:clamp(48px,6vw,72px) 36px}
.e-footer a{color:var(--wp--preset--color--paper);text-decoration:none}
.e-footer a:hover{color:#E0785F;text-decoration:underline}
.e-footer .e-logo svg{height:22px}
.e-footer .e-logo{margin-bottom:1rem}
.e-band + .e-footer,.e-main + .e-footer{border-top:1px solid #2C4A43}
.e-footer p{color:#C9D3CE;font-size:.92rem;margin:0}
.e-footer .e-disclaimer{max-width:34em;margin-top:1.25rem}
.e-footer-links{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;font-size:.95rem}
.e-footer .e-cols{margin:0}
.e-footer .e-cols .e-col{border-top:0;padding-top:0}
.e-footer .e-copy{margin-top:3rem;padding-top:1.25rem;border-top:1px solid #2C4A43;font-size:.85rem;color:#9DB1AA}

@media (max-width:781px){
  .e-header-row{padding-block:14px}
  .e-header-row .e-nav{margin-left:auto}
  .e-footer .e-cols{gap:2rem}
}
@media print{
  .e-header,.e-footer,.e-band{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}
