
.portrait-preview{background:#f5f1e8;color:#234338;border-bottom:1px solid #d9d5c9}
.portrait-inner{width:min(calc(100% - 96px),1160px);margin:auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;height:clamp(340px,43vh,470px)}
.portrait-inner > :is(img, .portrait-light){height:100%;max-height:100%;width:100%;object-fit:contain;object-position:center bottom;min-height:0;align-self:end}
.portrait-intro h1{font-family:"Noto Serif TC","PMingLiU",serif;color:#234338;font-size:clamp(42px,5vw,76px);font-weight:600;letter-spacing:.04em;margin:0;line-height:1.25}
.portrait-intro p{font-family:"Microsoft JhengHei",sans-serif;font-size:clamp(16px,1.5vw,22px);color:#334e43;margin:20px 0 0}
@media(max-width:600px){.portrait-inner{width:calc(100% - 32px);height:245px;grid-template-columns:1.05fr 1fr}.portrait-intro h1{font-size:clamp(24px,6.4vw,36px)}.portrait-intro p{font-size:14px;line-height:1.6}.portrait-inner > :is(img, .portrait-light){height:auto}}

.portrait-preview{background:#173f32;overflow:hidden;border-color:#173f32}.portrait-intro h1{color:#fffbf2}.portrait-intro p{color:#ede8da}
.portrait-inner > :is(img, .portrait-light){transform:translateY(-3%) scale(1.67);transform-origin:50% 0%}

#top.yb-global-header,#top .yb-global-inner{background:#173f32!important;border-color:#31584a!important}
#top .yb-global-brand img{filter:brightness(0) invert(.96)}
#top .yb-global-brand strong,#top .yb-global-brand small,#top .yb-global-nav a,#top .yb-global-more summary{color:#f6f2e8!important;background:transparent!important}
#top .yb-global-more summary{border-color:#79958a!important}
#top .yb-header-call,#top .yb-header-call span{background:#f5f1e8!important;color:#173f32!important}
.portrait-preview{background:#f5f1e8;border-color:#f5f1e8}.portrait-intro h1,.portrait-intro p{color:#234338}
#start-here{background:#173f32!important}
#start-here #needs-title{color:#f5f1e8!important}
#start-here .need-grid .need-card{background:#214c3f!important;border-color:#4b7063!important;color:#f5f1e8!important}
#start-here .need-grid .need-card :is(h3,.need-link){color:#fff9e9!important}
#start-here .need-grid .need-card :is(p,.need-number){color:#e0e8dd!important}
#start-here .need-grid .need-card > .need-link {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  border-top: 1px solid #57786c;
}
/* Paint the reference rule above the glass layer on each card. */
#start-here .need-grid .need-card > .need-link::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: #57786c;
  pointer-events: none;
}

.portrait-intro .portrait-slogan{font-size:clamp(16px,1.55vw,22px);line-height:1.6;letter-spacing:.025em;margin:14px 0 0;color:#234338}.portrait-intro .portrait-credit{font-size:16px;line-height:1.5;margin:24px 0 0;color:#465c50}
.portrait-intro p.portrait-slogan{font-size:clamp(21px,2.05vw,30px);letter-spacing:.09em;margin:10px 0 0;color:#234338}.portrait-intro p.portrait-credit{margin:25px 0 0}


.portrait-preview .title-pair{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;row-gap:5px}
body .portrait-preview .title-pair h1{font-family:"Noto Serif TC",PMingLiU,serif!important;font-size:clamp(44px,4.8vw,70px)!important;font-weight:600!important;letter-spacing:-.025em!important;line-height:1.27!important;margin:0!important;color:#203c30}
.portrait-preview .title-pair span{font:500 17px/1.4 "Noto Serif TC",PMingLiU,serif;letter-spacing:.06em;color:#465e4e;white-space:nowrap}
body .portrait-preview .portrait-intro .intro-en{font:normal 22px/1.55 Georgia,serif!important;letter-spacing:.005em;margin:21px 0 0!important;color:#314a3d}
body .portrait-preview .portrait-intro .portrait-credit{font-size:15px!important;margin:26px 0 0!important;color:#526456}


body .portrait-preview .portrait-intro .portrait-credit{font-family:"Microsoft JhengHei",sans-serif!important;font-weight:700!important;font-size:17px!important;color:#283e32!important}
#start-here .need-grid{position:relative;isolation:isolate}
#start-here .need-grid::before{content:"";position:absolute;pointer-events:none;inset:-14px -12px -12px;z-index:-1;background:radial-gradient(ellipse at 23% 58%,rgba(150,190,158,.52),transparent 38%),radial-gradient(ellipse at 84% 36%,rgba(108,164,153,.43),transparent 35%);filter:blur(16px)}
#start-here .need-grid .need-card{background:linear-gradient(125deg,rgba(244,250,240,.19),rgba(230,244,236,.065) 57%,rgba(210,232,220,.12))!important;-webkit-backdrop-filter:blur(18px) saturate(.9);backdrop-filter:blur(18px) saturate(.9);border:1px solid rgba(231,246,235,.36)!important;border-top-color:rgba(242,251,243,.59)!important;border-radius:15px;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 7px 19px rgba(5,26,17,.15)!important}
#start-here .need-grid .need-card :is(p,.need-number){color:#f2f6ec!important}


.portrait-preview{position:relative;z-index:0;transform:translateY(var(--held,0px))}
#start-here{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){.portrait-preview{transform:none}}
@media(max-width:600px){body .portrait-preview .title-pair h1{font-size:clamp(25px,6.8vw,40px)!important}.portrait-preview .title-pair{display:block}.portrait-preview .title-pair span{font-size:13px}.portrait-preview .portrait-inner{grid-template-columns:1.15fr 1fr}.portrait-preview .portrait-inner > :is(img, .portrait-light){height:100%;width:100%;object-position:top center;transform:scale(1.35);transform-origin:top center}.portrait-preview .portrait-intro{z-index:1}body .portrait-preview .portrait-intro .intro-en{font-size:15px!important;margin-top:10px!important}body .portrait-preview .portrait-intro .portrait-credit{font-size:12px!important;margin-top:12px!important}}

body.yb-home-live{--green-950:#0e3027;--green-900:#173f32;margin:0;background:#f6f2e9;color:#213d32;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;overflow:visible;min-width:0}
body.yb-home-live *{box-sizing:border-box}
body.yb-home-live :is(.reveal,.will-reveal){opacity:1!important;visibility:visible!important;transform:none!important}
body.yb-home-live main{overflow:visible}
body.yb-home-live #top{position:relative!important;inset:auto}
body.yb-home-live .portrait-preview{position:sticky;top:0;transform:none;z-index:0;background:#f5f1e8!important}
body.yb-home-live .portrait-inner{height:clamp(268px,27vw,395px);overflow:hidden}
body.yb-home-live .portrait-intro{position:relative;z-index:1}
body.yb-home-live .portrait-preview .title-pair h1,body.yb-home-live .portrait-preview .title-pair span{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif!important}
body.yb-home-live #start-here,body.yb-home-live main>.section,body.yb-home-live #contact,body.yb-home-live footer{position:relative;z-index:1}
body.yb-home-live #start-here{background:#173f32!important;padding-bottom:36px}
body.yb-home-live .home-street-guide{background:#f3f1e7!important;color:#234135!important}
body.yb-home-live #start-here .home-street-guide :is(h2,p,label,summary,a,.eyebrow){color:#234135!important}
body.yb-home-live #start-here .home-street-guide :is(select,button){color:#234135;background:#fffdf5}
body.yb-home-live #start-here .home-street-guide .leaflet-container{background:#edf1e5}
body.yb-home-live :is(#services,#home-assessment,#process,#about,#join-team){background:#fbf8f1!important}
body.yb-home-live :is(#areas,#communities){background:#e2ebdf!important;color:#183e30!important}
body.yb-home-live #method{background:#f2eee3!important}
body.yb-home-live .faq{background:#fffdf7!important}
body.yb-home-live :is(#areas,#communities,#about,#method,#services,.faq) :is(h2,h3,p,summary,.eyebrow,.area-list,.section-heading){color:#234135!important}
body.yb-home-live #areas .area-list article{background:#f4f6ec!important;border-color:#acbda9!important}
body.yb-home-live #areas .area-list article span{color:#496b52!important}
body.yb-home-live #contact,body.yb-home-live .site-footer{background:#173f32!important;color:#f9f5ea!important}
body.yb-home-live #contact .contact-copy :is(h2,p),body.yb-home-live .site-footer :is(p,strong,a){color:#f8f4e9!important}
body.yb-home-live #contact .contact-card{background:#f5f1e8!important;color:#254336!important}
body.yb-home-live #contact .contact-card :is(.contact-name,.contact-meta p,.contact-meta a,.contact-meta strong,.contact-meta span){color:#254336!important}
body.yb-home-live #contact .primary-contact{background:#245441!important;color:#fffaf0!important}
body.yb-home-live #contact .primary-contact :is(span,strong,b){color:inherit!important}
body.yb-home-live .site-footer .social-links a{background:transparent!important}
body.yb-home-live .site-footer .footer-end a{color:#f8f4e9!important}

@media (max-width:740px){
  body.yb-home-live #start-here .need-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body.yb-home-live .portrait-preview .portrait-inner{display:block;position:relative;height:295px;padding:32px 14px}
  body.yb-home-live .portrait-preview .portrait-inner > :is(img, .portrait-light){position:absolute;right:-7%;bottom:0;top:auto;width:54%;height:88%;object-fit:cover;object-position:50% top;transform:none;max-width:none}
  body.yb-home-live .portrait-preview .portrait-intro{width:64%;padding:0}
  body.yb-home-live .portrait-preview .title-pair{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px}
  body.yb-home-live .portrait-preview .title-pair h1{font-size:clamp(22px,5.8vw,34px)!important;white-space:nowrap}
  body.yb-home-live .portrait-preview .title-pair span{font-size:12px}
  body.yb-home-live .portrait-preview .title-pair{flex-wrap:nowrap;width:max-content;max-width:100%}
  body.yb-home-live .portrait-preview .title-pair span{font-size:clamp(10px,2.8vw,12px)}
  body.yb-home-live .portrait-preview .portrait-inner > :is(img, .portrait-light){top:22%;bottom:auto;right:-11%;width:62%;height:122%;object-fit:cover;object-position:top center}
  body.yb-home-live .portrait-preview .portrait-intro .intro-en{font-size:16px!important;max-width:85%;line-height:1.4!important;margin-top:14px!important}
  body.yb-home-live .portrait-preview .portrait-intro .portrait-credit{font-size:13px!important;max-width:79%;margin-top:15px!important}
}
@media(prefers-reduced-motion:reduce){body.yb-home-live .portrait-preview{position:relative}}
  
body.yb-home-live {
  --glass-fill:linear-gradient(132deg,rgba(255,255,250,.76),rgba(254,253,241,.42) 62%,rgba(245,249,237,.67));
  --glass-line:rgba(96,119,95,.32);
  --glass-rim:rgba(255,255,249,.94);
  --glass-ink:#203d31;
}
#main :is(#services,#areas,#method,.faq,#about,#join-team){
  background-image:radial-gradient(ellipse at 90% 23%,rgba(128,156,128,.20),transparent 49%),radial-gradient(ellipse at 9% 84%,rgba(198,174,124,.16),transparent 52%)!important;
}
#main :is(#start-here,#contact){
  background-image:radial-gradient(ellipse at 17% 45%,rgba(111,154,132,.23),transparent 55%),radial-gradient(ellipse at 92% 8%,rgba(108,146,114,.19),transparent 48%)!important;
}
#main :is(.need-card,.contact-card){
  --glass-fill:linear-gradient(125deg,rgba(239,252,239,.15),rgba(227,246,236,.075) 62%,rgba(239,245,224,.12));
  --glass-line:rgba(229,244,229,.38);
  --glass-rim:rgba(244,255,238,.62);
  --glass-ink:#fffaf0;
}
#main .home-street-guide{
  --glass-fill:linear-gradient(125deg,rgba(249,251,234,.94),rgba(235,242,224,.85));
}
#main#main#main .yb-glass{
  background:var(--glass-fill)!important;
  color:var(--glass-ink)!important;
  border:1px solid var(--glass-line)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 0 var(--glass-rim),0 5px 18px rgba(20,49,34,.075)!important;
  -webkit-backdrop-filter:blur(14px) saturate(110%)!important;
  backdrop-filter:blur(14px) saturate(110%)!important;
}
#main#main#main .yb-glass :is(summary,figcaption){background-color:transparent!important}
#main#main#main :is(.need-card,.contact-card,.story-photo).yb-glass::before,
#main#main#main :is(.need-card,.contact-card,.story-photo).yb-glass::after{background:none!important}
#main#main#main .contact-card :is(.contact-name,.contact-meta p,.contact-meta a,.contact-meta strong,.contact-meta span){color:#fffaf0!important}
#main#main#main .contact-meta p{border-color:rgba(231,244,226,.35)!important;background:transparent!important}
#main#main#main .contact-card .primary-contact{background:#edf4e7!important;color:#183f30!important}
#main#main#main .contact-card .primary-contact :is(span,strong,b){color:#183f30!important}
#main#main#main .yb-glass:not(.need-card,.contact-card) :is(h2,h3,figcaption,figcaption strong,figcaption span,.image-note,.image-note strong,.image-note span,small){color:#234135!important}
#main#main#main .yb-glass :is(.image-note,figcaption){background:#f3f5eadd!important}
#main#main#main :is(.faq-list,.service-grid,.area-list,.yb-method-steps,.experience-grid){background-color:transparent!important}
#main#main#main .area-list article.yb-glass{padding-inline:clamp(14px,2vw,26px)}
@media(prefers-reduced-transparency:reduce){
  #main#main#main .yb-glass{background:linear-gradient(125deg,#fdfbf3,#e5ecdf 68%,#f4f4e8)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  #main#main#main :is(.need-card,.contact-card).yb-glass{background:linear-gradient(125deg,#355b49,#244b3d 68%,#37594b)!important}
}


body.yb-home-live #top .yb-global-brand img{filter:none!important;background:#f5f1e8;border-radius:4px;padding:3px}
body.yb-home-live .portrait-preview .title-pair{flex-wrap:nowrap;white-space:nowrap}
body.yb-home-live #main #start-here .school-feature{text-decoration:none;--glass-fill:linear-gradient(115deg,#f5f1e7f5,#e3ebdfed);margin:26px 0 16px;padding:clamp(24px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:24px;color:#213e32!important}
body.yb-home-live #main #start-here .school-feature :is(p,h2){color:#213e32!important;margin:0 0 8px}
body.yb-home-live #main .school-feature h2{font:600 clamp(30px,4vw,52px)/1.3 "Noto Serif TC","Songti TC","PMingLiU",serif}
body.yb-home-live #main .school-feature .school-feature-action{flex:none;padding:14px 22px;border-radius:7px;background:#183f32;color:#fffaf0!important;font-weight:600;text-decoration:none}
#village-guide { display: none; }
#village-guide:target, #village-guide.is-open, #village-guide:has(:target) { display: block; }
#village-guide .village-close { display: block; width: fit-content; margin-left: auto; color: #fffaf0; padding: 12px 4px; text-underline-offset: 4px; }
body.yb-home-live #village-guide{scroll-margin-top:16px}
body.yb-home-live :is(a,button,summary,select):focus-visible{outline:3px solid #b58a37;outline-offset:4px}
@media(max-width:1100px) and (min-width:741px){body.yb-home-live .portrait-preview .title-pair h1{font-size:clamp(32px,4.2vw,46px)!important}body.yb-home-live .portrait-preview .title-pair span{font-size:13px}}
@media(max-width:660px){body.yb-home-live #main #start-here .school-feature{display:block}body.yb-home-live #main .school-feature .school-feature-action{display:inline-block;margin-top:10px}}

body.yb-home-live #top .yb-global-brand img{background:transparent!important;padding:0!important;filter:brightness(0) invert(.96)!important}

body.yb-home-live #start-here .yb-tool-foot,body.yb-home-live #start-here .yb-tool-foot a{color:#faf6eb!important}

.school-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.school-feature .school-watercolor {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: right bottom;
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 660px) {
  .school-feature .school-watercolor {
    width: 100%;
    height: auto;
    max-height: 54%;
    object-fit: contain;
  }
  .school-feature > div {
    position: relative;
    z-index: 1;
  }
}

/* WM-GREEN-1114: true Taipei Sans TC Beta Bold glyphs; homepage hero only. */
body.yb-home-live .portrait-preview>.hero-watermark{
  position:absolute;inset:0 0 auto auto;z-index:0;
  display:block;height:100%;width:auto;max-width:none;max-height:none;
  object-fit:fill;object-position:right top;transform:none;
  opacity:.10;pointer-events:none;user-select:none;
}
body.yb-home-live .portrait-preview>.portrait-inner{position:relative;z-index:1}
body.yb-home-live .portrait-preview>.hero-watermark-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;
}
@media(max-width:740px){
  body.yb-home-live .portrait-preview>.hero-watermark{width:clamp(80px,25vw,98px);height:100%}
  body.yb-home-live .portrait-preview .portrait-inner > :is(img, .portrait-light){right:11%;width:51%;height:76%;top:auto;bottom:0;object-fit:cover;object-position:50% top}
}

/* Spacing belongs to the glass cards, so both their open and closed states align. */
body.yb-home-live {
  --home-card-inset: clamp(16px, 2.2vw, 28px);
}
.yb-home-live .yb-secondary-disclosure.yb-glass {
  box-sizing: border-box;
  padding: 0 var(--home-card-inset);
}
.yb-home-live .yb-secondary-disclosure > summary {
  padding-block: 18px;
}
.yb-home-live .faq-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}
.yb-home-live .faq-list summary {
  padding: 18px calc(var(--home-card-inset) + 26px) 18px var(--home-card-inset);
}
.yb-home-live .faq-list summary::after {
  top: 50%;
  right: var(--home-card-inset);
  line-height: 1;
  transform: translateY(-50%);
}
.yb-home-live .faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.yb-home-live .faq-list details > p {
  padding: 0 var(--home-card-inset) 20px;
}
.yb-home-live .atlas-service-record > li {
  padding: 14px var(--home-card-inset);
}
.yb-home-live .contact-card .primary-contact {
  padding: 16px var(--home-card-inset);
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
}
.yb-home-live .site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid #557466;
}
.yb-home-live .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fffaf0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.yb-home-live .footer-grid > div:first-child > p {
  text-wrap: balance;
}
body.yb-home-live .portrait-preview .title-pair span {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
  font-weight: 600;
  font-size: clamp(18px, 1.25vw, 20px);
  color: #365345;
  letter-spacing: .035em;
}
@media (max-width: 740px) {
  body.yb-home-live .portrait-preview .title-pair {
    flex-wrap: wrap;
    white-space: normal;
    width: auto;
    gap: 5px 10px;
  }
  body.yb-home-live .portrait-preview .title-pair span {
    font-size: 16px;
  }
  body.yb-home-live.atlas-home .atlas-service-record {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .yb-home-live .atlas-service-record > li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
}

.yb-home-live .contact-card .primary-contact strong {
  text-wrap: balance;
  line-height: 1.45;
}
.yb-home-live .footer-tagline > span {
  display: inline-block;
}
@media (max-width: 365px) {
  body.yb-home-live .portrait-preview .portrait-inner > :is(img, .portrait-light) {
    right: 8%;
    width: 46%;
    height: 72%;
  }
}

.yb-home-live .contact-action.primary-contact strong > span {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  letter-spacing: inherit;
}
body.yb-atlas.yb-home-live .site-footer :is(.footer-tagline, .copyright) span {
  color: inherit !important;
}
@media (max-width: 480px) {
  .yb-home-live .primary-contact > b {
    grid-row: 1;
  }
  .yb-home-live .primary-contact > strong {
    grid-column: 1 / -1;
  }
}

#home-street-map .home-guide-village-name {
  padding: 2px 5px;
  border: 1px solid #8b9b8f;
  border-radius: 4px;
  background: rgba(255, 253, 246, .94);
  color: #193c32;
  box-shadow: none;
  font: 600 13px/1.4 "Noto Sans TC", sans-serif;
  pointer-events: none;
}
#home-street-map .home-guide-village-name::before { display: none; }

/* Use the same silhouette and crop as the original photograph at every viewport. */
body.yb-home-live .portrait-preview {
  background: radial-gradient(ellipse at 78% 85%, #c6c2ac, #dfddce 25%, #f6f3e8 56%, #faf8ef 85%) !important;
}
.portrait-inner > :is(img, .portrait-light) { grid-area: 1 / 2; }
.portrait-inner > img {
  filter: contrast(1.055) saturate(.98) drop-shadow(9px 5px 13px rgba(71,66,50,.13));
}
.portrait-inner > .portrait-light {
  display: block;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(30,27,23,.16), transparent 48%, rgba(255,247,227,.11));
  mask: url("/assets/yuan-home-portrait.webp") center bottom / contain no-repeat;
  mix-blend-mode: soft-light;
}
@media (max-width: 740px) {
  .portrait-inner > .portrait-light { mask-position: center top; mask-size: cover; }
}