/*
Theme Name: Bridge Child
Theme URI: http://bridgelanding.qodeinteractive.com/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: bridge
Template: bridge
*/

/* TSAA Morandi earth-tone global foundation */
:root {
  --tsaa-ink: #2C2A29;
  --tsaa-muted: #6B6560;
  --tsaa-canvas: #F9F8F6;
  --tsaa-accent: #6A7B66;
  --tsaa-tea: #8C7A6B;
  --tsaa-on-accent: #FFFFFF;
  --tsaa-radius-control: 6px;
  --tsaa-shadow-soft: 0 6px 18px rgba(44, 42, 41, 0.10);
}

html,
body,
.wrapper,
.wrapper_inner,
.content,
.content_inner {
  background-color: var(--tsaa-canvas) !important;
  color: var(--tsaa-ink);
}

body,
.content,
.content p,
.content li,
.content label,
.content input,
.content textarea,
.content select,
.tsaa-new,
.tsaa-new p,
.tsaa-new li,
.tsaa-new label {
  color: var(--tsaa-ink) !important;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.title h1,
.tsaa-new h1,
.tsaa-new h2,
.tsaa-new h3 {
  color: var(--tsaa-ink) !important;
}

.content .subtitle,
.content .title_subtitle_holder .subtitle,
.content .tsaa-lead,
.content .tsaa-section-head p,
.content .tsaa-card p,
.content .tsaa-person-copy p,
.content .tsaa-empty-copy p,
.content figcaption,
.content small,
.content .caption,
.content .post_info,
.content .comment_date {
  color: var(--tsaa-muted) !important;
}

body .header_bottom,
body .header_top,
body .tsaa-preview-nav,
body .tsaa-mobile-panel,
body .tsaa-new,
body .tsaa-section-white,
body .tsaa-card,
body .tsaa-calendar,
body .tsaa-form-wrap,
body .tsaa-insta-fallback,
body .tsaa-feature,
body .tsaa-stat {
  background-color: var(--tsaa-canvas) !important;
}

.content a:not(.qbutton):not(.tsaa-btn):not(.tsaa-nav-cta) {
  color: var(--tsaa-ink) !important;
  text-decoration-color: var(--tsaa-accent);
  text-underline-offset: 0.18em;
}

.content .tsaa-kicker,
.content .tsaa-role,
.content .tsaa-card-meta,
.content a:not(.qbutton):not(.tsaa-btn):not(.tsaa-nav-cta):hover {
  color: var(--tsaa-accent) !important;
}

body .qbutton,
body .load_more a,
body .blog_load_more_button a,
body .tsaa-btn,
body .tsaa-nav-cta,
body input[type="submit"],
body .wpcf7-submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
  border: 1px solid var(--tsaa-accent) !important;
  border-radius: var(--tsaa-radius-control) !important;
  background: var(--tsaa-accent) !important;
  color: var(--tsaa-on-accent) !important;
  box-shadow: var(--tsaa-shadow-soft) !important;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body .qbutton:hover,
body .load_more a:hover,
body .blog_load_more_button a:hover,
body .tsaa-btn:hover,
body .tsaa-nav-cta:hover,
body input[type="submit"]:hover,
body .wpcf7-submit:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover {
  border-color: var(--tsaa-tea) !important;
  background: var(--tsaa-canvas) !important;
  color: var(--tsaa-ink) !important;
  box-shadow: 0 4px 12px rgba(44, 42, 41, 0.08) !important;
  transform: translateY(-1px);
}

body .tsaa-btn-outline {
  border-color: var(--tsaa-tea) !important;
  background: transparent !important;
  color: var(--tsaa-ink) !important;
  box-shadow: none !important;
}

body .tsaa-btn-outline:hover {
  border-color: var(--tsaa-accent) !important;
  background: var(--tsaa-accent) !important;
  color: var(--tsaa-on-accent) !important;
}

body .qbutton:focus-visible,
body .tsaa-btn:focus-visible,
body .tsaa-nav-cta:focus-visible,
body input[type="submit"]:focus-visible,
body .wpcf7-submit:focus-visible,
.content a:focus-visible,
.content input:focus-visible,
.content textarea:focus-visible,
.content select:focus-visible {
  outline: 3px solid var(--tsaa-tea) !important;
  outline-offset: 3px;
}

body .tsaa-card,
body .tsaa-calendar,
body .tsaa-form-wrap,
body .tsaa-insta-fallback,
body .tsaa-person-card,
body .qode-card {
  border-color: rgba(140, 122, 107, 0.28) !important;
  box-shadow: var(--tsaa-shadow-soft) !important;
}

body .tsaa-form-wrap input:not([type="submit"]),
body .tsaa-form-wrap textarea,
body .tsaa-form-wrap select,
body .wpcf7 input:not([type="submit"]),
body .wpcf7 textarea,
body .wpcf7 select {
  border-color: rgba(140, 122, 107, 0.42) !important;
  border-radius: var(--tsaa-radius-control) !important;
  background-color: var(--tsaa-canvas) !important;
  color: var(--tsaa-ink) !important;
}

body .footer_top_holder,
body .footer_bottom_holder,
body .tsaa-site-footer {
  background-color: var(--tsaa-ink) !important;
}

body .footer_top_holder,
body .footer_top_holder p,
body .footer_top_holder a,
body .footer_bottom_holder,
body .footer_bottom_holder a,
body .tsaa-site-footer,
body .tsaa-site-footer h1,
body .tsaa-site-footer h2,
body .tsaa-site-footer h3,
body .tsaa-site-footer p,
body .tsaa-site-footer a {
  color: var(--tsaa-canvas) !important;
}

@media (prefers-reduced-motion: reduce) {
  body .qbutton,
  body .tsaa-btn,
  body .tsaa-nav-cta,
  body input[type="submit"] {
    transition: none;
  }
}

/* Traditional Chinese typography refinement */
:root {
  --tsaa-heading-font: system-ui, -apple-system, "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  --tsaa-heading-letter-spacing: 2.5px;
  --tsaa-paragraph-line-height: 1.9;
  --tsaa-paragraph-letter-spacing: 0.5px;
}

body h1,
body h2,
body h3 {
  font-family: var(--tsaa-heading-font) !important;
  letter-spacing: var(--tsaa-heading-letter-spacing) !important;
}

body p {
  line-height: var(--tsaa-paragraph-line-height) !important;
  letter-spacing: var(--tsaa-paragraph-letter-spacing) !important;
}

/* Homepage card hover refinement */
.page-id-6153 .tsaa-card,
.page-id-6153 .tsaa-feature,
.page-id-6153 .tsaa-info-band,
.page-id-6153 .tsaa-insta-fallback,
.page-id-6153 .tsaa-resource {
  border: none !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(0);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .page-id-6153 .tsaa-card:hover,
  .page-id-6153 .tsaa-feature:hover,
  .page-id-6153 .tsaa-info-band:hover,
  .page-id-6153 .tsaa-insta-fallback:hover,
  .page-id-6153 .tsaa-resource:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-id-6153 .tsaa-card,
  .page-id-6153 .tsaa-feature,
  .page-id-6153 .tsaa-info-band,
  .page-id-6153 .tsaa-insta-fallback,
  .page-id-6153 .tsaa-resource {
    transform: none !important;
    transition: none !important;
  }
}

/* TSAA site-wide consistency and Xiaobozai mascot */
:root {
  --tsaa-radius-ui: 10px;
  --tsaa-shadow-ui: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.xiaobozai-mascot {
  max-width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 8px 16px rgba(44, 42, 41, 0.12));
  transform-origin: 50% 70%;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .xiaobozai-mascot:hover {
    transform: scale(1.08) rotate(3deg);
  }
}

body .qbutton,
body .load_more a,
body .blog_load_more_button a,
body .tsaa-btn,
body .tsaa-btn-outline,
body .tsaa-nav-cta,
body input[type="submit"],
body .wpcf7-submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
  border: none !important;
  border-radius: var(--tsaa-radius-ui) !important;
  box-shadow: var(--tsaa-shadow-ui) !important;
}

body .tsaa-card,
body .tsaa-feature,
body .tsaa-info-band,
body .tsaa-insta-fallback,
body .tsaa-person-card,
body .tsaa-form-wrap,
body .tsaa-stat,
body .tsaa-calendar,
body .tsaa-resource,
body .qode-card,
body .wpb_column.tsaa-ui-panel > .vc_column-inner {
  border: none !important;
  border-radius: var(--tsaa-radius-ui) !important;
  box-shadow: var(--tsaa-shadow-ui) !important;
}

body .tsaa-card,
body .tsaa-feature,
body .tsaa-info-band,
body .tsaa-insta-fallback,
body .tsaa-person-card,
body .tsaa-form-wrap,
body .tsaa-stat,
body .tsaa-calendar,
body .tsaa-resource,
body .qode-card {
  background-color: #FFFFFF !important;
}

body.page-id-6153 .tsaa-card,
body.page-id-6153 .tsaa-feature,
body.page-id-6153 .tsaa-info-band,
body.page-id-6153 .tsaa-insta-fallback,
body.page-id-6153 .tsaa-resource {
  box-shadow: var(--tsaa-shadow-ui) !important;
}

body .header_bottom,
body .header_top,
body .tsaa-preview-nav {
  border: none !important;
  background-color: #F9F8F6 !important;
  box-shadow: 0 4px 18px rgba(44, 42, 41, 0.035) !important;
}

body .footer_top_holder,
body .footer_bottom_holder,
body .tsaa-site-footer {
  background-color: #2C2A29 !important;
  color: #F9F8F6 !important;
}

body .footer_top_holder *,
body .footer_bottom_holder *,
body .tsaa-site-footer h1,
body .tsaa-site-footer h2,
body .tsaa-site-footer h3,
body .tsaa-site-footer p,
body .tsaa-site-footer a,
body .tsaa-site-footer span {
  color: #F9F8F6 !important;
}

.tsaa-home-hero-copy {
  position: relative;
}

.xiaobozai-hero-mascot {
  position: absolute;
  z-index: 2;
  top: 76px;
  right: -104px;
  width: 112px;
}

.tsaa-card img.xiaobozai-card-mascot,
.xiaobozai-card-mascot {
  width: 72px !important;
  max-width: 72px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 0 12px;
}

.tsaa-faq-with-mascot {
  position: relative;
  min-height: 120px;
  padding-right: 150px;
}

.xiaobozai-faq-mascot {
  position: absolute;
  top: 0;
  right: 10px;
  width: 108px;
}

body .tsaa-footer-bottom {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  align-items: center !important;
}

.xiaobozai-footer-mascot-wrap {
  display: flex;
  align-items: center;
  justify-self: end;
}

.xiaobozai-footer-mascot {
  width: 88px;
  max-width: 88px;
}

@media (max-width: 980px) {
  .xiaobozai-hero-mascot {
    top: 56px;
    right: -10px;
    width: 96px;
  }
}

@media (max-width: 700px) {
  .xiaobozai-hero-mascot {
    position: static;
    display: block;
    width: 88px;
    margin: 0 0 12px;
  }

  .tsaa-faq-with-mascot {
    min-height: 0;
    padding-right: 0;
  }

  .xiaobozai-faq-mascot {
    position: static;
    display: block;
    width: 92px;
    margin: 0 0 16px;
  }

  body .tsaa-footer-bottom {
    grid-template-columns: 1fr !important;
  }

  .xiaobozai-footer-mascot-wrap {
    justify-self: start;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xiaobozai-mascot {
    transform: none !important;
    transition: none !important;
  }
}


/* TSAA Singing Bowls Page Styling */
body.page-id-6152,
body.page-id-singing-bowls,
.page-id-6152 .content,
.page-id-6152 .content_inner,
.singing-bowls-wrapper {
  background-color: #F9F8F6 !important;
}

body.page-id-6152 .singing-bowls-section--cream {
  background-color: #F9F8F6 !important;
}

body.page-id-6152 .singing-bowls-section--white {
  background-color: #FFFFFF !important;
}

.singing-bowls-wrapper.tsaa-hero,
.singing-bowls-wrapper.tsaa-section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

.singing-bowls-wrapper .tsaa-grid-2,
.singing-bowls-wrapper .tsaa-grid-3 {
  gap: 28px;
}

/* 標題與內文階級 */
.singing-bowls-wrapper h1,
.singing-bowls-wrapper h2,
.singing-bowls-wrapper h3 {
  color: #2C2A29 !important;
  font-family: system-ui, -apple-system, "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif !important;
  letter-spacing: 1.5px !important;
}

.singing-bowls-wrapper h1,
.singing-bowls-wrapper h2 {
  line-height: 1.2 !important;
}

.singing-bowls-wrapper p,
.singing-bowls-wrapper li {
  color: #6B6560 !important;
  line-height: 1.85 !important;
}

.singing-bowls-wrapper.tsaa-hero .wpb_text_column {
  max-width: 920px;
}

/* 頌缽產品／介紹卡片 */
body.page-id-6152 .singing-bowl-card {
  position: relative;
  height: 100%;
  overflow: visible !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: 0 10px 30px rgba(44, 42, 41, 0.04) !important;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.singing-bowl-card .tsaa-card-body {
  padding: 0;
}

.singing-bowls-wrapper .tsaa-grid-3 {
  grid-template-columns: 5fr 3.5fr 4fr;
  align-items: stretch;
}

body.page-id-6152 .singing-bowl-card.singing-bowl-intro-card {
  min-height: 250px;
  padding-right: 170px !important;
}

.xiaobozai-singing-bowl-mascot {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 104px;
  max-width: 104px;
}

.singing-bowl-safety-card {
  border-left: none !important;
}

/* 按鈕優化 */
.singing-bowls-wrapper .qbutton,
.singing-bowls-wrapper button {
  min-height: 46px;
  padding: 12px 30px !important;
  border: none !important;
  border-color: #8C7A6B !important;
  border-radius: 25px !important;
  background-color: #8C7A6B !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(140, 122, 107, 0.14) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.singing-bowls-wrapper .qbutton:hover,
.singing-bowls-wrapper button:hover {
  border-color: #6A7B66 !important;
  background-color: #6A7B66 !important;
  color: #FFFFFF !important;
}

@media (hover: hover) and (pointer: fine) {
  body.page-id-6152 .singing-bowl-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(140, 122, 107, 0.10) !important;
  }
}

@media (max-width: 980px) {
  .singing-bowls-wrapper .tsaa-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .singing-bowls-wrapper .tsaa-grid-3 > :last-child {
    grid-column: 1 / -1;
  }

  body.page-id-6152 .singing-bowl-card.singing-bowl-intro-card {
    min-height: 0;
    padding-right: 30px !important;
  }

  .xiaobozai-singing-bowl-mascot {
    position: static;
    display: block;
    width: 88px;
    max-width: 88px;
    margin: 0 0 16px auto;
  }
}

@media (max-width: 700px) {
  .singing-bowls-wrapper.tsaa-hero,
  .singing-bowls-wrapper.tsaa-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .singing-bowls-wrapper .tsaa-grid-2,
  .singing-bowls-wrapper .tsaa-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .singing-bowls-wrapper .tsaa-grid-3 > :last-child {
    grid-column: auto;
  }

  .singing-bowl-intro-card {
    min-height: 0;
    padding-right: 30px !important;
  }

  .xiaobozai-singing-bowl-mascot {
    position: static;
    display: block;
    width: 88px;
    max-width: 88px;
    margin: 0 0 14px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .singing-bowl-card,
  .singing-bowls-wrapper .qbutton,
  .singing-bowls-wrapper button {
    transform: none !important;
    transition: none !important;
  }
}


/* TSAA footer link contrast fix */
body .content .tsaa-site-footer .tsaa-footer-grid a[href],
body .content .tsaa-site-footer .tsaa-footer-bottom a[href],
body .content .tsaa-site-footer .tsaa-footer-legal a[href] {
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-decoration-color: rgba(255, 255, 255, 0.72) !important;
}

body .content .tsaa-site-footer .tsaa-footer-grid a[href]:hover,
body .content .tsaa-site-footer .tsaa-footer-bottom a[href]:hover,
body .content .tsaa-site-footer .tsaa-footer-legal a[href]:hover {
  color: #FFFFFF !important;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body .content .tsaa-site-footer .tsaa-footer-grid a[href]:focus-visible,
body .content .tsaa-site-footer .tsaa-footer-bottom a[href]:focus-visible,
body .content .tsaa-site-footer .tsaa-footer-legal a[href]:focus-visible {
  color: #FFFFFF !important;
  outline-color: #8C7A6B !important;
}


/* Hero Section 優化 - Footprints & Contact 頁面 */
.custom-hero-header {
  position: relative !important;
  isolation: isolate;
  padding: 100px 20px 80px !important;
  background-color: #2C2A29 !important;
  overflow: hidden !important;
  text-align: center !important;
}

/* 背景暗色遮罩，確保照片上的文字清晰 */
.custom-hero-header::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(44, 42, 41, 0.82) 0%, rgba(44, 42, 41, 0.78) 100%) !important;
  z-index: 1 !important;
  pointer-events: none;
}

.custom-hero-header > .section_inner,
.custom-hero-header > .full_section_inner {
  position: relative !important;
  z-index: 2 !important;
}

.custom-hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* 主標題清晰度優化 */
body .custom-hero-content h1 {
  color: #FDFBF7 !important;
  font-family: system-ui, -apple-system, "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif !important;
  font-size: 38px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 3px !important;
  margin: 0 0 12px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30) !important;
}

/* 副標題優化 */
body .custom-hero-content p.hero-subtitle,
body .custom-hero-content .subtitle {
  max-width: 720px;
  margin: 0 auto !important;
  color: #E2D5C5 !important;
  font-size: 16px !important;
  letter-spacing: 1.5px !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.24);
}

/* Hero 表頭旁的小缽仔迎賓圖案 */
.hero-mascot {
  width: 75px !important;
  max-width: 75px !important;
  height: auto !important;
  display: inline-block !important;
  margin-top: 15px !important;
  animation: heroFloat 3s ease-in-out infinite !important;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 700px) {
  .custom-hero-header {
    padding: 72px 16px 60px !important;
  }

  body .custom-hero-content h1 {
    font-size: 32px !important;
    letter-spacing: 2.5px !important;
  }

  body .custom-hero-content p.hero-subtitle,
  body .custom-hero-content .subtitle {
    font-size: 16px !important;
    line-height: 1.75 !important;
    letter-spacing: 0.75px !important;
  }

  .hero-mascot {
    width: 68px !important;
    max-width: 68px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot {
    animation: none !important;
    transform: none !important;
  }
}


/* Contact form title mascot */
.tsaa-form-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body .tsaa-form-title-row h2 {
  margin: 0 !important;
}

.xiaobozai-form-mascot {
  position: static;
  width: 56px !important;
  max-width: 56px !important;
  height: auto !important;
  flex: 0 0 56px;
  margin: 0 !important;
  animation: contactMascotFloat 3s ease-in-out infinite !important;
}

@keyframes contactMascotFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.tsaa-form-title-with-mascot > p {
  margin-top: 12px;
}

@media (max-width: 700px) {
  .tsaa-form-title-row {
    gap: 10px;
  }

  .xiaobozai-form-mascot {
    width: 52px !important;
    max-width: 52px !important;
    flex-basis: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xiaobozai-form-mascot {
    animation: none !important;
    transform: none !important;
  }
}

/* TSAA footer information layout refinement */
body .tsaa-site-footer .tsaa-footer-brand {
  max-width: 430px;
  color: #F9F8F6 !important;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.5px;
}

body .tsaa-site-footer .tsaa-footer-brand img {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 0 0 18px;
}

body .tsaa-site-footer .tsaa-footer-bottom {
  grid-template-columns: auto auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 24px !important;
  row-gap: 12px !important;
  text-align: right;
}

body .tsaa-site-footer .tsaa-footer-legal {
  justify-content: flex-start !important;
  gap: 10px 18px !important;
  text-align: left;
  white-space: nowrap;
}

body .tsaa-site-footer .tsaa-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 980px) {
  body .tsaa-site-footer .tsaa-footer-bottom {
    grid-template-columns: 1fr auto !important;
    text-align: left;
  }

  body .tsaa-site-footer .tsaa-footer-legal {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  body .tsaa-site-footer .tsaa-footer-brand {
    max-width: 100%;
  }

  body .tsaa-site-footer .tsaa-footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body .tsaa-site-footer .tsaa-footer-legal {
    grid-column: auto;
    grid-row: auto;
    white-space: normal;
  }
}

/* Homepage safety cards link arrows */
body.page-id-6153 .tsaa-feature-list .tsaa-text-link {
  gap: 10px;
}

body.page-id-6153 .tsaa-feature-list .tsaa-text-link::after {
  content: ">";
  display: inline-block;
  color: var(--tsaa-accent);
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   TSAA Official Global Design System (Bridge Child Theme)
   適用於 https://tsaa.tw 全站所有頁面
   ========================================================================== */

/* 1. 全站色彩變數 (Global Color Variables) */
:root {
  --tsaa-text-primary: #2C2A29;
  --tsaa-text-secondary: #6B6560;
  --tsaa-bg-main: #F9F8F6;
  --tsaa-brand-green: #6A7B66;
  --tsaa-brand-green-dark: #536251;
  --tsaa-brand-gold: #C8A97E;
  --tsaa-brand-gold-dark: #B39267;
  --tsaa-card-bg: #FFFFFF;
}

/* 2. 全站背景與文字視覺減壓 */
body,
.wrapper,
.content,
.container_inner {
  background-color: var(--tsaa-bg-main) !important;
}

body,
p,
li,
input,
textarea,
span {
  color: var(--tsaa-text-secondary) !important;
  line-height: 1.85 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.qode_icon_with_title .icon_title,
.title_holder h1 {
  color: var(--tsaa-text-primary) !important;
  font-family: system-ui, -apple-system, "Noto Serif TC", "PingFang TC", serif !important;
  letter-spacing: 1.5px !important;
}

/* 3. 全站按鈕系統重構 (解決 Hover 變白問題) */
.qbutton,
button,
input[type="submit"],
.qode-btn-default,
.wpcf7-submit {
  background-color: var(--tsaa-brand-green) !important;
  border: 2px solid var(--tsaa-brand-green) !important;
  color: #FFFFFF !important;
  border-radius: 30px !important;
  padding: 12px 32px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 15px rgba(106, 123, 102, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 全站按鈕 Hover 狀態：平滑轉為暖金頌缽色 */
.qbutton:hover,
button:hover,
input[type="submit"]:hover,
.qode-btn-default:hover,
.wpcf7-submit:hover {
  background-color: var(--tsaa-brand-gold) !important;
  border-color: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(200, 169, 126, 0.35) !important;
}

/* 外框次要按鈕 */
.qbutton.qbutton-outline,
.btn-secondary {
  background-color: transparent !important;
  border: 2px solid var(--tsaa-brand-gold) !important;
  color: var(--tsaa-brand-gold) !important;
  border-radius: 30px !important;
}

.qbutton.qbutton-outline:hover,
.btn-secondary:hover {
  background-color: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
}

/* 4. 全站卡片、容器與區塊 (Cards & Containers) */
.qode_carousels,
.wpb_column > .wpb_wrapper,
.service_table,
.q_icon_with_title,
.projects_holder article {
  border-radius: 12px !important;
}

.card-tsaa-style,
.wpb_content_element .wpb_wrapper {
  background: var(--tsaa-card-bg);
  border-radius: 12px;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 5. 全站吉祥物「小缽仔」共通樣式 */
.xiaobozai-mascot {
  max-width: 160px !important;
  height: auto !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
}

.xiaobozai-mascot:hover {
  transform: scale(1.1) rotate(4deg) !important;
}

.hero-mascot {
  max-width: 130px !important;
  height: auto !important;
  display: inline-block !important;
  margin-top: 20px !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)) !important;
  animation: heroFloat 3.5s ease-in-out infinite !important;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .xiaobozai-mascot { max-width: 120px !important; }
  .hero-mascot { max-width: 95px !important; }
}

/* 6. 全站連結 Hover 微互動 */
a {
  color: var(--tsaa-brand-green) !important;
  transition: color 0.2s ease !important;
}

a:hover {
  color: var(--tsaa-brand-gold) !important;
}

/* TSAA Global Design System compatibility and accessibility guardrails */
:root {
  --tsaa-ink: var(--tsaa-text-primary);
  --tsaa-muted: var(--tsaa-text-secondary);
  --tsaa-canvas: var(--tsaa-bg-main);
  --tsaa-accent: var(--tsaa-brand-green);
  --tsaa-tea: var(--tsaa-brand-gold);
  --tsaa-on-accent: #FFFFFF;
  --tsaa-radius-control: 30px;
  --tsaa-radius-ui: 12px;
}

/* Ensure the new button system overrides older Bridge and page-specific rules. */
body .qbutton,
body .load_more a,
body .blog_load_more_button a,
body .tsaa-btn,
body .tsaa-nav-cta,
body button,
body input[type="submit"],
body .qode-btn-default,
body .wpcf7-submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
  min-height: 44px;
  background: var(--tsaa-brand-green) !important;
  border: 2px solid var(--tsaa-brand-green) !important;
  color: #FFFFFF !important;
  border-radius: 30px !important;
  padding: 12px 32px !important;
  box-shadow: 0 4px 15px rgba(106, 123, 102, 0.2) !important;
}

body .qbutton:hover,
body .load_more a:hover,
body .blog_load_more_button a:hover,
body .tsaa-btn:hover,
body .tsaa-nav-cta:hover,
body button:hover,
body input[type="submit"]:hover,
body .qode-btn-default:hover,
body .wpcf7-submit:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover {
  background: var(--tsaa-brand-gold) !important;
  border-color: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(200, 169, 126, 0.35) !important;
}

body .qbutton span,
body .load_more a span,
body .blog_load_more_button a span,
body .tsaa-btn span,
body .tsaa-nav-cta span,
body button span,
body input[type="submit"] span,
body .qode-btn-default span,
body .wpcf7-submit span {
  color: inherit !important;
}

body .qbutton.qbutton-outline,
body .btn-secondary,
body .tsaa-btn-outline {
  background: transparent !important;
  border: 2px solid var(--tsaa-brand-gold) !important;
  color: var(--tsaa-brand-gold) !important;
  box-shadow: none !important;
}

body .qbutton.qbutton-outline:hover,
body .btn-secondary:hover,
body .tsaa-btn-outline:hover {
  background: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
}

body .content a:not(.qbutton):not(.tsaa-btn):not(.tsaa-nav-cta) {
  color: var(--tsaa-brand-green) !important;
}

body .content a:not(.qbutton):not(.tsaa-btn):not(.tsaa-nav-cta):hover {
  color: var(--tsaa-brand-gold) !important;
}

/* Plain WPBakery text and media wrappers remain structural, not accidental cards. */
body .wpb_content_element:not(.card-tsaa-style):not(.tsaa-card) > .wpb_wrapper {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body .card-tsaa-style > .wpb_wrapper,
body .wpb_content_element.card-tsaa-style > .wpb_wrapper {
  background: var(--tsaa-card-bg);
  border-radius: 12px;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Keep the footer readable after the global text and link rules. */
body .footer_top_holder,
body .footer_bottom_holder,
body .tsaa-site-footer {
  background-color: var(--tsaa-text-primary) !important;
}

body .footer_top_holder *,
body .footer_bottom_holder *,
body .tsaa-site-footer * {
  color: var(--tsaa-bg-main) !important;
}

body .footer_top_holder a:hover,
body .footer_bottom_holder a:hover,
body .tsaa-site-footer a:hover {
  color: var(--tsaa-brand-gold) !important;
}

body .qbutton:focus-visible,
body .tsaa-btn:focus-visible,
body .tsaa-nav-cta:focus-visible,
body button:focus-visible,
body input[type="submit"]:focus-visible,
body .wpcf7-submit:focus-visible,
body a:focus-visible {
  outline: 3px solid var(--tsaa-brand-gold-dark) !important;
  outline-offset: 3px !important;
}

@media (hover: none), (pointer: coarse) {
  .xiaobozai-mascot:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xiaobozai-mascot,
  .hero-mascot,
  body .qbutton,
  body .tsaa-btn,
  body .tsaa-nav-cta,
  body button,
  body input[type="submit"],
  body .qode-btn-default,
  body .wpcf7-submit {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   TSAA Organization Cooperation Page
   ========================================================================== */

.coop-page-wrapper {
  padding: 60px 0 !important;
}

.coop-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: url("https://tsaa.tw/wp-content/uploads/tsaa-assets/photo-partnership.png");
  background-position: center;
  background-size: cover;
}

.coop-hero.custom-hero-header::before {
  background: linear-gradient(180deg, rgba(44, 42, 41, 0.76) 0%, rgba(44, 42, 41, 0.62) 100%) !important;
}

.coop-hero > .section_inner {
  position: relative;
  z-index: 2;
}

.coop-hero .custom-hero-content {
  max-width: 920px !important;
}

.coop-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.coop-hero-title-row > div {
  max-width: 680px;
}

.coop-hero .tsaa-kicker,
.coop-hero .custom-hero-content h1 {
  color: var(--tsaa-bg-main) !important;
}

.coop-hero .custom-hero-content .hero-subtitle {
  max-width: 760px;
  margin: 0 auto 26px !important;
  color: var(--tsaa-brand-gold) !important;
}

.coop-hero .hero-mascot {
  flex: 0 0 auto;
  margin: 0 !important;
}

.coop-section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.coop-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  margin: 40px 0 !important;
}

.coop-card {
  background: #FFFFFF !important;
  border-radius: 12px !important;
  padding: 36px 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  border-top: 4px solid var(--tsaa-brand-gold) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.coop-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(200, 169, 126, 0.15) !important;
}

.coop-card h3 {
  color: var(--tsaa-text-primary) !important;
  font-size: 20px !important;
  margin-bottom: 12px !important;
}

.coop-card p {
  margin-bottom: 0 !important;
}

.coop-card-label {
  display: block;
  margin-bottom: 18px;
  color: var(--tsaa-brand-green) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.coop-workflow-section {
  background: #FFFFFF !important;
}

.coop-steps {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin: 50px 0 !important;
}

.coop-step-item {
  flex: 1 1 200px !important;
  background: #FFFFFF !important;
  padding: 28px 20px !important;
  border-radius: 12px !important;
  text-align: center !important;
  position: relative !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02) !important;
}

.coop-step-item::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: rgba(200, 169, 126, 0.55);
}

.coop-step-item:last-child::after {
  display: none;
}

.coop-step-number {
  width: 44px !important;
  height: 44px !important;
  background-color: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 18px !important;
  margin: 0 auto 16px auto !important;
}

.coop-step-item h3 {
  margin-bottom: 10px !important;
  font-size: 18px !important;
}

.coop-step-item p {
  margin-bottom: 0 !important;
  font-size: 15px !important;
}

.coop-cta-section {
  background: rgba(200, 169, 126, 0.10) !important;
}

.coop-cta-box {
  background-color: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 50px 40px !important;
  box-shadow: 0 12px 40px rgba(106, 123, 102, 0.08) !important;
  text-align: center !important;
  margin-top: 60px !important;
  border: 1px solid rgba(200, 169, 126, 0.2) !important;
}

.coop-cta-box > .vc_column-inner,
.coop-cta-box > .wpb_wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.coop-cta-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  max-width: 820px;
  margin: 0 auto 30px;
}

.coop-cta-heading > div {
  max-width: 620px;
  text-align: left;
}

.coop-cta-heading h2 {
  margin-bottom: 10px !important;
}

.coop-cta-heading p {
  margin-bottom: 0 !important;
}

.coop-form-mascot {
  width: 104px !important;
  flex: 0 0 104px;
}

.coop-cta-box .wpcf7 {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.coop-cta-box .wpcf7-form-control-wrap {
  display: block;
}

.coop-cta-box input:not([type="checkbox"]):not([type="submit"]),
.coop-cta-box select,
.coop-cta-box textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(140, 122, 107, 0.32);
  border-radius: 8px;
  background: var(--tsaa-bg-main);
  color: var(--tsaa-text-primary);
}

.coop-cta-box textarea {
  min-height: 150px;
}

.coop-cta-box input:focus,
.coop-cta-box select:focus,
.coop-cta-box textarea:focus {
  border-color: var(--tsaa-brand-green);
  outline: 3px solid rgba(106, 123, 102, 0.18);
  outline-offset: 1px;
}

.coop-contact-note {
  max-width: 820px;
  margin: -10px auto 28px !important;
  text-align: left;
}

@media (max-width: 980px) {
  .coop-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .coop-step-item {
    flex-basis: calc(50% - 10px) !important;
  }

  .coop-step-item::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .coop-page-wrapper {
    padding: 50px 0 !important;
  }

  .coop-hero {
    min-height: 500px;
  }

  .coop-hero-title-row {
    flex-direction: column-reverse;
    gap: 14px;
  }

  .coop-hero .custom-hero-content h1 {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  .coop-card-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 30px 0 0 !important;
  }

  .coop-card {
    padding: 30px 24px !important;
  }

  .coop-steps {
    flex-direction: column !important;
    margin: 34px 0 0 !important;
  }

  .coop-step-item {
    flex-basis: auto !important;
  }

  .coop-cta-box {
    padding: 34px 22px !important;
    margin-top: 0 !important;
  }

  .coop-cta-heading {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .coop-cta-heading > div,
  .coop-contact-note {
    text-align: center;
  }

  .coop-form-mascot {
    width: 88px !important;
    flex-basis: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coop-card,
  .coop-card:hover {
    transform: none !important;
    transition: none !important;
  }
}

/* Bridge row background compatibility and balanced four-card composition. */
.coop-hero {
  position: relative !important;
  background-color: var(--tsaa-text-primary) !important;
  background-image: none !important;
}

.coop-hero::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url("https://tsaa.tw/wp-content/uploads/tsaa-assets/photo-partnership.png") center / cover no-repeat;
}

.coop-hero.custom-hero-header::before {
  display: block !important;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
}

.coop-offerings-section .coop-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 700px) {
  .coop-offerings-section .coop-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Footer links must remain readable on the deep warm-gray surface. */
body .content .tsaa-site-footer .tsaa-footer-grid a[href],
body .content .tsaa-site-footer .tsaa-footer-bottom a[href],
body .content .tsaa-site-footer .tsaa-footer-legal a[href] {
  color: var(--tsaa-bg-main) !important;
}

body .content .tsaa-site-footer .tsaa-footer-grid a[href]:hover,
body .content .tsaa-site-footer .tsaa-footer-bottom a[href]:hover,
body .content .tsaa-site-footer .tsaa-footer-legal a[href]:hover {
  color: var(--tsaa-brand-gold) !important;
}

/* ==========================================================================
   TSAA Scientific Acoustic Showcase Styling
   ========================================================================== */

/* Scientific hero */
.scientific-bowl-hero {
  padding: 96px 0 !important;
  background: linear-gradient(135deg, var(--tsaa-bg-main) 0%, rgba(200, 169, 126, 0.12) 100%) !important;
}

.scientific-bowl-hero .section_inner_margin {
  display: flex !important;
  align-items: center !important;
  gap: 48px !important;
}

.scientific-bowl-hero .wpb_column {
  float: none !important;
}

.scientific-hero-title {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 16px !important;
}

.scientific-hero-title h1 {
  margin: 0 !important;
}

.scientific-hero-title .hero-mascot {
  width: 92px !important;
  max-width: 92px !important;
  flex: 0 0 92px !important;
  margin: 0 !important;
}

.scientific-hero-media {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(44, 42, 41, 0.12) !important;
}

/* 1. 頌缽科學展示卡片 */
.bowl-scientific-card {
  background: #FFFFFF !important;
  border-radius: 14px !important;
  padding: 32px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(200, 169, 126, 0.2) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.bowl-scientific-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 40px rgba(106, 123, 102, 0.12) !important;
}

.science-process-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 36px !important;
}

.science-process-item {
  padding: 26px 0 0 !important;
  border-top: 2px solid var(--tsaa-brand-gold) !important;
}

.science-process-item strong {
  display: block !important;
  color: var(--tsaa-text-primary) !important;
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.bowl-type-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 36px !important;
}

.bowl-scientific-card--feature {
  grid-column: 1 / -1 !important;
  padding: 38px !important;
}

.bowl-card-note {
  font-size: 13px !important;
  margin: 18px 0 0 !important;
}

/* 2. 物理與生理科學標籤 */
.acoustic-tag-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 14px 0 18px 0 !important;
}

.acoustic-tag {
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

.tag-physics {
  background-color: rgba(200, 169, 126, 0.12) !important;
  color: var(--tsaa-brand-gold-dark) !important;
  border: 1px solid rgba(200, 169, 126, 0.3) !important;
}

.tag-physio {
  background-color: rgba(106, 123, 102, 0.12) !important;
  color: var(--tsaa-brand-green) !important;
  border: 1px solid rgba(106, 123, 102, 0.25) !important;
}

/* 3. 聲波音訊數據採樣控制 */
.acoustic-audio-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--tsaa-brand-green) !important;
  background: var(--tsaa-bg-main) !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
  font-weight: 500 !important;
}

.acoustic-audio-btn:hover {
  background: var(--tsaa-brand-gold) !important;
  color: #FFFFFF !important;
}

.acoustic-audio-btn[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.74 !important;
}

.acoustic-audio-btn[aria-disabled="true"]:hover {
  color: var(--tsaa-brand-green) !important;
  background: var(--tsaa-bg-main) !important;
}

.acoustic-wave-icon {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  border: 2px solid currentColor !important;
  border-left-color: transparent !important;
  border-radius: 50% !important;
}

/* 4. 聲學規格科學對照表 */
.acoustic-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 12px !important;
}

.acoustic-spec-table {
  width: 100% !important;
  min-width: 780px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #FFFFFF !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  margin: 40px 0 18px !important;
}

.acoustic-spec-table th {
  background-color: var(--tsaa-brand-green) !important;
  color: #FFFFFF !important;
  padding: 16px 20px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

.acoustic-spec-table td {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(140, 122, 107, 0.18) !important;
  vertical-align: top !important;
}

.acoustic-spec-table tr:last-child td {
  border-bottom: 0 !important;
}

.acoustic-table-note {
  font-size: 13px !important;
  margin: 0 !important;
}

/* 5. 小缽仔科學科普卡片 */
.science-mascot-box {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--tsaa-bg-main) 100%) !important;
  border-radius: 16px !important;
  padding: 24px 30px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  border: 1px solid rgba(200, 169, 126, 0.25) !important;
  margin: 40px 0 !important;
}

.science-mascot-box .xiaobozai-mascot {
  width: 112px !important;
  max-width: 112px !important;
  flex: 0 0 112px !important;
}

.science-mascot-box h3 {
  margin-bottom: 8px !important;
}

.science-mascot-box p {
  margin: 0 !important;
}

.science-evidence-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 34px !important;
}

.science-evidence-panel {
  padding: 30px !important;
  border-radius: 14px !important;
}

.science-evidence-panel--established {
  background: rgba(106, 123, 102, 0.10) !important;
}

.science-evidence-panel--developing {
  background: rgba(200, 169, 126, 0.12) !important;
}

.science-source-list {
  margin: 22px 0 0 20px !important;
}

.science-source-list li {
  margin-bottom: 8px !important;
}

.science-source-list a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

@media (max-width: 768px) {
  .scientific-bowl-hero {
    padding: 60px 0 !important;
  }

  .scientific-bowl-hero .section_inner_margin {
    display: block !important;
  }

  .scientific-bowl-hero .wpb_column + .wpb_column {
    margin-top: 34px !important;
  }

  .scientific-hero-title {
    align-items: flex-start !important;
  }

  .scientific-hero-title .hero-mascot {
    width: 72px !important;
    max-width: 72px !important;
    flex-basis: 72px !important;
  }

  .science-process-grid,
  .bowl-type-grid,
  .science-evidence-grid {
    grid-template-columns: 1fr !important;
  }

  .bowl-scientific-card--feature {
    grid-column: auto !important;
  }

  .bowl-scientific-card {
    padding: 26px 22px !important;
  }

  .science-mascot-box {
    align-items: flex-start !important;
    padding: 24px 22px !important;
  }

  .science-mascot-box .xiaobozai-mascot {
    width: 82px !important;
    max-width: 82px !important;
    flex-basis: 82px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bowl-scientific-card,
  .bowl-scientific-card:hover {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   TSAA Legal Pages — Disclaimer & Privacy Policy
   ========================================================================== */
body.page-id-6215 .tsaa-legal-hero,
body.page-id-6216 .tsaa-legal-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px !important;
  border-bottom: 1px solid rgba(200, 169, 126, 0.28);
  background: #F3F0EB !important;
}

body.page-id-6215 .tsaa-legal-hero::after,
body.page-id-6216 .tsaa-legal-hero::after {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 140px);
  bottom: -76px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(200, 169, 126, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

body.page-id-6215 .tsaa-legal-intro,
body.page-id-6216 .tsaa-legal-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  max-width: none;
}

body.page-id-6215 .tsaa-legal-heading,
body.page-id-6216 .tsaa-legal-heading {
  max-width: 760px;
}

body.page-id-6215 .tsaa-legal-heading h1,
body.page-id-6216 .tsaa-legal-heading h1 {
  max-width: 760px;
  margin: 0 0 18px !important;
  color: var(--tsaa-text-primary) !important;
  font-size: clamp(36px, 4.2vw, 54px) !important;
  line-height: 1.16 !important;
  letter-spacing: 2px !important;
}

body.page-id-6215 .tsaa-legal-heading .tsaa-legal-lead,
body.page-id-6216 .tsaa-legal-heading .tsaa-legal-lead {
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--tsaa-text-secondary) !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
}

body.page-id-6215 .tsaa-legal-meta,
body.page-id-6216 .tsaa-legal-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(106, 123, 102, 0.10);
  color: var(--tsaa-brand-green-dark) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.tsaa-legal-switcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
  padding: 20px;
  border: 1px solid rgba(200, 169, 126, 0.30);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.tsaa-legal-switcher-label {
  margin: 0 0 4px !important;
  color: var(--tsaa-text-secondary) !important;
  font-size: 13px !important;
  font-weight: 600;
}

body .content .tsaa-legal-switcher a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 2px;
  color: var(--tsaa-text-primary) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body .content .tsaa-legal-switcher a::after {
  content: "→";
  color: var(--tsaa-brand-green) !important;
}

body .content .tsaa-legal-switcher a[aria-current="page"] {
  color: var(--tsaa-brand-green-dark) !important;
}

body.page-id-6215 .tsaa-legal-body,
body.page-id-6216 .tsaa-legal-body,
body.page-id-6215 .tsaa-section-white,
body.page-id-6216 .tsaa-section-white {
  padding: 80px 0 96px !important;
  background: var(--tsaa-bg-main) !important;
}

.tsaa-policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 800px);
  justify-content: center;
  align-items: start;
  gap: 36px;
  max-width: 1086px;
  margin: 0 auto;
}

.tsaa-policy-aside {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid rgba(200, 169, 126, 0.24);
  border-radius: 12px;
  background: rgba(106, 123, 102, 0.07);
}

.tsaa-policy-aside h2 {
  margin: 0 0 14px !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  letter-spacing: 1px !important;
}

.tsaa-policy-aside nav {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 190px);
  overflow: auto;
}

body .content .tsaa-policy-aside a {
  position: relative;
  display: block;
  padding: 9px 0 9px 17px;
  color: var(--tsaa-text-secondary) !important;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

body .content .tsaa-policy-aside a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tsaa-brand-gold);
}

body .content .tsaa-policy-aside a:hover,
body .content .tsaa-policy-aside a:focus-visible {
  color: var(--tsaa-brand-green-dark) !important;
}

body.page-id-6215 .tsaa-legal-content,
body.page-id-6216 .tsaa-legal-content {
  max-width: none;
  margin: 0;
}

.tsaa-policy-document {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(200, 169, 126, 0.22);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 14px 42px rgba(44, 42, 41, 0.055);
}

.tsaa-policy-document .tsaa-legal-note {
  margin: 0 0 38px;
  padding: 22px 24px;
  border: 0;
  border-left: 4px solid var(--tsaa-brand-green);
  border-radius: 0 10px 10px 0;
  background: rgba(106, 123, 102, 0.08);
}

.tsaa-policy-document .tsaa-legal-note p {
  margin: 0;
  color: var(--tsaa-text-primary) !important;
  font-weight: 500;
}

.tsaa-policy-section {
  scroll-margin-top: 112px;
}

.tsaa-policy-section + .tsaa-policy-section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(200, 169, 126, 0.24);
}

body .tsaa-policy-document h2 {
  margin: 0 0 16px !important;
  color: var(--tsaa-text-primary) !important;
  font-size: 23px !important;
  line-height: 1.45 !important;
  letter-spacing: 1.4px !important;
}

body .tsaa-policy-document p,
body .tsaa-policy-document li {
  color: var(--tsaa-text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.95 !important;
}

.tsaa-policy-document p:last-child,
.tsaa-policy-document li:last-child {
  margin-bottom: 0;
}

.tsaa-policy-document ul {
  margin: 12px 0 20px 1.2em;
}

.tsaa-policy-document li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.tsaa-policy-document strong {
  color: var(--tsaa-text-primary) !important;
  font-weight: 650;
}

body .content .tsaa-policy-document a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  body.page-id-6215 .tsaa-legal-intro,
  body.page-id-6216 .tsaa-legal-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tsaa-legal-switcher {
    min-width: 0;
    max-width: 420px;
  }

  .tsaa-policy-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
  }

  .tsaa-policy-aside {
    position: static;
  }

  .tsaa-policy-aside nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    column-gap: 20px;
  }
}

@media (max-width: 700px) {
  body.page-id-6215 .tsaa-legal-hero,
  body.page-id-6216 .tsaa-legal-hero {
    padding: 60px 0 54px !important;
  }

  body.page-id-6215 .tsaa-legal-hero::after,
  body.page-id-6216 .tsaa-legal-hero::after {
    right: -70px;
    bottom: -100px;
    width: 180px;
    height: 180px;
  }

  body.page-id-6215 .tsaa-legal-heading h1,
  body.page-id-6216 .tsaa-legal-heading h1 {
    font-size: 34px !important;
    line-height: 1.24 !important;
  }

  body.page-id-6215 .tsaa-legal-body,
  body.page-id-6216 .tsaa-legal-body,
  body.page-id-6215 .tsaa-section-white,
  body.page-id-6216 .tsaa-section-white {
    padding: 54px 0 64px !important;
  }

  .tsaa-policy-layout {
    gap: 22px;
  }

  .tsaa-policy-aside {
    padding: 20px;
  }

  .tsaa-policy-aside nav {
    grid-template-columns: 1fr;
  }

  .tsaa-policy-document {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .tsaa-policy-document .tsaa-legal-note {
    margin-bottom: 30px;
    padding: 18px;
  }

  .tsaa-policy-section + .tsaa-policy-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  body .tsaa-policy-document h2 {
    font-size: 21px !important;
  }

  body .tsaa-policy-document p,
  body .tsaa-policy-document li {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }
}

/* Privacy policy keeps its approved legal copy intact; styling only. */
body.page-id-6216 .tsaa-legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(200, 169, 126, 0.22);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 14px 42px rgba(44, 42, 41, 0.055);
}

body.page-id-6216 .tsaa-legal-content .tsaa-legal-note {
  margin: 0 0 38px;
  padding: 22px 24px;
  border: 0;
  border-left: 4px solid var(--tsaa-brand-green);
  border-radius: 0 10px 10px 0;
  background: rgba(106, 123, 102, 0.08);
}

body.page-id-6216 .tsaa-legal-content .tsaa-legal-note p {
  margin: 0;
  color: var(--tsaa-text-primary) !important;
  font-weight: 500;
}

body.page-id-6216 .tsaa-legal-content h2 {
  margin: 0 0 16px !important;
  color: var(--tsaa-text-primary) !important;
  font-size: 23px !important;
  line-height: 1.45 !important;
  letter-spacing: 1.4px !important;
}

body.page-id-6216 .tsaa-legal-content h2:not(:first-of-type) {
  margin-top: 38px !important;
  padding-top: 38px;
  border-top: 1px solid rgba(200, 169, 126, 0.24);
}

body.page-id-6216 .tsaa-legal-content p,
body.page-id-6216 .tsaa-legal-content li {
  color: var(--tsaa-text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.95 !important;
}

body.page-id-6216 .tsaa-legal-content ul {
  margin: 12px 0 20px 1.2em;
}

body.page-id-6216 .tsaa-legal-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}

body.page-id-6216 .tsaa-legal-content strong {
  color: var(--tsaa-text-primary) !important;
  font-weight: 650;
}

@media (max-width: 700px) {
  body.page-id-6216 .tsaa-legal-content {
    padding: 28px 22px;
    border-radius: 12px;
  }

  body.page-id-6216 .tsaa-legal-content .tsaa-legal-note {
    margin-bottom: 30px;
    padding: 18px;
  }

  body.page-id-6216 .tsaa-legal-content h2 {
    font-size: 21px !important;
  }

  body.page-id-6216 .tsaa-legal-content h2:not(:first-of-type) {
    margin-top: 30px !important;
    padding-top: 30px;
  }

  body.page-id-6216 .tsaa-legal-content p,
  body.page-id-6216 .tsaa-legal-content li {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }
}


/* ==========================================================================
   TSAA Event Calendar — Simple Calendar + Member Events embed
   ========================================================================== */

.tsaa-events-calendar-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(200, 169, 126, 0.20);
  border-radius: 16px;
  background: var(--tsaa-card-bg, #FFFFFF);
  box-shadow: 0 14px 42px rgba(44, 42, 41, 0.055);
}

.tsaa-calendar-section-head {
  max-width: 720px;
  margin: 0 0 32px;
}

.tsaa-calendar-section-head .tsaa-kicker,
.tsaa-calendar-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--tsaa-brand-green-dark, #536251) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.tsaa-calendar-section-head h2 {
  margin: 0 0 12px !important;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.3 !important;
}

.tsaa-calendar-section-head p {
  max-width: 650px;
  margin: 0;
  color: var(--tsaa-text-secondary, #6B6560) !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.tsaa-calendar-mobile-hint {
  display: none;
  margin: 0 0 14px !important;
  color: var(--tsaa-brand-green-dark, #536251) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.tsaa-events-calendar-shell .simcal-calendar {
  width: 100%;
  margin: 0 !important;
  color: var(--tsaa-text-secondary, #6B6560) !important;
}

.tsaa-events-calendar-shell .simcal-calendar-grid {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 126, 0.24) !important;
  border-radius: 12px;
  background: #FFFFFF;
}

.tsaa-events-calendar-shell .simcal-calendar-grid thead,
.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-nav {
  background: var(--tsaa-brand-green, #6A7B66) !important;
}

.tsaa-events-calendar-shell .simcal-calendar-grid thead th,
.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-nav th,
.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-nav td {
  padding: 14px 12px !important;
  border: 0 !important;
  color: #FFFFFF !important;
}

.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-current h3,
.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-current-month,
.tsaa-events-calendar-shell .simcal-calendar-grid .simcal-current-year {
  margin: 0 !important;
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: 1px !important;
}

.tsaa-events-calendar-shell .simcal-nav-button {
  display: inline-flex !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  transform: none !important;
}

.tsaa-events-calendar-shell .simcal-nav-button:hover,
.tsaa-events-calendar-shell .simcal-nav-button:focus-visible {
  border-color: var(--tsaa-brand-gold, #C8A97E) !important;
  background: var(--tsaa-brand-gold, #C8A97E) !important;
  color: #FFFFFF !important;
  outline: 3px solid rgba(200, 169, 126, 0.28) !important;
  outline-offset: 2px;
}

.tsaa-events-calendar-shell .simcal-week-day {
  padding: 12px 8px !important;
  border-color: rgba(200, 169, 126, 0.18) !important;
  background: rgba(106, 123, 102, 0.09) !important;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.tsaa-events-calendar-shell .simcal-day {
  min-height: 104px !important;
  padding: 10px !important;
  border-color: rgba(200, 169, 126, 0.18) !important;
  background: #FFFFFF !important;
  vertical-align: top !important;
  transition: background-color 0.2s ease !important;
}

.tsaa-events-calendar-shell .simcal-day:hover {
  background: rgba(249, 248, 246, 0.96) !important;
}

.tsaa-events-calendar-shell .simcal-day-number {
  display: inline-flex !important;
  min-width: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.tsaa-events-calendar-shell .simcal-today,
.tsaa-events-calendar-shell .simcal-day.simcal-today {
  background: rgba(106, 123, 102, 0.08) !important;
}

.tsaa-events-calendar-shell .simcal-today .simcal-day-number {
  border-radius: 50% !important;
  background: var(--tsaa-brand-green, #6A7B66) !important;
  color: #FFFFFF !important;
}

.tsaa-events-calendar-shell .simcal-events {
  margin: 7px 0 0 !important;
}

.tsaa-events-calendar-shell .simcal-events li {
  margin: 5px 0 0 !important;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(200, 169, 126, 0.14) !important;
  color: var(--tsaa-brand-green-dark, #536251) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.tsaa-events-calendar-shell .simcal-event-title,
.tsaa-events-calendar-shell .simcal-events a {
  color: var(--tsaa-brand-green-dark, #536251) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.tsaa-events-calendar-shell .simcal-event-title:hover,
.tsaa-events-calendar-shell .simcal-events a:hover {
  color: var(--tsaa-brand-gold-dark, #B39267) !important;
}

.tsaa-events-calendar-shell .simcal-event-bubble {
  max-width: 340px !important;
  padding: 18px !important;
  border: 1px solid rgba(200, 169, 126, 0.24) !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: 0 14px 38px rgba(44, 42, 41, 0.14) !important;
}

.tsaa-events-calendar-shell .simcal-event-bubble p,
.tsaa-events-calendar-shell .simcal-event-bubble div,
.tsaa-events-calendar-shell .simcal-event-bubble span {
  color: var(--tsaa-text-secondary, #6B6560) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.tsaa-events-calendar-shell .simcal-event-bubble strong {
  color: var(--tsaa-text-primary, #2C2A29) !important;
}

/* Standalone calendar page: replace the legacy Bridge shell only on this calendar. */
body.single-calendar.postid-6366 {
  background: var(--tsaa-bg-main, #F9F8F6) !important;
}

body.single-calendar.postid-6366 > .wrapper,
body.single-calendar.postid-6366 .wrapper_inner,
body.single-calendar.postid-6366 .content,
body.single-calendar.postid-6366 .content_inner {
  background: var(--tsaa-bg-main, #F9F8F6) !important;
}

body.single-calendar.postid-6366 .page_header,
body.single-calendar.postid-6366 .title_outer,
body.single-calendar.postid-6366 footer,
body.single-calendar.postid-6366 .blog_holder article .post_text > h2,
body.single-calendar.postid-6366 .blog_holder article .post_info {
  display: none !important;
}

body.single-calendar.postid-6366 .content {
  margin-top: 0 !important;
}

body.single-calendar.postid-6366 .container,
body.single-calendar.postid-6366 .container_inner,
body.single-calendar.postid-6366 .container_inner.default_template_holder,
body.single-calendar.postid-6366 .blog_holder,
body.single-calendar.postid-6366 .blog_holder article,
body.single-calendar.postid-6366 .post_content,
body.single-calendar.postid-6366 .post_content_holder,
body.single-calendar.postid-6366 .post_text,
body.single-calendar.postid-6366 .post_text_inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tsaa-calendar-site-nav {
  position: relative;
  z-index: 1200;
  width: 100%;
  border-bottom: 1px solid rgba(200, 169, 126, 0.24);
  background: rgba(249, 248, 246, 0.98);
}

.tsaa-calendar-site-nav .tsaa-nav-inner {
  display: flex;
  width: min(1320px, calc(100% - 48px));
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}

.tsaa-calendar-site-nav .tsaa-brand img {
  display: block;
  width: auto;
  height: 48px;
}

.tsaa-calendar-site-nav .tsaa-nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tsaa-calendar-site-nav .tsaa-nav-desktop a,
.tsaa-calendar-site-nav .tsaa-mobile-panel a {
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

.tsaa-calendar-site-nav .tsaa-nav-desktop a[aria-current="page"] {
  color: var(--tsaa-brand-green-dark, #536251) !important;
}

.tsaa-calendar-site-nav .tsaa-nav-cta {
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: var(--tsaa-brand-green, #6A7B66) !important;
  color: #FFFFFF !important;
}

.tsaa-calendar-site-nav .tsaa-nav-cta:hover {
  background: var(--tsaa-brand-gold, #C8A97E) !important;
  color: #FFFFFF !important;
}

.tsaa-calendar-site-nav .tsaa-nav-mobile {
  display: none;
  position: relative;
}

.tsaa-calendar-site-nav .tsaa-nav-mobile summary {
  display: flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(106, 123, 102, 0.35);
  border-radius: 999px;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-weight: 650;
  cursor: pointer;
}

.tsaa-calendar-site-nav .tsaa-mobile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(290px, calc(100vw - 32px));
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(200, 169, 126, 0.24);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(44, 42, 41, 0.14);
}

.tsaa-calendar-site-nav .tsaa-mobile-panel a {
  padding: 10px 12px;
}

.tsaa-calendar-site-nav .tsaa-skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--tsaa-text-primary, #2C2A29) !important;
  color: #FFFFFF !important;
}

.tsaa-calendar-site-nav .tsaa-skip-link:focus {
  top: 10px;
}

.tsaa-calendar-single-hero {
  padding: clamp(70px, 8vw, 112px) 24px clamp(58px, 6vw, 84px);
  overflow: hidden;
  background: linear-gradient(135deg, #ECEFE9 0%, #F5F1EB 58%, #F9F8F6 100%);
  text-align: center;
}

.tsaa-calendar-single-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.tsaa-calendar-single-hero h1 {
  margin: 0 0 16px !important;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: clamp(38px, 5vw, 58px) !important;
  line-height: 1.18 !important;
  letter-spacing: 2.5px !important;
}

.tsaa-calendar-single-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--tsaa-text-secondary, #6B6560) !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
}

.tsaa-calendar-single-main {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--tsaa-bg-main, #F9F8F6);
}

.tsaa-calendar-site-footer {
  width: 100%;
  padding: 64px max(32px, calc((100% - 1320px) / 2)) 24px;
  background: var(--tsaa-text-primary, #2C2A29) !important;
}

.tsaa-calendar-site-footer .tsaa-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 44px;
}

.tsaa-calendar-site-footer .tsaa-footer-brand img {
  width: auto;
  height: 64px;
  filter: brightness(0) invert(1);
}

.tsaa-calendar-site-footer h3,
.tsaa-calendar-site-footer p,
.tsaa-calendar-site-footer span,
.tsaa-calendar-site-footer a {
  color: #F9F8F6 !important;
}

.tsaa-calendar-site-footer h3 {
  margin: 0 0 18px !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
}

.tsaa-calendar-site-footer p {
  margin: 14px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.tsaa-calendar-site-footer .tsaa-footer-grid > div:not(.tsaa-footer-brand) p {
  display: grid;
  gap: 8px;
}

.tsaa-calendar-site-footer a {
  text-decoration: none !important;
}

.tsaa-calendar-site-footer a:hover {
  color: var(--tsaa-brand-gold, #C8A97E) !important;
}

.tsaa-calendar-site-footer .tsaa-footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(249, 248, 246, 0.20);
  font-size: 13px !important;
}

.tsaa-calendar-site-footer .tsaa-footer-legal {
  display: flex;
  gap: 18px;
}

.tsaa-calendar-site-footer .xiaobozai-footer-mascot {
  display: block !important;
  width: 68px !important;
  max-width: 68px !important;
  height: auto !important;
}

@media (max-width: 1024px) {
  .tsaa-calendar-site-nav .tsaa-nav-desktop {
    display: none;
  }

  .tsaa-calendar-site-nav .tsaa-nav-mobile {
    display: block;
  }

  .tsaa-calendar-site-footer .tsaa-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tsaa-calendar-site-footer .tsaa-footer-bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 700px) {
  .tsaa-events-calendar-shell {
    width: calc(100% - 28px);
    padding: 24px 18px;
    border-radius: 12px;
  }

  .tsaa-calendar-section-head {
    margin-bottom: 22px;
  }

  .tsaa-calendar-section-head h2 {
    font-size: 28px !important;
  }

  .tsaa-calendar-mobile-hint {
    display: block;
  }

  .tsaa-events-calendar-shell .simcal-calendar {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tsaa-events-calendar-shell .simcal-calendar-grid {
    min-width: 720px !important;
  }

  .tsaa-events-calendar-shell .simcal-day {
    min-height: 92px !important;
  }

  .tsaa-calendar-site-nav .tsaa-nav-inner {
    width: calc(100% - 28px);
    min-height: 66px;
  }

  .tsaa-calendar-site-nav .tsaa-brand img {
    height: 42px;
  }

  .tsaa-calendar-single-hero {
    padding: 58px 20px 52px;
  }

  .tsaa-calendar-single-hero h1 {
    font-size: 36px !important;
  }

  .tsaa-calendar-single-hero p {
    font-size: 16px !important;
  }

  .tsaa-calendar-single-main {
    padding: 48px 0 60px;
  }

  .tsaa-calendar-site-footer {
    padding: 48px 22px 24px;
  }

  .tsaa-calendar-site-footer .tsaa-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tsaa-calendar-site-footer .tsaa-footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tsaa-calendar-site-footer .tsaa-footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .tsaa-calendar-site-footer .xiaobozai-footer-mascot {
    width: 60px !important;
    max-width: 60px !important;
  }
}


/* Calendar single cleanup after the Simple Calendar content filter. */
body.single-calendar.postid-6366 {
  overflow-x: hidden !important;
}
body.single-calendar.postid-6366 .comment_holder,
body.single-calendar.postid-6366 .comment_form,
body.single-calendar.postid-6366 #respond,
body.single-calendar.postid-6366 .blog_holder article + .blog_like,
body.single-calendar.postid-6366 .blog_holder article .blog_like {
  display: none !important;
}

.tsaa-calendar-site-footer,
.tsaa-calendar-site-footer * {
  box-sizing: border-box;
}

.tsaa-calendar-section-head p:empty {
  display: none !important;
}

.tsaa-events-calendar-shell,
.tsaa-events-calendar-shell * {
  box-sizing: border-box;
}

@media (max-width: 700px) {
  body.page-id-6155 .tsaa-events-calendar-shell {
    width: 100%;
  }
}


/* ==========================================================================
   TSAA mobile weekly calendar
   Desktop keeps the full month grid; mobile becomes a vertical week agenda.
   ========================================================================== */
.tsaa-mobile-week-calendar {
  display: none;
}

@media (max-width: 700px) {
  .tsaa-events-calendar-shell.tsaa-week-enhanced > .tsaa-calendar-mobile-hint,
  .tsaa-events-calendar-shell.tsaa-week-enhanced > .simcal-calendar {
    display: none !important;
  }

  .tsaa-events-calendar-shell.tsaa-week-enhanced .tsaa-mobile-week-calendar {
    display: block;
    width: 100%;
  }

  .tsaa-week-toolbar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: var(--tsaa-card-radius, 12px);
    background: var(--tsaa-brand-green, #6A7B66);
  }

  body .tsaa-week-nav {
    display: inline-flex !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.58) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #FFFFFF !important;
    font-family: system-ui, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
    touch-action: manipulation;
  }

  body .tsaa-week-nav:hover,
  body .tsaa-week-nav:focus-visible {
    border-color: var(--tsaa-brand-gold, #C8A97E) !important;
    background: var(--tsaa-brand-gold, #C8A97E) !important;
    color: #FFFFFF !important;
    outline: 3px solid rgba(200, 169, 126, 0.30) !important;
    outline-offset: 2px;
  }

  body .tsaa-week-nav:disabled {
    opacity: 0.36 !important;
    cursor: not-allowed !important;
  }

  .tsaa-week-heading {
    min-width: 0;
    text-align: center;
  }

  .tsaa-week-month,
  .tsaa-week-range {
    display: block;
    color: #FFFFFF !important;
  }

  .tsaa-week-month {
    margin-bottom: 2px;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.8px;
    opacity: 0.88;
  }

  .tsaa-week-range {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    letter-spacing: 0.5px;
  }

  .tsaa-week-day-list {
    display: grid;
    gap: 10px;
  }

  .tsaa-week-day {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(200, 169, 126, 0.22);
    border-radius: var(--tsaa-card-radius, 12px);
    background: #FFFFFF;
  }

  .tsaa-week-day.is-today {
    border-color: rgba(106, 123, 102, 0.48);
    background: rgba(106, 123, 102, 0.06);
  }

  .tsaa-week-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid rgba(200, 169, 126, 0.24);
  }

  .tsaa-week-date strong {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--tsaa-text-primary, #2C2A29) !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .tsaa-week-day.is-today .tsaa-week-date strong {
    background: var(--tsaa-brand-green, #6A7B66);
    color: #FFFFFF !important;
  }

  .tsaa-week-date span {
    color: var(--tsaa-text-secondary, #6B6560) !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.3 !important;
  }

  .tsaa-week-events {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .tsaa-week-empty {
    color: var(--tsaa-text-secondary, #6B6560) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .tsaa-week-event {
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 8px;
    background: rgba(200, 169, 126, 0.14);
    color: var(--tsaa-brand-green-dark, #536251) !important;
    font-size: 14px !important;
    font-weight: 650;
    line-height: 1.55 !important;
  }

  .tsaa-week-event summary {
    position: relative;
    padding-right: 22px;
    color: var(--tsaa-brand-green-dark, #536251) !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.5 !important;
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
  }

  .tsaa-week-event summary::-webkit-details-marker {
    display: none;
  }

  .tsaa-week-event summary::after {
    content: "+";
    position: absolute;
    top: 0;
    right: 0;
    color: var(--tsaa-brand-green, #6A7B66) !important;
    font-size: 18px;
    line-height: 1.2;
  }

  .tsaa-week-event[open] summary::after {
    content: "−";
  }

  .tsaa-week-event summary:focus-visible {
    outline: 2px solid var(--tsaa-brand-green, #6A7B66);
    outline-offset: 4px;
    border-radius: 4px;
  }

  .tsaa-week-event-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(106, 123, 102, 0.18);
  }

  .tsaa-week-event-content,
  .tsaa-week-event-content p,
  .tsaa-week-event-content div,
  .tsaa-week-event-content span {
    color: var(--tsaa-text-secondary, #6B6560) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
  }

  .tsaa-week-event-content p:last-child {
    margin-bottom: 0 !important;
  }

  body .content .tsaa-week-event-content a {
    color: var(--tsaa-brand-green-dark, #536251) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsaa-mobile-week-calendar *,
  .tsaa-mobile-week-calendar *::before,
  .tsaa-mobile-week-calendar *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* Member Events: compact page header and reduce the gap before the calendar. */
body.page-id-6155 .tsaa-new.tsaa-hero {
  min-height: 0 !important;
  padding-top: 52px !important;
  padding-bottom: 40px !important;
}

body.page-id-6155 .tsaa-new.tsaa-hero .section_inner_margin {
  gap: 0 !important;
}

body.page-id-6155 .tsaa-new.tsaa-section-sage {
  padding-top: 44px !important;
}

@media (max-width: 700px) {
  body.page-id-6155 .tsaa-new.tsaa-hero {
    padding-top: 38px !important;
    padding-bottom: 30px !important;
  }

  body.page-id-6155 .tsaa-new.tsaa-section-sage {
    padding-top: 34px !important;
  }
}


/* ==========================================================================
   Footprints Page - Mascot Icon Cards & Layout Update
   ========================================================================== */
.footprint-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.footprint-icon-card {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 32px 24px !important;
  border: 1px solid rgba(200, 169, 126, 0.15) !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  text-align: left !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.footprint-card-icon {
  display: block !important;
  width: 70px !important;
  max-width: 70px !important;
  height: 70px !important;
  margin: 0 0 20px !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
}

.footprint-card-sub {
  margin: 0 0 6px !important;
  color: var(--tsaa-brand-gold-dark, #B39267) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 1px !important;
}

.footprint-card-title {
  margin: 0 0 12px !important;
  color: var(--tsaa-text-primary, #2C2A29) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.footprint-card-desc {
  margin: 0 !important;
  color: var(--tsaa-text-secondary, #6B6560) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.footprint-cta-wrapper {
  margin-top: 50px !important;
  margin-bottom: 40px !important;
  text-align: center !important;
}

.footprint-cta-wrapper .tsaa-btn {
  min-height: 48px !important;
  padding-inline: 30px !important;
  border-radius: 999px !important;
}

.tsaa-ig-feed-container {
  margin-top: 60px !important;
  padding-top: 40px !important;
  border-top: 1px dashed rgba(200, 169, 126, 0.3) !important;
  text-align: center !important;
}

.tsaa-ig-feed-container h2 {
  margin-bottom: 10px !important;
}

.tsaa-ig-feed-container > p {
  max-width: 620px !important;
  margin: 0 auto 24px !important;
}

.tsaa-ig-feed-slot {
  min-height: 140px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

@media (hover: hover) and (pointer: fine) {
  .footprint-icon-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(106, 123, 102, 0.12) !important;
  }

  .footprint-icon-card:hover .footprint-card-icon {
    transform: scale(1.1) rotate(3deg) !important;
  }
}

@media (max-width: 900px) {
  .footprint-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .footprint-card-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footprint-icon-card {
    padding: 28px 22px !important;
  }

  .footprint-card-icon {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    margin-bottom: 16px !important;
  }

  .footprint-cta-wrapper {
    margin-top: 40px !important;
    margin-bottom: 32px !important;
  }

  .tsaa-ig-feed-container {
    margin-top: 44px !important;
    padding-top: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footprint-icon-card,
  .footprint-card-icon {
    transition: none !important;
    transform: none !important;
  }
}


/* Footprints: reuse the homepage Instagram module. */
.page-id-6154 .tsaa-home-instagram-block {
  width: 100%;
  padding-top: 8px;
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.page-id-6154 .tsaa-instagram-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px !important;
}

.page-id-6154 .tsaa-instagram-heading .xiaobozai-inline-heading-mascot {
  flex: 0 0 auto;
  width: 86px !important;
  max-width: 86px !important;
  height: 86px !important;
  margin: 0 !important;
  object-fit: contain;
}

.page-id-6154 .tsaa-instagram-heading span {
  display: block;
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-insta-wrap {
  width: 100%;
}

.page-id-6154 .tsaa-home-instagram-block .sbi_error,
.page-id-6154 .tsaa-home-instagram-block .sbi_mod_error,
.page-id-6154 .tsaa-home-instagram-block #sbi_mod_error {
  display: none !important;
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-insta-fallback {
  padding: 40px;
  border: 0;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-insta-fallback strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tsaa-text-primary, #2C2A29);
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-insta-fallback p {
  max-width: 720px;
  margin: 10px 0 24px;
  color: var(--tsaa-text-secondary, #6B6560);
}

.page-id-6154 .tsaa-home-instagram-block .tsaa-insta-wrap:has(.sbi_item) + .tsaa-insta-fallback {
  display: none;
}

@media (max-width: 700px) {
  .page-id-6154 .tsaa-home-instagram-block .tsaa-insta-fallback {
    min-height: 0;
    padding: 28px 24px;
  }

  .page-id-6154 .tsaa-instagram-heading {
    gap: 12px;
  }

  .page-id-6154 .tsaa-instagram-heading .xiaobozai-inline-heading-mascot {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }
}
