:root {
  color-scheme: light;
  --ink: #122e28;
  --muted: #466057;
  --dark: #112e29;
  --dark-panel: #1b4037;
  --paper: #f8faf6;
  --line: #d6e2d7;
  --mint: #c6f3a7;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #246f53; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
h1, h2, h3 { line-height: 1.28; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4.2vw, 3.15rem); letter-spacing: -.045em; }
h3 { font-size: 1.15rem; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  background: white;
  padding: .6rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.4rem;
  padding-block: .75rem;
}
.wordmark { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; text-decoration: none; }
.wordmark strong { font-size: 1.25rem; letter-spacing: -.05em; }
.wordmark span { font-size: .875rem; }
nav { display: flex; gap: 1rem; font-size: .9375rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero, .practice { background: var(--dark); color: #fff; }
.hero { padding-block: clamp(3.4rem, 8vw, 7rem); }
.hero-grid { display: grid; gap: 2.4rem; align-items: end; }
.eyebrow { font-size: .9rem; font-weight: 800; color: #276248; letter-spacing: .07em; }
.hero .eyebrow, .practice .eyebrow { color: var(--mint); }
.hero .eyebrow span { opacity: .75; }
.hero h1 {
  margin-block: .85rem 1.2rem;
  font-size: clamp(1.9rem, 5.65vw, 4.45rem);
  letter-spacing: -.055em;
  line-height: 1.18;
  text-wrap: initial;
}
.hero-copy { max-width: 39rem; color: #e0ebe3; font-size: clamp(1rem, 2vw, 1.125rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .68rem 1.15rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.button-line { background: var(--mint); color: var(--ink); }
.button-line:hover { background: #a9e785; }
.button-outline { border-color: currentColor; }
.button-outline:hover { background: rgba(115, 172, 141, .2); }
.hero :focus-visible, .enquiry :focus-visible { outline-color: white; }
.hero-facts {
  background: var(--dark-panel);
  border: 1px solid #517565;
  border-radius: 1rem;
  padding: .25rem 1.15rem;
  color: #f0f8ef;
}
.hero-facts div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem 1rem; padding-block: .55rem; }
.hero-facts div + div { border-top: 1px solid #517565; }
.hero-facts dd { white-space: nowrap; }
.hero-facts strong { color: var(--mint); font-size: 2.1rem; line-height: 1.15; font-variant-numeric: tabular-nums; }

.section { padding-block: clamp(3.6rem, 7vw, 6.5rem); }
.section-head { max-width: 47rem; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 43rem; }
.course-grid { display: grid; gap: 1rem; }
.course {
  padding: clamp(1.1rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-top: 4px solid #358569;
  border-radius: 1rem;
  background: white;
  scroll-margin-top: 1rem;
}
.course:nth-child(2) { border-top-color: #477264; }
.course:target { outline: 3px solid #367a5c; outline-offset: 3px; }
.course-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .55rem; }
.course-heading h3 { font-size: clamp(1.3rem, 3.5vw, 1.75rem); }
.course-heading p, .price span, .fee-note { color: var(--muted); }
.status {
  background: #e5f5df;
  border-radius: 2rem;
  padding: .2rem .68rem;
  color: #17543a;
  font-weight: 750;
  font-size: .9rem;
  white-space: nowrap;
}
.price { margin-block: .8rem; }
.price strong { font-size: 2rem; letter-spacing: -.04em; }
.price span { font-size: .9375rem; margin-inline-start: .35rem; }
.course-data { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .55rem; }
.course-data div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .3rem .55rem; }
.course-data dt { font-weight: 750; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); gap: .25rem .5rem; padding: 0; list-style: none; }
time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.course-note {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: .7rem;
  background: #e9f1e7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .35rem 1rem;
}
.course-note a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
address { font-style: normal; }
.fee-note { margin-top: .7rem; font-size: .9375rem; }

.teaching { background: #eaf2e9; }
.teaching-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; list-style: none; padding: 0; }
.teaching-grid li { padding: 1.2rem; border-radius: .85rem; background: var(--paper); }
.teaching-grid svg { width: 2rem; height: 2rem; color: #216449; margin-bottom: .5rem; }
.teaching-grid p { margin-top: .5rem; color: var(--muted); }

.practice .section-head p:not(.eyebrow) { color: #e0ebe3; }
.steps { --connector: #9ac5a6; display: grid; gap: .8rem; list-style: none; padding: 0 0 0 1.35rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: .35rem; border-left: 2px solid var(--connector); }
.steps li { position: relative; background: var(--dark-panel); padding: .85rem 1rem; border-radius: .65rem; }
.steps li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--mint);
  position: absolute;
  left: -1.2rem;
  top: 1rem;
}
.steps li:last-child { background: var(--mint); color: var(--ink); }
.steps span { display: block; color: #ccede1; font-size: .9rem; }
.steps li:last-child span { color: #23523f; }
.steps strong { display: block; margin-block: .12rem; font-size: 1.2rem; }
.practice figcaption { margin: .9rem 0 0 1.35rem; color: #e0ebe3; }

.faq-grid { display: grid; gap: 1.5rem; }
.faq-grid .section-head { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding-block: .85rem;
  list-style: none;
  font-weight: 750;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: .6rem;
  height: .6rem;
  margin-inline-end: .25rem;
  flex: none;
  border: solid #276248;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 1.3rem 1rem 0; color: var(--muted); }
.enquiry { padding: clamp(1.25rem, 4vw, 2.15rem); border-radius: 1rem; background: var(--dark-panel); color: white; }
.enquiry h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); text-wrap: initial; }
.enquiry .actions { margin-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); font-size: .9375rem; }
.site-footer .footer-inner { justify-content: flex-start; }

@media (max-width: 25rem) {
  .hero .actions, .enquiry .actions { display: grid; }
  .course-data div { grid-template-columns: 4.6rem minmax(0, 1fr); }
}
@media (min-width: 36rem) {
  .teaching-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .wrap { width: min(100% - 4rem, 70rem); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 2.25fr) minmax(14rem, 1fr); gap: 2rem; }
  .hero h1 { font-size: clamp(2.45rem, 5.55vw, 4.45rem); }
  .hero-facts { padding: .4rem 1.4rem; }
  .hero-facts div { padding-block: .9rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1.45rem 0 0; }
  .steps::before { top: .4rem; bottom: auto; left: 1rem; right: 1rem; border: 0; border-top: 2px solid var(--connector); }
  .steps li::before { left: 1rem; top: -1.3rem; }
  .practice figcaption { margin-inline-start: 0; }
  .faq-grid { grid-template-columns: minmax(14rem, 1fr) minmax(0, 1.65fr); gap: 1.75rem 3.5rem; }
  .enquiry { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
  .enquiry .actions { margin: 0; }
}
@media (min-width: 62rem) {
  .teaching-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
