/* Option C — sky / amtb.tw-inspired chrome. B content + menu unchanged. */
.theme-c {
  --nav-blue: #2f7eb8;
  --nav-blue-hover: #3d8fc9;
  --accent: #7ec8f0;
  --bg: #f4f9fd;
  --sky: #6ec4ef;
  --sky-deep: #4aaee4;
  --ink: #2a3a48;
}

.theme-c body,
body.theme-c {
  background: var(--bg);
  color: var(--ink);
}

.theme-c .brand-text strong {
  color: #2a6aa5;
}

.theme-c .lang-switch button[aria-pressed="true"] {
  background: #3d8fc9;
}

.theme-c .mainnav {
  background: linear-gradient(180deg, #7ec8f0 0%, #5eb6e6 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.theme-c .nav-list > li > a:hover,
.theme-c .nav-list > li > button:hover,
.theme-c .nav-list > li:focus-within > a,
.theme-c .nav-list > li:focus-within > button {
  background: rgba(255, 255, 255, 0.22);
}

.theme-c .nav-list > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.28);
}

.theme-c .dropdown a:hover {
  background: #eef7fc;
  color: #2a6aa5;
}

.theme-c .section-title,
.theme-c .page-header h1,
.theme-c .prose h2,
.theme-c .card-title {
  color: #2a6aa5;
}

.theme-c .section-title::after {
  background: #7ec8f0;
}

/* Annual page holds the homepage activity grid on the same sky background. */
.theme-c .annual-page.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.25rem 0 0;
}

.theme-c .annual-page .section-title {
  text-align: center;
  font-size: 1.45rem;
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.theme-c .annual-page .home-grid {
  align-items: start;
}

/* Chant cards: one Chinese form at a time; English hides the Chinese title. */
.theme-c .chant-hans {
  display: none !important;
}

html[data-lang="zh-Hans"] .theme-c .chant-hant {
  display: none !important;
}

html[data-lang="zh-Hans"] .theme-c .chant-hans {
  display: block !important;
}

html[data-lang="en"] .theme-c .chant-hant,
html[data-lang="en"] .theme-c .chant-hans {
  display: none !important;
}

.theme-c .btn {
  background: #2f7eb8;
  color: #fff !important;
}

.theme-c .btn:hover {
  background: #256a9c;
  color: #fff !important;
}

.theme-c .btn.btn-outline {
  background: transparent !important;
  color: #1f5f8c !important;
  border: 1px solid #2f7eb8;
}

.theme-c .btn.btn-outline:hover {
  background: rgba(47, 126, 184, 0.1) !important;
  color: #1f5f8c !important;
}

.theme-c .site-footer {
  background: #3a7eb0;
  color: #e7f4fb;
}

.theme-c .site-footer .social-facebook path {
  fill: #fff;
}

.theme-c .footer-copy {
  color: #c5e0f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.8rem;
}

.theme-c .footer-updated {
  color: #d7ebf6;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.theme-c .footer-version {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

/* Sky hero */
.theme-c .hero-sky {
  background: #fff;
}

.theme-c .hero-sky .hero-slide {
  aspect-ratio: 12 / 5;
  min-height: 280px;
  background: #fff;
}

.theme-c .hero-slide-calligraphy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-c .hero-slide-calligraphy img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  width: auto;
  height: auto;
  max-width: calc(100% - 7.5rem);
  max-height: 86%;
}

.theme-c .hero-slide-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.theme-c .hero-slide-portrait img {
  object-fit: contain;
  object-position: center;
  width: auto;
  height: auto;
  max-width: calc(100% - 7.5rem);
  max-height: 94%;
}

.theme-c .sky-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #5eb8ec 0%, #8fd2f4 42%, #d7eefb 100%);
  overflow: hidden;
}

.theme-c .sky-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.theme-c .hero-vert {
  position: absolute;
  right: 7%;
  top: 12%;
  bottom: 16%;
  z-index: 2;
  writing-mode: vertical-rl;
  color: #fff;
  text-shadow: 0 2px 14px rgba(20, 80, 130, 0.28);
  display: flex;
  flex-direction: row;
  gap: 1.4rem;
}

html[data-lang="zh-Hant"] .theme-c .hero-vert.lang-zh,
html[data-lang="zh-Hans"] .theme-c .hero-vert.lang-zh,
html:not([data-lang]) .theme-c .hero-vert.lang-zh,
html[data-lang="en"] .theme-c .hero-vert.lang-en {
  display: flex !important;
}

html[data-lang="en"] .theme-c .hero-vert {
  writing-mode: horizontal-tb;
  text-align: right;
  max-width: 22rem;
  flex-direction: column;
  gap: 0.65rem;
}

.theme-c .hero-vert-title {
  margin: 0;
  font-family: "Noto Serif TC", "Songti SC", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.2;
}

.theme-c .hero-vert-cols {
  display: flex;
  gap: 0.85rem;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  letter-spacing: 0.18em;
  line-height: 1.9;
  font-weight: 500;
}

.theme-c .hero-vert-cols p {
  margin: 0;
}

html[data-lang="en"] .theme-c .hero-vert-title {
  letter-spacing: 0.04em;
}

html[data-lang="en"] .theme-c .hero-vert-cols {
  flex-direction: column;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.theme-c .hero-btn {
  background: rgba(255, 255, 255, 0.88);
  color: #2a6aa5;
}

.theme-c .hero-dots button {
  background: rgba(42, 106, 165, 0.28);
  box-shadow: 0 0 0 1px rgba(42, 106, 165, 0.45);
}

.theme-c .hero-dots button[aria-current="true"] {
  background: #2a6aa5;
}

/* Posters between the carousel and the feature cards */
.theme-c .section-notices {
  padding-top: 2rem;
}

.theme-c .notice-grid {
  display: grid;
  /* Column widths follow the posters (724×1024 and 685×1024) so both render at the same height. */
  grid-template-columns: 724fr 685fr;
  gap: 1.25rem;
  align-items: start;
}

.theme-c .notice-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(80, 150, 200, 0.12);
}

.theme-c a.notice-card {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-c a.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(80, 150, 200, 0.2);
}

.theme-c .notice-card img {
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .theme-c .notice-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature cards */
.theme-c .section-features {
  padding-top: 2.25rem;
}

.theme-c .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.theme-c .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #eaf4fb;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.45rem;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 8px 24px rgba(80, 150, 200, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-c .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(80, 150, 200, 0.16);
  text-decoration: none !important;
  color: inherit;
}

.theme-c .feature-photo {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 4px 16px rgba(80, 140, 190, 0.12);
}

.theme-c .feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.theme-c .feature-card h3 {
  margin: 1.05rem 0 0.2rem;
  color: #2a6aa5;
  font-size: 1.28rem;
  font-weight: 700;
}

.theme-c .feature-en {
  margin: 0;
  color: #8aa4b8;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

@media (max-width: 960px) {
  .theme-c .hero-sky .hero-slide {
    aspect-ratio: 2 / 1;
    min-height: 0;
  }

  .theme-c .feature-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .theme-c .nav-list {
    background: #5eb6e6;
  }

  .theme-c .hero-vert {
    right: 5%;
    top: 10%;
  }

  .theme-c .hero-vert-title {
    letter-spacing: 0.16em;
  }
}

.theme-c .about-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-c .about-heading .seal {
  width: 64px;
  height: auto;
  flex: none;
}

.theme-c .about-heading h1 {
  margin: 0;
}

.theme-c .about-top {
  display: block;
}

.theme-c .about-split {
  grid-template-columns: minmax(240px, 46%) 1fr;
  align-items: start;
}

@media (max-width: 960px) {
  .theme-c .about-split {
    grid-template-columns: 1fr;
  }

  .theme-c .about-split .flyer {
    width: 100%;
    max-width: 420px;
    height: auto;
  }
}

.theme-c .about-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

html[data-lang="zh-Hans"] .theme-c .reno .lang-zh {
  display: none !important;
}

html[data-lang="zh-Hans"] .theme-c .reno .lang-hans,
html[data-lang="zh-Hant"] .theme-c .reno .lang-hans,
html[data-lang="en"] .theme-c .reno .lang-hans,
html:not([data-lang]) .theme-c .reno .lang-hans {
  display: none !important;
}

html[data-lang="zh-Hans"] .theme-c .reno .lang-hans {
  display: block !important;
}

.theme-c .reno-lead {
  font-size: 1.05rem;
  line-height: 1.85;
}

.theme-c .reno-points {
  margin: 0.4rem 0 1rem;
  padding-left: 1.25rem;
}

.theme-c .reno-points li {
  margin: 0.4rem 0;
  line-height: 1.75;
}

.theme-c .reno-close {
  margin-top: 0.25rem;
}

.theme-c .reno h2 {
  margin: 1.8rem 0 0.7rem;
}

.theme-c .reno-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 0.5rem;
}

.theme-c .reno-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(47, 126, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 8px 24px rgba(31, 95, 140, 0.08);
}

.theme-c a.reno-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-c a.reno-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 95, 140, 0.16);
  text-decoration: none !important;
}

.theme-c .reno-card.is-wide {
  grid-column: 1 / -1;
}

.theme-c .reno-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #eef6fb;
  overflow: hidden;
}

.theme-c .reno-card.is-wide .reno-card-media {
  aspect-ratio: 16 / 7;
  background: #fff;
}

.theme-c .reno-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-c .reno-card.is-wide .reno-card-media img {
  object-fit: contain;
}

.theme-c .reno-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 3px solid #2f7eb8;
}

.theme-c .reno-card-title {
  font-weight: 700;
  color: #1f5f8c;
  line-height: 1.45;
}

.theme-c .reno-card-cta {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: #2f7eb8;
}

.theme-c .reno-note {
  margin: 0.2rem 0 0.4rem;
  padding: 0.9rem 1rem;
  background: #f4f9fd;
  border-left: 3px solid #7ec8f0;
  border-radius: 8px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .theme-c .reno-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .theme-c .reno-grid {
    grid-template-columns: 1fr;
  }

  .theme-c .reno-card.is-wide .reno-card-media {
    aspect-ratio: 16 / 10;
  }
}

/* Teachers introduction */
.theme-c .masters-page {
  padding-top: 0.25rem;
}

html[data-lang="en"] .theme-c .zh-narrative,
html[data-lang="en"] .theme-c .toc-zh,
html[data-lang="en"] .theme-c .pure-zh-only {
  display: none !important;
}

.theme-c .official-copy h2 {
  margin-top: 1.6rem;
}

.theme-c .official-copy p {
  line-height: 1.85;
}

.theme-c .master-hero {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.theme-c .master-hero-photo {
  margin: 0;
  background: #f7fbfe;
  border: 1px solid #d5e8f5;
  border-radius: 14px;
  overflow: hidden;
}

.theme-c .master-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.theme-c .master-kicker {
  margin: 0;
  color: var(--nav-blue);
  letter-spacing: 0.22em;
  font-size: 0.92rem;
}

.theme-c .master-motto {
  margin: 0.35rem 0 0.85rem;
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.14em;
  line-height: 1.45;
}

.theme-c .master-hero-copy .lead {
  margin-top: 0;
}

.theme-c .master-toc {
  position: sticky;
  top: 46px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 1.4rem;
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.94);
}

.theme-c .master-toc a {
  text-decoration: none;
  border: 1px solid #c5dff0;
  border-radius: 999px;
  padding: 0.28rem 0.78rem;
  font-size: 0.86rem;
  color: var(--nav-blue);
  background: #f4f9fd;
}

.theme-c .master-toc a:hover {
  background: var(--nav-blue);
  color: #fff;
  text-decoration: none;
}

.theme-c .masters-page h2 {
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  letter-spacing: 0.06em;
}

.theme-c .master-archive {
  margin: 1.1rem 0 0;
}

.theme-c .master-archive img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #d5e8f5;
  background: #f7f4ee;
}

.theme-c .master-archive figcaption {
  margin-top: 0.4rem;
  color: #5d7282;
  font-size: 0.88rem;
}

.theme-c .mentor-grid,
.theme-c .vision-grid,
.theme-c .text-grid,
.theme-c .provision-grid,
.theme-c .practice-grid,
.theme-c .patriarch-grid,
.theme-c .story-grid {
  display: grid;
  gap: 0.9rem;
}

.theme-c .mentor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.theme-c .mentor-card,
.theme-c .vision-card,
.theme-c .text-card,
.theme-c .provision-card,
.theme-c .practice-card,
.theme-c .patriarch-card,
.theme-c .story-card {
  border: 1px solid #d5e8f5;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.9rem 1rem;
}

.theme-c .mentor-card {
  margin: 0;
  text-align: center;
}

.theme-c .mentor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  background: #f4f7fa;
}

.theme-c .mentor-card figcaption {
  margin-top: 0.55rem;
}

.theme-c .mentor-card strong,
.theme-c .patriarch-card h3,
.theme-c .story-card h3,
.theme-c .vision-card h3,
.theme-c .text-card h3,
.theme-c .practice-card h3,
.theme-c .provision-card h3 {
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  font-size: 1.05rem;
  margin: 0.15rem 0;
}

.theme-c .mentor-role,
.theme-c .patriarch-ord,
.theme-c .story-card .eyebrow {
  margin: 0;
  color: var(--nav-blue);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.theme-c .vision-grid,
.theme-c .text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.theme-c .vision-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.theme-c .vision-photos figure {
  margin: 0;
}

.theme-c .vision-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f7fa;
}

.theme-c .vision-photos figcaption {
  margin-top: 0.3rem;
  color: #5d7282;
  font-size: 0.78rem;
  line-height: 1.45;
}

.theme-c .vision-card p,
.theme-c .text-card p,
.theme-c .practice-card p,
.theme-c .story-card p,
.theme-c .masters-page .lang-zh p,
.theme-c .masters-page .lang-en p {
  line-height: 1.85;
}

.theme-c .master-creed {
  margin: 1rem 0 0.4rem;
  padding: 0.95rem 1.1rem;
  background: #f4f9fd;
  border-left: 3px solid var(--sky);
  border-radius: 8px;
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  line-height: 1.85;
}

.theme-c .school-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.theme-c .school-book {
  margin: 0.2rem 0 0;
}

.theme-c .school-book img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(42, 58, 72, 0.12);
}

.theme-c .provision-grid,
.theme-c .practice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.theme-c .practice-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-c .provision-card ol,
.theme-c .practice-card ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.theme-c .provision-card li,
.theme-c .practice-card li {
  margin: 0.28rem 0;
  line-height: 1.7;
}

.theme-c .land-note {
  margin: 0.7rem 0 0;
  color: #3d6178;
  font-size: 0.92rem;
}

.theme-c .harmony-art {
  margin: 0.6rem 0 0;
}

.theme-c .harmony-art img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.theme-c .patriarch-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-items: start;
}

.theme-c .patriarch-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f7f4ee;
  border-radius: 8px;
}

.theme-c .patriarch-years {
  margin: 0.15rem 0 0.35rem;
  color: #5d7282;
  font-size: 0.86rem;
}

.theme-c .masters-page details {
  margin-top: 0.45rem;
}

.theme-c .masters-page summary {
  cursor: pointer;
  color: var(--nav-blue);
  font-size: 0.9rem;
}

.theme-c .masters-page summary .when-open {
  display: none;
}

.theme-c .masters-page details[open] summary .when-closed {
  display: none;
}

.theme-c .masters-page details[open] summary .when-open {
  display: inline;
}

.theme-c .masters-page details p {
  margin: 0.7rem 0 0;
}

.theme-c .story-grid {
  grid-template-columns: 1fr;
}

.theme-c .master-cite {
  color: #5d7282;
  font-size: 0.88rem;
}

.theme-c .master-note {
  color: #5d7282;
  font-size: 0.88rem;
}

.theme-c .masters-page .teach-video-grid {
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .theme-c .master-hero,
  .theme-c .school-layout,
  .theme-c .mentor-grid,
  .theme-c .vision-grid,
  .theme-c .text-grid,
  .theme-c .provision-grid,
  .theme-c .practice-grid,
  .theme-c .practice-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .theme-c .school-book {
    max-width: 180px;
  }
}
