/* ---------- Blocksy base overrides ---------- */
:root{
	--theme-font-family:system-ui,-apple-system,'PingFang TC','Noto Sans TC','Microsoft JhengHei',sans-serif;
	--theme-text-color:#1d2b36;
	--theme-headings-color:#071e2e;
	--theme-heading-color:#071e2e;
	--theme-link-initial-color:#0e4a6b;
	--theme-link-hover-color:#3fa7b5;
	--theme-button-background-initial-color:#0e4a6b;
	--theme-button-background-hover-color:#071e2e;
	--theme-button-text-initial-color:#fff;
	--theme-button-text-hover-color:#fff;
	--theme-button-border-radius:999px;
	--theme-content-spacing:1.5em;
}
#header.ct-header,#footer.ct-footer{display:none!important}
body{background-color:#fbf8f2!important;color:#1d2b36;font-family:var(--wp--preset--font-family--sans);font-size:17px;line-height:1.8;-webkit-font-smoothing:antialiased}
#main-container{overflow:visible}
#main.site-main{padding:0;margin:0}
h1,h2,h3,h4,h5,h6{font-family:var(--wp--preset--font-family--cormorant-garamond);font-weight:600;line-height:1.3;color:#071e2e}
.wp-block-site-title{margin:0}
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a,.wp-block-site-title a{font-size:inherit!important;font-family:inherit!important;font-weight:inherit!important;line-height:inherit!important}
#main.site-main,#main .wp-block-post-content{padding-bottom:0!important;margin-bottom:0!important}
#main .wp-block-post-content>*:last-child{margin-bottom:0!important}
.bm-footer,.bm-header{margin-block:0!important}
#main>*:last-child,#main .wp-block-post-content>*:last-child,#main .bm-listing>*:last-child{margin-bottom:0!important}
.wp-block-post-content,.entry-content{--theme-link-initial-color:#0e4a6b;--theme-link-hover-color:#3fa7b5}
.wp-block-post-content a:not(.wp-element-button){color:#0e4a6b}
.wp-block-post-content a:not(.wp-element-button):hover{color:#3fa7b5}
.bm-topic a:not(.wp-element-button){color:inherit}
body:not(.single-post) .wp-block-post-content a{text-decoration:none}
a{text-underline-offset:3px}
.wp-block-cover{padding-left:32px;padding-right:32px}
.wp-block-button:not(.is-style-outline) .wp-element-button:not(.has-background){background-color:#0e4a6b}
.wp-block-button:not(.is-style-outline) .wp-element-button:not(.has-background):hover{background-color:#071e2e}
.wp-block-button .wp-element-button:not(.has-text-color){color:#fff}
.wp-block-button .wp-element-button{border-radius:999px}

/* ---------- Header ---------- */
.bm-header{position:sticky;top:0;z-index:50;background:rgba(251,248,242,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(14,74,107,.12);margin:0}
.admin-bar .bm-header{top:32px}
.bm-brand{white-space:nowrap}
.bm-brand p{margin:0}
.bm-brand .wp-block-site-title a{text-decoration:none;color:#071e2e}
.bm-header .wp-block-navigation a{text-decoration:none;color:#1d2b36}
.bm-header .wp-block-navigation a:hover{color:#3fa7b5}
.bm-header .wp-block-navigation__responsive-container.is-menu-open a{color:#fbf8f2}

/* ---------- Home hero ---------- */
.bm-hero{overflow:hidden;background-color:#040c28}
.bm-hero .wp-block-cover__image-background{transform:scale(1.06)}
.bm-hero .wp-block-cover__inner-container{text-shadow:0 2px 18px rgba(2,8,30,.75)}
.bm-hero .wp-block-button__link{text-shadow:none}
.bm-hero h1{font-size:clamp(40px,7vw,84px)!important;letter-spacing:.01em}
.bm-hero .bm-kicker{letter-spacing:.3em;text-transform:uppercase}
.bm-eyebrow{letter-spacing:.28em;text-transform:uppercase}

/* ---------- Cards ---------- */
.bm-role{height:100%;transition:transform .25s ease,box-shadow .25s ease}
.bm-role:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(7,30,46,.12)}
.bm-role-num{font-family:var(--wp--preset--font-family--cormorant-garamond);font-style:italic}
.bm-card{height:100%;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
.bm-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(7,30,46,.12)}
.bm-card .wp-block-post-title{margin:0}
.bm-card .wp-block-post-title a{text-decoration:none;color:#071e2e}
.bm-card .wp-block-post-title a:hover{color:#0e4a6b}
.bm-card .wp-block-post-excerpt__excerpt{margin:0}
.bm-card .wp-block-post-featured-image img{aspect-ratio:3/2;object-fit:cover;width:100%}
.wp-block-post-terms.bm-terms{display:flex;flex-wrap:wrap;gap:6px}
.wp-block-post-terms.bm-terms.has-text-align-center{justify-content:center}
.wp-block-post-terms.bm-terms a{display:inline-block;text-decoration:none;font-size:12px;letter-spacing:.08em;padding:3px 12px;border-radius:999px;background:rgba(63,167,181,.14);color:#0e4a6b}
.wp-block-post-terms.bm-terms .wp-block-post-terms__separator{display:none}
.bm-topic{height:100%;transition:transform .25s ease,box-shadow .25s ease}
.bm-topic:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(7,30,46,.12)}
.bm-topic a{text-decoration:none;color:inherit}

/* ---------- Search ---------- */
.bm-search{max-width:640px;margin:48px auto 0!important}
.bm-search .wp-block-search__inside-wrapper{background:#fff;border:1px solid rgba(14,74,107,.25);border-radius:999px;padding:6px 6px 6px 22px;box-shadow:0 8px 24px rgba(7,30,46,.06)}
.bm-search .wp-block-search__input{border:0!important;background:transparent!important;box-shadow:none!important;font-size:16px;padding:8px 0;min-height:0;color:#1d2b36}
.bm-search .wp-block-search__input:focus{outline:none}
.bm-search .wp-block-search__inside-wrapper:focus-within{border-color:#3fa7b5}
.bm-search .wp-block-search__button{margin:0 0 0 8px;border-radius:999px;background:#0e4a6b;color:#fff;border:0;padding:10px 16px;min-height:0}
.bm-search .wp-block-search__button:hover{background:#071e2e}
.bm-search .wp-block-search__button svg{fill:currentColor;width:22px;height:22px;min-width:22px}
.bm-header-search .wp-block-search__inside-wrapper{border:0;padding:0;background:transparent}
.bm-header-search .wp-block-search__button{background:transparent!important;color:#071e2e!important;border:0;padding:6px;margin:0;min-height:0;box-shadow:none}
.bm-header-search .wp-block-search__button:hover{color:#3fa7b5!important}
.bm-header-search .wp-block-search__button:focus,.bm-header-search .wp-block-search__button:active{background:transparent!important;box-shadow:none!important;outline:none}
.bm-header-search .wp-block-search__button:focus-visible{outline:2px solid #3fa7b5;outline-offset:2px;border-radius:999px}
.bm-header-search .wp-block-search__button svg{fill:currentColor;width:24px;height:24px;min-width:24px}
.bm-header-search .wp-block-search__input{border:1px solid rgba(14,74,107,.3)!important;border-radius:999px!important;background:#fff!important;padding:6px 14px!important;font-size:15px;min-height:0;height:36px}
.bm-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper{min-width:220px}
.bm-header-right{flex-shrink:1;min-width:0}
/* ---------- Category filter ---------- */
.bm-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.bm-filter ul{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;list-style:none;margin:0;padding:0}
.bm-filter li{margin:0}
.bm-filter a{display:inline-block;padding:8px 20px;border-radius:999px;border:1px solid rgba(14,74,107,.3);text-decoration:none;color:#0e4a6b;font-size:15px;line-height:1.6;background:#fff;transition:all .2s}
.bm-filter a:hover,.bm-filter .current-cat a,body.blog .bm-filter .bm-all a{background:#0e4a6b;color:#fff;border-color:#0e4a6b}
.bm-filter .bm-all{margin:0}

/* ---------- Article reading ---------- */
.bm-article .wp-block-post-content{font-size:18px;line-height:2;letter-spacing:.03em}
.bm-article .wp-block-post-content>p{margin-block:0 1.5em}
.bm-article .wp-block-post-content h2{font-size:30px;margin-top:2.2em}
.bm-article .wp-block-post-content h3{font-size:24px;margin-top:1.8em}
.bm-article .wp-block-post-content blockquote{border-left:3px solid #3fa7b5;margin:2em 0;padding:.4em 0 .4em 1.4em;color:#5f6f7a;background:none;font-style:normal}
.bm-article .wp-block-post-content blockquote p{font-size:inherit}
.bm-article .wp-block-post-content img{border-radius:6px}
.bm-article .wp-block-post-title{font-size:clamp(30px,4.5vw,46px)!important}
.bm-article a:not(.wp-element-button){color:#0e4a6b}
.bm-article a:not(.wp-element-button):hover{color:#3fa7b5}
.bm-postnav a{text-decoration:none}

/* ---------- Footer ---------- */
.bm-footer a{color:#cfe6ec;text-decoration:none}
.bm-footer a:hover{color:#fff}
.bm-footer .wp-block-site-title{white-space:nowrap}
.bm-footer .wp-block-site-title a{color:#fbf8f2}
.bm-footer p{overflow-wrap:anywhere}
.wp-block-query-pagination a{text-decoration:none}

@media (max-width:781px){
	.bm-header{position:relative;top:0!important;padding-left:18px!important;padding-right:18px!important;gap:10px}
	.bm-brand{gap:8px!important}
	.bm-brand .wp-block-site-title{font-size:20px!important}
	.bm-brand p{font-size:22px!important}
	.bm-header-right{gap:12px!important;flex-shrink:0}
	.bm-listing>*:not(.alignfull){padding-left:18px;padding-right:18px;box-sizing:border-box}
	.bm-search{margin-top:36px!important}
	.bm-article .wp-block-post-content{font-size:17px;line-height:1.95}
}
