/* Shared frontend components: controls, forms, directories and reading layouts. */
:root { --control-height: 56px; --control-border: #a2aca3; --control-bg: #fffef9; }
.btn { min-height: var(--control-height); padding: 16px 24px; line-height: 1.35; gap: 24px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  min-width: 0; max-width: 100%; min-height: var(--control-height); padding: 14px 16px;
  border: 1px solid var(--control-border); border-radius: 4px; background-color: var(--control-bg);
  color: var(--ink); font: 400 18px/1.45 var(--body); box-shadow: 0 1px 2px #101a1904;
}
select, .finder-controls select {
  -webkit-appearance: none; appearance: none; height: var(--control-height); padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23243d31' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; cursor: pointer;
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #24573e; outline-offset: 3px; border-color: #24573e;
}
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #a23020; }
textarea { min-height: 144px; }
input[type=checkbox] { width: 22px; height: 22px; margin: 3px 0 0; }
.field-errors { padding: 0; margin-top: 8px; font-size: 16px; line-height: 1.5; }
.field-errors:empty { display: none; }
.form-grid { gap: 24px; }
.form-grid .form-row { margin: 0; }
.form-row label { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.form-row--check { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; grid-column: 1/-1; }
.form-row--check label { font-size: 17px; margin: 0; }
.form-row--check .field-errors { grid-column: 2; }
.form-row--check a { text-decoration: underline; text-underline-offset: 3px; }
.form-shell { background: #e8ece5; border: 1px solid #d3dcd1; border-radius: 6px; max-width: 960px; margin-inline: auto; padding: 44px; }
.form-shell>.prose { margin-bottom: 16px; }
.form-section { padding: 28px 0 36px; min-width: 0; }
.form-section + .form-section { border-top: 1px solid #ccd5c9; }
.form-section legend { float: left; width: 100%; font: 600 28px/1.25 var(--display); padding: 0; margin-bottom: 22px; }
.form-section legend + * { clear: both; }
.form-actions { align-items: center; margin-top: 26px; }
.selected-choice { font-size: 16px; line-height: 1.6; margin-top: 10px; color: #46594b; overflow-wrap: anywhere; }
.team-finder { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding: 28px; border: 1px solid #d3dcd1; border-left: 4px solid var(--orange); border-radius: 4px; background: #fffef9; }
.team-finder>div { min-width: 0; }
.team-finder label { font-size: 22px; line-height: 1.4; }
.team-finder p { font-size: 18px; line-height: 1.6; }
.finder-controls { display: grid; grid-template-columns: 166px auto; gap: 12px; min-width: 0; align-items: center; }
.finder-controls select { width: 100%; min-width: 0; height: var(--control-height); background-color: #f4f6ef; font-size: 18px; }
.finder-controls .btn { height: var(--control-height); min-height: 0; padding: 14px 22px; font-size: 16px; }
.menu-panel { max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.desktop-nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 10px; text-decoration-thickness: 2px; }
.page-hero + .divider { display: none; }
.page-hero-title { line-height: 1.02; }
.breadcrumb { flex-wrap: wrap; line-height: 1.5; row-gap: 5px; }
.page-news_detail .page-hero-title, .page-event_detail .page-hero-title, .page-gallery_album_detail .page-hero-title { font-size: clamp(42px,5.6vw,76px); max-width: 1100px; overflow-wrap: normal; }
.section .news-featured__title, .section .events-featured__title { font-size: clamp(34px,3.7vw,50px); line-height: 1.1; margin-bottom: 22px; }
.news-featured, .events-featured { padding-top: 10px; }
.news-featured .ratio-hero, .events-featured .ratio-hero { aspect-ratio: 4/3; }
.section .archive-card .row-title { font-size: clamp(32px,3vw,44px); line-height: 1.15; }
.news-prose { margin-left: 0; }
.page-news_detail .section>p.lead { max-width: 850px; }
.section .section-title, .section>h2 { margin-bottom: 28px; }
.hero-bullets, .aside-list, .aside-footnote { font-size: 18px; line-height: 1.7; }
.about-body-split { grid-template-columns: minmax(0,1.8fr) minmax(240px,1fr); gap: 64px; }
.aside-box { background: #e8ece5; border-top: 3px solid #294b37; padding: 30px; }
.aside-list a { text-decoration: underline; text-underline-offset: 4px; }
.page-methodology .prose { max-width: 850px; }
.methodology-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 45px; margin-top: 30px; }
.methodology-section h2 { font-size: 32px; line-height: 1.2; }
.methodology-section p { font-size: 18px; }
.contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0,1.1fr); gap: 70px; align-items: start; }
.contact-left h3 { margin-top: 32px; }
.contact-form-card { background: #e8ece5; border: 1px solid #d3dcd1; border-radius: 6px; padding: 36px; }
.contact-form-card .form-grid { grid-template-columns: 1fr; }
.contact-form-card .form-title { font-size: 32px; margin-bottom: 12px; }
.contact-form-note { font-size: 16px; color: #46594b; margin-bottom: 26px; }
.contact-form-card .btn-quiet { padding-inline: 0; font-size: 16px; }
.contact-form-card .form-actions { gap: 16px 24px; }
.contact-left .prose { padding-top: 24px; }
.registration-actions { margin-bottom: 30px; }
.registration-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 22px 0; border-block: 1px solid var(--line); margin: 24px 0 0; }
.registration-progress li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: #5b675c; }
.registration-progress span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #a2aca3; border-radius: 50%; font-variant-numeric: tabular-nums; }
.registration-progress [aria-current=step] { color: #183c31; font-weight: 600; }
.registration-progress [aria-current=step] span { background: #183c31; color: white; border-color: #183c31; }
.page-registration #packages-heading { scroll-margin-top: 30px; }
.page-registration .pricing-wrap { max-width: 960px; }
.pricing-table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.registration-schedule { max-width: 960px; border: 1px solid #d3dcd1; background: #e8ece5; padding: 0 24px; margin-top: 24px; border-radius: 4px; }
.registration-schedule summary { padding: 21px 0; font-size: 18px; font-weight: 600; }
.registration-schedule .prose { max-width: none; padding: 10px 0 24px; }
.registration-slots li { grid-template-columns: 80px 180px minmax(0,1fr); gap: 20px; }
.form-shell .form-actions .btn { min-width: 200px; }
.program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.program-grid .program-card { display: flex; flex-direction: column; align-items: stretch; gap: 22px; border: 1px solid #d3dcd1; background: #fffef9; padding: 0 0 25px; }
.program-card>div:first-child { padding: 0 24px; }
.program-card>div:nth-child(2) { order: -1; }
.program-card .media-frame { aspect-ratio: 4/3; }
.section .program-card .row-title { font-size: 36px; margin: 0; }
.program-card .row-meta { font-size: 18px; margin: 10px 0 0; }
.program-card .muted { font-size: 18px; }
.program-card .text-link { margin: auto 24px 0; align-self: start; }
.directory-result { display: flex; gap: 20px; align-items: center; justify-content: space-between; font-size: 18px; padding: 10px 0; }
.directory-result a { text-decoration: underline; text-underline-offset: 4px; }
.schedule-title>.muted { font: 400 18px/1.6 var(--body); }
.week-session__program { font-weight: 600; }.week-session__program>.muted { font-weight: 400; }
.site-outro { padding: 36px 0 46px; }.site-outro-grid { gap: 40px; }
@media(max-width:1050px) {
  .team-finder { grid-template-columns: 1fr; gap: 20px; }
  .finder-controls { grid-template-columns: minmax(140px,200px) max-content; justify-content: start; width: 100%; }
  .contact-grid { gap: 35px; }.contact-form-card { padding: 28px; }
  .program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .contact-grid, .about-body-split { grid-template-columns: 1fr; gap: 36px; }
  .form-shell { padding: 30px; }
  .registration-slots li { grid-template-columns: 70px 160px minmax(0,1fr); }
}
@media(max-width:600px) {
  .team-finder { padding: 22px 18px; }
  .team-finder label { font-size: 21px; }
  .finder-controls { grid-template-columns: minmax(110px,1fr) auto; gap: 10px; }
  .finder-controls .btn { padding-inline: 16px; gap: 12px; }
  .finder-controls select { padding-left: 14px; padding-right: 38px; background-position: right 12px center; }
  .program-grid, .methodology-stack { grid-template-columns: 1fr; }
  .program-grid { gap: 24px; }
  .form-shell, .contact-form-card { padding: 26px 20px; }
  .form-grid, .form-grid--2 { grid-template-columns: 1fr; }
  .form-section { padding-bottom: 30px; }
  .form-section legend { font-size: 28px; }
  .registration-progress { gap: 12px 16px; }
  .registration-progress li { font-size: 14px; }
  .registration-progress span { width: 26px; height: 26px; }
  .registration-schedule { padding-inline: 18px; }
  .registration-slots li { grid-template-columns: 70px minmax(0,1fr); gap: 8px 15px; }
  .registration-slots li>span:last-child { grid-column: 2; }
  .form-actions>.btn { width: 100%; justify-content: center; }
  .contact-form-card .btn-quiet { width: auto; }
  .hero-bullets, .aside-list { font-size: 18px; }
  .directory-result { align-items: flex-start; flex-direction: column; gap: 5px; }
  .week-day__title { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
  .week-session { padding: 22px 18px; gap: 14px; }
  .site-outro-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-news_detail .page-hero-title, .page-event_detail .page-hero-title, .page-gallery_album_detail .page-hero-title { font-size: 44px; }
}
@media(max-width:380px) {
  .finder-controls { grid-template-columns: 1fr; }
  .finder-controls select { width: 100%; }
  .finder-controls .btn { width: 100%; justify-content: space-between; }
  .registration-progress { display: grid; gap: 10px; }
}
@media(forced-colors:active) { select { appearance: auto; background-image: none; } }

.section .album-card__title{font-size:32px;line-height:1.18;margin:0}.album-card__body{padding:20px 0}.album-card__meta{font-size:16px;line-height:1.6}.reg-summary-val{min-width:0;overflow-wrap:anywhere}.reg-summary-key{font-size:16px}.reg-ref{display:flex;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:18px}.reg-ref-label{font-size:16px;color:var(--muted)}.reg-ref-id{font-weight:700}.reg-success-card .toolbar{flex-wrap:wrap}.form-row--check label{min-height:44px}
.form>.form-section:first-of-type{padding-top:12px}.reg-summary-row dd{margin:0;min-width:0;overflow-wrap:anywhere}.page-registration_success .page-hero>.container{width:100%;margin:0}.page-registration_success .reg-summary-row dt{font-size:16px;color:var(--muted)}.error-summary:focus{outline:2px solid #9b2516;outline-offset:4px}.error-summary a{text-decoration:underline;text-underline-offset:3px}

/* Summary screens share the same space and type scale as the entry form. */
.reg-success-card { padding: 32px; border: 1px solid #d3dcd1; border-radius: 6px; background: #e8ece5; }
.reg-ref { align-items: center; padding: 0 0 22px; margin: 0 0 18px; background: transparent; }
.reg-success-card .pay-cap, .reg-ref-hint { font-size: 16px; line-height: 1.6; }
.reg-success-card .toolbar { gap: 16px; }
@media(max-width:600px) {
  .reg-success-card { padding: 26px 20px; }
  .reg-success-card .toolbar, .reg-success-card .toolbar form { width: 100%; }
  .reg-success-card .toolbar .btn { width: 100%; justify-content: center; }
}
/* The holiday calendar remains readable even when there are no training sessions. */
.holiday-calendar{background:#edf1e5;border:1px solid #d3ddc6;padding:clamp(24px,4vw,56px)!important;margin-block:48px;border-radius:4px;color:#172e26}.holiday-calendar-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:start}.holiday-calendar-heading h2{font-size:clamp(32px,4vw,54px);line-height:1.1;margin:12px 0 18px}.holiday-calendar-heading p{max-width:720px;font-size:18px;line-height:1.65}.holiday-year-picker{min-width:220px}.holiday-year-picker label{display:block;font-size:17px;font-weight:600;margin-bottom:10px}.holiday-year-picker>div{display:flex;gap:8px}.holiday-year-picker select{min-width:105px}.holiday-breaks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:30px}.holiday-break{background:#fff;border:1px solid #d2dcc9;border-top:4px solid #c9632d;padding:24px}.holiday-break-status{font-size:13px;letter-spacing:.08em;font-weight:700;color:#804422}.holiday-break h3{font-size:27px;line-height:1.2;margin:18px 0}.holiday-break-dates{font-size:22px;font-weight:600;margin-bottom:8px}.holiday-break-length{font-size:16px;color:#4b6052}.holiday-workdays{margin-top:26px;border-top:1px solid #c5d1bb;padding-top:14px}.holiday-workdays summary{font-size:19px;font-weight:600;cursor:pointer;padding:12px 0}.holiday-workdays p,.holiday-workdays li,.holiday-source{font-size:17px;line-height:1.6}.holiday-source{margin:24px 0 0}.holiday-pending{font-size:18px;line-height:1.6;padding:20px 24px;background:#faf0df;border-left:4px solid #b36425;color:#583c25;margin:20px 0}.holiday-day-note{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:22px;background:#eef1e7;border:1px solid #d3ddc7;font-size:18px;line-height:1.5}.holiday-day-note--paused{border-left:4px solid #bd612e}.holiday-day-note strong{font-size:21px}.holiday-jump{font-size:18px;margin-block:20px}.holiday-calendar a{text-underline-offset:4px}.training-card .calendar-provisional{font-size:15px;line-height:1.5;color:#6e411f}@media(max-width:900px){.holiday-calendar-heading{grid-template-columns:1fr}.holiday-year-picker{max-width:300px}.holiday-breaks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.holiday-breaks{grid-template-columns:1fr}.holiday-calendar{padding:24px 18px!important}.holiday-break{padding:22px}.holiday-day-note{display:block}.holiday-day-note span{display:block;margin-top:10px}.holiday-pending{padding:18px}}
.today-holiday{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:30px clamp(20px,5vw,80px);padding:24px;background:#edf1e5;border-left:4px solid #bf612b;color:#183329;font-size:18px;line-height:1.6}.today-holiday strong{font-size:22px}.today-holiday p{margin:8px 0 0}.today-holiday a{white-space:nowrap;text-underline-offset:4px}@media(max-width:720px){.today-holiday{flex-direction:column;align-items:flex-start}}
.holiday-year-picker select{flex:1;width:auto;min-width:105px}.holiday-year-picker button{flex:0 0 auto;white-space:nowrap;padding-inline:20px;min-width:80px}.holiday-calendar:lang(zh-cn) h2,.holiday-calendar:lang(zh-cn) h3{font-style:normal;line-height:1.3}
