/* Shared reading scale for every public page and both languages. */
body #ansen-garden {
 --ag-font-body:Arial,"Ansen GenSeki","PingFang TC","Microsoft JhengHei",sans-serif;
 --ag-font-heading:var(--ag-font-body);
 --ag-type-body:17px;--ag-type-action:16px;--ag-type-note:14px;
 --ag-type-title:38px;--ag-type-section:28px;--ag-type-subheading:24px;
 font-family:var(--ag-font-body);font-size:var(--ag-type-body);line-height:1.85;
 letter-spacing:normal;
}
/* Supersede page-specific reading sizes; nested text follows its semantic parent. */
body #ansen-garden :where(*):not(:where(svg,svg *)) {
 font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;
 letter-spacing:inherit!important;
}
body #ansen-garden :is(h1,h2,h3,h4,h5,h6) {
 font-family:var(--ag-font-heading)!important;font-weight:500!important;
 line-height:1.5!important;letter-spacing:.025em!important;
}
body #ansen-garden h1 {font-size:var(--ag-type-title)!important}
body #ansen-garden h2 {font-size:var(--ag-type-section)!important}
body #ansen-garden h3 {font-size:var(--ag-type-subheading)!important}
body #ansen-garden :is(h4,h5,h6) {font-size:20px!important}
body #ansen-garden :is(button,input,select,textarea,summary,.ag-primary,.ag-action,.ag-followup-button,.ag-sv-feature-link,.ag-back,.ag-link,.ag-visit-action,.ag-self-overview-back) {
 font-family:var(--ag-font-body)!important;font-size:var(--ag-type-action)!important;
 line-height:1.6!important;letter-spacing:.015em!important;
}
body #ansen-garden :is(button,summary,.ag-primary,.ag-action,.ag-followup-button,.ag-sv-feature-link) {font-weight:500!important}
body #ansen-garden :is(.ag-primary,.ag-action,.ag-followup-button,.ag-sv-feature-link) {min-height:46px}
body #ansen-garden :is(small,figcaption,time,.ag-eyebrow,.ag-article-topic,.ag-article-meta,.ag-resource-topic-label,.ag-resource-byline,.ag-author-role,.ag-team-source,.ag-question-source,.ag-privacy-date,.ag-field-help,.ag-page-note,.ag-draft-note,.ag-service-note,.ag-clinic-note,.ag-hours-legend,.ag-scale-research,.ag-assessment-source,.ag-service-reading-help) {
 font-size:var(--ag-type-note)!important;line-height:1.75!important;
}
body #ansen-garden :is(.ag-page-note,.ag-scale-research) :is(h2,h3,h4) {font-size:20px!important}
body #ansen-garden :is(.ag-service-name,.ag-self-entry-title,.ag-next-link strong,.ag-visit-service>summary strong,.ag-visit-selected-service>summary strong) {
 font-family:var(--ag-font-heading)!important;font-size:var(--ag-type-subheading)!important;
 font-weight:500!important;line-height:1.5!important;
}
body #ansen-garden :is(.ag-article-pullquote,.ag-team-invitation) {
 font-family:var(--ag-font-heading)!important;font-size:24px!important;line-height:1.75!important;
}
body #ansen-garden .ag-hero h1 {font-size:clamp(38px,4.6vw,60px)!important;line-height:1.45!important}
body #ansen-garden .ag-hero-foot {font-size:var(--ag-type-note)!important}
body #ansen-garden .ag-footer {height:auto;min-height:110px}
body #ansen-garden .ag-footer :is(address,.ag-footer-access) {font-size:16px!important;line-height:1.7!important}
body #ansen-garden .ag-footer :is(.ag-footer-identity,.ag-footer-legal,.ag-footer-visit-link) {font-size:var(--ag-type-note)!important;line-height:1.7!important}
body #ansen-garden .ag-hours-table {font-size:16px!important;line-height:1.6!important}
body #ansen-garden .ag-hours-table :is(small,.ag-hours-time) {font-size:14px!important}
body #ansen-garden :is(.ag-language,.ag-menu,.ag-nav) {font-size:var(--ag-type-action)!important;line-height:1.6!important}
body #ansen-garden .ag-nav a {font-family:var(--ag-font-body)!important;font-size:var(--ag-type-action)!important;line-height:1.6!important}
body #ansen-garden.ag-line-entry-ready[data-booking-shape] #ag-floating-actions .ag-shape-label {
 font-family:var(--ag-font-body)!important;font-size:var(--ag-type-action)!important;
 font-weight:500!important;line-height:1.5!important;letter-spacing:.03em!important;
}
@media(min-width:1001px){
 body #ansen-garden .ag-nav .ag-nav-group {gap:18px}
 body #ansen-garden .ag-nav .ag-nav-group:last-child {padding-right:112px}
 body #ansen-garden .ag-nav a {white-space:nowrap}
}
@media(min-width:1001px) and (max-width:1199px){
 body #ansen-garden .ag-header {grid-template-columns:minmax(0,1fr) 200px minmax(0,1fr);padding-inline:2%;gap:12px}
 body #ansen-garden .ag-brand {width:200px;max-width:100%}
 body #ansen-garden .ag-nav .ag-nav-group {gap:12px}
 body #ansen-garden .ag-language-switch {right:2%}
}
@media(max-width:760px){
 body #ansen-garden {--ag-type-title:30px;--ag-type-section:26px;--ag-type-subheading:22px}
 body #ansen-garden .ag-hero-copy {padding-bottom:110px}
 body #ansen-garden .ag-hero h1 {font-size:clamp(30px,8.4vw,38px)!important}
 body #ansen-garden .ag-footer {min-height:0}
 body #ansen-garden .ag-hours-table {font-size:14px!important}
 body #ansen-garden.ag-line-entry-ready[data-booking-shape] #ag-floating-actions .ag-shape-label {
  line-height:1!important;letter-spacing:.15em!important;
 }
}
@media(max-width:1000px){
 body #ansen-garden .ag-header {grid-template-columns:72px minmax(0,1fr) 96px;gap:8px}
 body #ansen-garden .ag-brand {width:100%;max-width:220px;min-width:0;justify-self:center;gap:6px}
 body #ansen-garden .ag-brand img {min-width:0;max-width:100%;height:auto}
 body #ansen-garden .ag-brand .ag-brand-symbol {width:36%;flex:0 0 36%}
 body #ansen-garden .ag-brand .ag-brand-wordmark {width:0;flex:1 1 0}
 body #ansen-garden .ag-menu {padding-inline:0;min-width:0;white-space:nowrap;line-height:1.5!important}
}

/* Let enlarged team biographies set the row height without rescaling portraits. */
/* Labels must grow with translated text instead of retaining Chinese widths. */
body #ansen-garden :is(.ag-service-tab,.ag-space-room-card,.ag-space-room-name,.ag-space-room-use) {
 min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;
}
body #ansen-garden[data-language=en] .ag-service-tabs {flex-wrap:wrap}
body #ansen-garden[data-language=en] .ag-space-room-card {height:auto}
body #ansen-garden[data-language=en] .ag-space-room-card :is(strong,small,span) {min-width:0;max-width:100%;white-space:normal}
body #ansen-garden[data-language=en] :is(a,button,summary,h1,h2,h3,p,li,dt,dd,legend,label) {overflow-wrap:anywhere}
body #ansen-garden[data-language=en] :is(.ag-answer,.ag-resource-body,.ag-service-copy,.ag-visit-select button) {min-width:0}
body #ansen-garden[data-language=en] .ag-team-overview .ag-team-picker button {height:auto;white-space:normal}
body #ansen-garden[data-language=en] .ag-team-overview .ag-team-picker button :is(strong,small) {display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 body #ansen-garden[data-language=en] .ag-answer-options {grid-template-columns:repeat(2,minmax(0,1fr))}
 body #ansen-garden[data-language=en] .ag-answer {height:auto;min-height:56px}
}

@media(min-width:761px){
 body #ansen-garden .ag-team-overview {grid-template-rows:minmax(var(--ag-team-hero-height),auto) auto}
 /* All biographies share one grid cell; reserve the longest introduction. */
 body #ansen-garden .ag-team-overview .ag-team-focus-panel {display:grid;overflow:visible}
 body #ansen-garden .ag-team-focus-slide {grid-area:1/1;min-width:0;display:flex;flex-direction:column;gap:8px;visibility:hidden}
 body #ansen-garden .ag-team-focus-slide[data-team-active] {visibility:visible}
 /* Keep the original large name beside the smaller profession. */
 body #ansen-garden .ag-team-focus-slide .ag-team-focus-identity {display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:.55em;align-items:baseline}
 body #ansen-garden .ag-team-focus-slide .ag-team-focus-identity>h2 {grid-column:1;grid-row:1;margin:0!important}
 body #ansen-garden .ag-team-focus-slide .ag-team-focus-identity>.ag-role {grid-column:2;grid-row:1;margin:0!important}
 body #ansen-garden .ag-team-focus-slide .ag-team-focus-identity>.ag-team-traits {grid-column:1/-1;grid-row:2}
 body #ansen-garden .ag-team-focus-slide .ag-team-focus-identity>.ag-team-member-summary {grid-column:1/-1;grid-row:3}
 body #ansen-garden .ag-team-overview .ag-team-track {display:flex;align-items:flex-end}
 body #ansen-garden .ag-team-stage .ag-team-overview>[data-team-step] {top:auto;bottom:100px}
}

/* Flexible labels and compact header for phones and tablets. */
body #ansen-garden .ag-language-label-compact {display:none}
body #ansen-garden .ag-footer .ag-footer-walk {font-size:14px!important;line-height:1.7!important;white-space:normal;overflow-wrap:anywhere}
body #ansen-garden .ag-footer .ag-footer-legal {flex-wrap:wrap;white-space:normal;max-width:100%}
body #ansen-garden .ag-footer .ag-footer-legal a {white-space:normal;overflow-wrap:anywhere}
body #ansen-garden .ag-footer .ag-footer-identity p {white-space:normal}
@media(max-width:1100px){
 body #ansen-garden {--ag-header-height:68px}
 body #ansen-garden .ag-header {grid-template-columns:minmax(0,1fr) 64px 44px;gap:10px;min-height:68px;padding:10px 16px}
 body #ansen-garden .ag-brand {grid-column:1;grid-row:1;width:100%;max-width:220px;justify-self:start;gap:6px}
 body #ansen-garden .ag-brand img {height:auto;min-width:0;max-width:100%}
 body #ansen-garden .ag-brand .ag-brand-symbol {width:36%;flex:0 0 36%}
 body #ansen-garden .ag-brand .ag-brand-wordmark {width:0;flex:1 1 0}
 body #ansen-garden .ag-language-switch {grid-column:2;grid-row:1;justify-self:stretch}
 body #ansen-garden .ag-language-switch summary {min-width:0;min-height:44px;padding:0;gap:4px;font-size:14px!important}
 body #ansen-garden .ag-language-label-full {display:none}
 body #ansen-garden .ag-language-label-compact {display:inline}
 body #ansen-garden .ag-menu {grid-column:3;grid-row:1;display:grid;place-items:center;justify-self:end;min-width:44px;width:44px;height:44px;padding:0;border:0;font-size:0!important}
 body #ansen-garden .ag-menu::before {content:"";box-sizing:border-box;display:block;width:20px;height:16px;border-block:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat}
 body #ansen-garden .ag-menu[aria-expanded=true]::before {border:0;background:linear-gradient(45deg,transparent calc(50% - .8px),currentColor calc(50% - .8px),currentColor calc(50% + .8px),transparent calc(50% + .8px)),linear-gradient(-45deg,transparent calc(50% - .8px),currentColor calc(50% - .8px),currentColor calc(50% + .8px),transparent calc(50% + .8px));height:20px}
}
@media(max-width:1000px){
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-stage,
 body #ansen-garden .ag-home-space-tour[data-space-tour]:not([data-active-room]) .ag-space-stage {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto clamp(280px,85vw,400px) auto auto;gap:16px;height:auto;padding:28px 16px 32px}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-detail {display:contents}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-detail h2 {grid-column:1;grid-row:1;align-self:start;margin:0;text-align:center}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-role {grid-column:1;grid-row:2;white-space:normal;margin:0!important;text-align:center;align-self:start}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-backdrop {grid-column:1;grid-row:3;height:100%;min-height:0}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-selection {grid-column:1;grid-row:4;width:100%;max-width:600px;padding:0;margin:0;align-self:start;pointer-events:auto}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-choices {grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(82px,auto);gap:10px}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-choices .ag-space-room-card {height:auto;min-height:82px;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;padding:12px 10px;gap:3px 8px;background:#f8f9f0;border-color:#bac9ad;backdrop-filter:none;-webkit-backdrop-filter:none}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-room-name {font-size:16px!important;line-height:1.5!important}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-room-use {font-size:14px!important;line-height:1.5!important}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-botanical {width:24px;height:28px}
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-room-story {grid-column:1;grid-row:5;margin-top:0;max-width:600px}
}
@media(max-width:480px){
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-choices {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-selection,
 body #ansen-garden .ag-home-space-tour[data-space-tour] .ag-space-room-story {width:calc(100% - 40px);justify-self:end}
 body #ansen-garden[data-language] .ag-footer {padding:26px 7% calc(40px + env(safe-area-inset-bottom,0px)) max(64px,7%);gap:20px}
 body #ansen-garden .ag-footer .ag-footer-legal {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;justify-items:start}
 body #ansen-garden .ag-footer .ag-footer-legal>[aria-hidden=true] {display:none}
 body #ansen-garden .ag-footer .ag-footer-right-links .ag-footer-legal a {min-height:44px}
}

/* Give English room uses the full card width on phones. */
@media(max-width:760px){
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-choices .ag-space-room-card{grid-template-columns:20px minmax(0,1fr);gap:6px 8px;align-content:start}
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-room-card .ag-space-botanical{grid-column:1;grid-row:1;width:20px;height:24px;align-self:start}
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-room-name{grid-column:2;grid-row:1;overflow-wrap:normal}
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-room-use{grid-column:1/-1;grid-row:2;overflow-wrap:normal}
}
@media(max-width:360px){
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-choices .ag-space-room-card{grid-template-columns:16px minmax(0,1fr);padding:10px 8px;column-gap:4px}
 body #ansen-garden[data-language=en] .ag-home-space-tour[data-space-tour] .ag-space-room-card .ag-space-botanical{width:16px;height:22px}
}

/* Team directory: quiet category labels, with names as the focus. */
body #ansen-garden .ag-team-directory-disclosure .ag-team-role-group {
 grid-template-columns:128px minmax(0,1fr);align-items:center;
}
body #ansen-garden .ag-team-directory-disclosure .ag-team-role-group h2 {
 font-size:14px!important;font-weight:400!important;line-height:1.6!important;
 letter-spacing:.02em!important;margin:0;
}
@media(max-width:760px){
 body #ansen-garden .ag-team-directory-disclosure .ag-team-role-group {grid-template-columns:96px minmax(0,1fr)}
}
