/*
Theme Name: 千冶成锋·热血艺术主题
Theme URI: https://qianyechengfeng.com
Author: 千冶成锋
Description: 面向射击训练作品、教学思考和视频记录的轻量经典 WordPress 主题。
Version: 1.9.10
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: qianyechengfeng-art
*/

:root {
  --qca-bg: #f4f8fa;
  --qca-panel: #ffffff;
  --qca-panel-2: #e8f1f3;
  --qca-red-dark: #a83224;
  --qca-red: #e14b35;
  --qca-orange: #f2a43a;
  --qca-cream: #153b54;
  --qca-muted: #5d7585;
  --qca-line: #d2e0e4;
  --qca-paper: #fffaf0;
  --qca-ink: #153b54;
  --qca-teal: #1f7a8c;
  --qca-blue: #2d6f95;
  --qca-max: 1240px;
  --qca-radius: 6px;
  --qca-shadow: 0 22px 70px rgba(25, 67, 86, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--qca-cream);
  background-color: var(--qca-bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 56px 56px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 8px 12px;
  margin: 0;
  clip: auto;
  color: var(--qca-bg);
  background: var(--qca-orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 1px solid var(--qca-line);
  backdrop-filter: blur(16px);
}
.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(var(--qca-max), calc(100% - 44px));
  margin: 0 auto;
}
.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand { display: inline-flex; min-width: 150px; align-items: center; }
.site-brand .custom-logo {
  width: 116px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}
.site-brand__fallback {
  color: var(--qca-cream);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
}
.primary-navigation ul,
.footer-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-navigation a,
.footer-navigation a {
  display: block;
  padding: 9px 12px;
  color: var(--qca-muted);
  font-size: 0.9rem;
  transition: color 160ms ease, background-color 160ms ease;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.footer-navigation a:hover { color: var(--qca-cream); }
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-top: 2px;
  background: var(--qca-red);
  content: "";
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--qca-cream);
  background: transparent;
  border: 1px solid var(--qca-line);
  border-radius: var(--qca-radius);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 160ms ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { position: absolute; content: ""; }
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }

.site-main { padding: 0 0 96px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  min-height: 650px;
  align-items: center;
  padding: 86px 0 100px;
  border-bottom: 1px solid var(--qca-line);
}
.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.hero__brand .custom-logo-link {
  display: block;
  width: 112px;
  height: 70px;
}
.hero__brand img {
  width: 112px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}
.hero__brand-name {
  color: var(--qca-muted);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--qca-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}
.hero h1,
.page-header h1 {
  max-width: 780px;
  margin: 0;
  color: var(--qca-cream);
  font-size: 6.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero__subtitle {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--qca-muted);
  font-size: 1.35rem;
}
.hero__statement {
  max-width: 640px;
  margin: 28px 0 0;
  padding-left: 18px;
  color: var(--qca-cream);
  border-left: 3px solid var(--qca-red);
  font-size: 1.02rem;
  font-weight: 800;
}
.hero__actions,
.entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  color: var(--qca-cream);
  background: var(--qca-red);
  border: 1px solid var(--qca-red);
  border-radius: var(--qca-radius);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { color: var(--qca-cream); background: #bd2b1c; border-color: #bd2b1c; transform: translateY(-2px); }
.button--secondary { color: var(--qca-cream); background: transparent; border-color: var(--qca-line); }
.button--secondary:hover { background: var(--qca-panel-2); border-color: var(--qca-orange); }
.hero__panel {
  padding: 34px;
  background: var(--qca-panel);
  border: 1px solid var(--qca-line);
  border-top: 3px solid var(--qca-red);
  box-shadow: var(--qca-shadow);
}
.hero__panel-kicker { color: var(--qca-orange); font-size: 0.8rem; font-weight: 800; letter-spacing: 0; }
.hero__panel h2 { margin: 30px 0 0; font-size: 3rem; line-height: 1.16; }
.hero__panel p { color: var(--qca-muted); }
.hero__panel-rule { width: 70px; height: 3px; margin: 30px 0; background: var(--qca-orange); }
.hero__panel-note { margin: 0; color: var(--qca-cream) !important; font-weight: 800; }

.section { padding-top: 104px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2 { margin: 0; font-size: 3.75rem; line-height: 1.05; }
.section-heading p { max-width: 520px; margin: 0; color: var(--qca-muted); }
.section-heading__link { flex: 0 0 auto; color: var(--qca-orange); font-weight: 800; }
.section-heading__link:hover { color: var(--qca-cream); }
.feature-grid,
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card,
.entry-card,
.contact-panel,
.empty-state,
.article-shell,
.page-shell {
  background: var(--qca-panel);
  border: 1px solid var(--qca-line);
  border-radius: var(--qca-radius);
}
.feature-card { min-height: 240px; padding: 28px; transition: transform 160ms ease, border-color 160ms ease; }
.feature-card:hover { border-color: var(--qca-red); transform: translateY(-3px); }
.feature-card__number { color: var(--qca-orange); font-weight: 900; }
.feature-card h3 { margin: 40px 0 0; font-size: 1.35rem; }
.feature-card p { min-height: 3.5em; color: var(--qca-muted); }
.feature-card__link { display: inline-block; margin-top: 12px; color: var(--qca-cream); font-weight: 800; }
.entry-card { display: flex; min-height: 100%; flex-direction: column; overflow: hidden; transition: transform 160ms ease, border-color 160ms ease; }
.entry-card:hover { border-color: var(--qca-red); transform: translateY(-3px); }
.entry-card__media { min-height: 210px; background: var(--qca-panel-2); overflow: hidden; }
.entry-card__media img { width: 100%; height: 210px; object-fit: cover; }
.entry-card__placeholder { display: grid; height: 210px; place-items: center; color: var(--qca-muted); background: #242424; }
.entry-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.entry-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--qca-muted); font-size: 0.78rem; }
.entry-card__meta span:last-child { color: var(--qca-orange); }
.entry-card h3 { margin: 14px 0 0; font-size: 1.22rem; line-height: 1.4; }
.entry-card p { margin: 12px 0 0; color: var(--qca-muted); font-size: 0.92rem; }
.entry-card__read-more { margin-top: auto; padding-top: 22px; color: var(--qca-cream); font-size: 0.87rem; font-weight: 800; }
.entry-card__read-more::after { color: var(--qca-red); content: " →"; }
.entry-card--external .entry-card__body { border-top: 2px solid var(--qca-red); }
.video-card__media { position: relative; }
.video-card__play { position: absolute; right: 16px; bottom: 14px; display: grid; width: 44px; height: 44px; place-items: center; color: var(--qca-bg); background: var(--qca-orange); border-radius: 50%; font-size: 0.9rem; }

.contact-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; padding: 38px; background: var(--qca-panel); border: 1px solid var(--qca-line); }
.contact-band h2 { margin: 0; font-size: 3.25rem; line-height: 1.08; }
.contact-band p { color: var(--qca-muted); }
.contact-band__actions { align-self: end; justify-self: end; }
.about-band { padding: 44px; color: var(--qca-cream); background: linear-gradient(120deg, rgba(127, 29, 29, 0.42), var(--qca-panel) 68%); border: 1px solid var(--qca-line); border-left: 3px solid var(--qca-red); border-radius: var(--qca-radius); }
.about-band h2 { max-width: 620px; margin: 0; font-size: 4rem; line-height: 1.05; }
.about-band p { max-width: 760px; margin: 24px 0 0; color: rgba(244, 240, 232, 0.78); }
.about-band .button { margin-top: 26px; color: var(--qca-cream); background: var(--qca-bg); border-color: var(--qca-line); }

.page-header { padding: 76px 0 52px; border-bottom: 1px solid var(--qca-line); }
.page-header h1 { font-size: 5.25rem; }
.page-header__lead { max-width: 720px; margin: 24px 0 0; color: var(--qca-muted); font-size: 1.1rem; }
.archive-content { padding-top: 52px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar a { padding: 7px 12px; color: var(--qca-muted); border: 1px solid var(--qca-line); border-radius: 999px; font-size: 0.84rem; }
.filter-bar a:hover, .filter-bar a.is-active { color: var(--qca-bg); background: var(--qca-orange); border-color: var(--qca-orange); }
.article-shell, .page-shell { max-width: 860px; padding: clamp(26px, 5vw, 64px); margin: 56px auto 0; }
.article-header { margin-bottom: 34px; }
.article-header h1 { margin: 0; font-size: 4.75rem; line-height: 1.08; overflow-wrap: anywhere; }
.article-header__summary { margin: 20px 0 0; color: var(--qca-muted); font-size: 1.1rem; }
.article-featured-image { margin: 0 0 34px; }
.entry-content { color: #ddd5c9; font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--qca-cream); line-height: 1.3; }
.entry-content a { color: var(--qca-orange); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
.entry-content iframe { width: 100%; min-height: 420px; border: 0; }
.entry-content pre, .entry-content table { max-width: 100%; overflow-x: auto; }
.entry-content table { display: block; }
.entry-content pre { white-space: pre-wrap; word-break: break-word; }
.qcf-external-note { padding: 18px; color: var(--qca-muted); background: var(--qca-panel-2); border-left: 3px solid var(--qca-orange); }
.qcf-video-qr { width: min(100%, 240px); margin-top: 22px; border: 1px solid var(--qca-line); }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--qca-line); color: var(--qca-orange); font-weight: 800; }
.post-navigation .nav-next { text-align: right; }
.contact-page .entry-content { color: var(--qca-cream); }
.empty-state { padding: 34px; color: var(--qca-muted); }
.empty-state strong { display: block; color: var(--qca-cream); font-size: 1.15rem; }
.empty-state p { margin: 7px 0 0; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 6px 10px; color: var(--qca-cream); border: 1px solid var(--qca-line); border-radius: var(--qca-radius); }
.pagination .current, .pagination a:hover { background: var(--qca-red); border-color: var(--qca-red); }

.site-footer { padding: 34px 0 48px; border-top: 1px solid var(--qca-line); }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.site-footer__copy { margin: 0; color: var(--qca-muted); font-size: 0.84rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; color: var(--qca-muted); font-size: 0.78rem; }
.site-footer__legal a:hover { color: var(--qca-orange); }
.footer-navigation { flex: 0 0 auto; }

@media (max-width: 900px) {
  .hero h1, .page-header h1 { font-size: 4.4rem; }
  .hero__panel h2 { font-size: 2.5rem; }
  .section-heading h2, .about-band h2 { font-size: 3.25rem; }
  .contact-band h2 { font-size: 2.8rem; }
  .article-header h1 { font-size: 3.8rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 42px; }
  .feature-grid, .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band { grid-template-columns: 1fr; }
  .contact-band__actions { justify-self: start; }
  .site-header__inner, .site-main, .site-footer__inner { width: min(var(--qca-max), calc(100% - 32px)); }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: 82px; right: 16px; left: 16px; display: none; padding: 10px; background: var(--qca-panel); border: 1px solid var(--qca-line); box-shadow: var(--qca-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 2px; }
  .primary-navigation a { padding: 12px; }
}
@media (max-width: 560px) {
  .site-header__inner { min-height: 70px; }
  .primary-navigation { top: 70px; }
  .site-brand .custom-logo { width: 92px; height: 54px; }
  .hero { padding: 56px 0 72px; }
  .hero h1, .page-header h1 { font-size: 3rem; }
  .hero__subtitle { font-size: 1.08rem; }
  .hero__panel h2 { font-size: 2rem; }
  .section-heading h2, .about-band h2 { font-size: 2.4rem; }
  .contact-band h2 { font-size: 2.2rem; }
  .article-header h1 { font-size: 2.7rem; }
  .hero__brand .custom-logo-link { width: 92px; height: 58px; }
  .hero__brand img { width: 92px; height: 58px; }
  .hero__brand-name { font-size: 0.8rem; }
  .section { padding-top: 76px; }
  .section-heading { display: block; }
  .section-heading__link { display: inline-block; margin-top: 14px; }
  .feature-grid, .entry-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .contact-band, .about-band { padding: 26px; }
  .article-shell, .page-shell { margin-top: 32px; }
  .entry-content iframe { min-height: 240px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .site-footer__inner { display: block; }
  .footer-navigation { margin-top: 16px; }
  .footer-navigation ul { flex-wrap: wrap; }
}

/* Image-only collection used by 精彩瞬间. Article cards never enter this layout. */
.qca-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.qca-gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--qca-panel);
  border: 1px solid var(--qca-line);
}
.qca-gallery-item__link {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--qca-panel-2);
}
.qca-gallery-item__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}
.qca-gallery-item__link:hover img,
.qca-gallery-item__link:focus-visible img { transform: scale(1.025); }
.qca-gallery-item__caption {
  min-width: 0;
  padding: 13px 15px 16px;
}
.qca-gallery-item__category {
  display: block;
  color: var(--qca-orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.qca-gallery-item__title {
  margin: 6px 0 0;
  color: var(--qca-cream);
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.section--exhibition .qca-gallery-item__title { color: var(--qca-cream); }
.archive-content--gallery { min-width: 0; }

@media (max-width: 1100px) {
  .qca-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .qca-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .qca-gallery-item,
  .qca-gallery-item__link,
  .qca-gallery-item__link img { width: 100%; max-width: 100%; }
  .qca-gallery-item__link { aspect-ratio: 4 / 3; }
  .qca-gallery-item__title { font-size: 0.98rem; }
}

.section--intro { padding-top: 58px; }
.section--intro .section-heading h2 { max-width: 680px; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--qca-line); }
.direction-item { display: grid; gap: 9px; min-height: 170px; align-content: end; padding: 24px 22px; border-right: 1px solid var(--qca-line); border-bottom: 1px solid var(--qca-line); transition: background-color 180ms ease, color 180ms ease; }
.direction-item:last-child { border-right: 0; }
.direction-item:hover { color: var(--qca-cream); background: linear-gradient(135deg, rgba(127, 29, 29, 0.32), transparent); }
.direction-item__num { color: var(--qca-orange); font-size: 0.76rem; font-weight: 800; }
.direction-item strong { font-size: 1.5rem; }
.direction-item span:last-child { color: var(--qca-muted); font-size: 0.85rem; }
.work-wall { display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 18px; }
.work-wall__item { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; overflow: hidden; background: var(--qca-panel); border: 1px solid var(--qca-line); }
.work-wall__item--1 { grid-row: span 2; }
.work-wall__item--1 .work-wall__media { min-height: 500px; }
.work-wall__media { position: relative; min-height: 220px; overflow: hidden; background: var(--qca-panel-2); }
.work-wall__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.work-wall__item:hover .work-wall__media img { transform: scale(1.045); }
.work-wall__veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(11, 11, 12, 0.78)); opacity: 0.76; transition: background-color 200ms ease; }
.work-wall__item:hover .work-wall__veil { background: linear-gradient(180deg, rgba(214, 47, 36, 0.12), rgba(11, 11, 12, 0.82)); }
.work-wall__index { position: absolute; top: 18px; left: 18px; color: var(--qca-cream); font-weight: 900; }
.work-wall__body { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 18px 20px 20px; }
.work-wall__type { grid-column: 1 / -1; color: var(--qca-orange); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.work-wall__body h3 { margin: 0; font-size: 1.28rem; line-height: 1.3; }
.work-wall__link { align-self: end; color: var(--qca-cream); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.work-wall__link:hover { color: var(--qca-orange); }
.editorial-list { border-top: 1px solid var(--qca-line); }
.editorial-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--qca-line); }
.editorial-row__date { display: grid; gap: 5px; color: var(--qca-muted); font-size: 0.78rem; }
.editorial-row__date span { color: var(--qca-red); font-size: 1.25rem; font-weight: 900; }
.editorial-row__main { position: relative; padding-left: 20px; }
.editorial-row__main::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--qca-red); content: ""; }
.editorial-row__label { color: var(--qca-orange); font-size: 0.72rem; font-weight: 800; }
.editorial-row h3 { margin: 8px 0 6px; font-size: 1.55rem; line-height: 1.25; }
.editorial-row p { max-width: 650px; margin: 0; color: var(--qca-muted); font-size: 0.9rem; }
.editorial-row__action { justify-self: end; color: var(--qca-muted); font-size: 0.78rem; text-align: right; }
.editorial-row__cover { display: block; width: 112px; aspect-ratio: 16 / 10; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--qca-line); }
.editorial-row__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.editorial-row__cover:hover img { transform: scale(1.04); }
.button--small { min-height: 38px; padding: 7px 12px; font-size: 0.78rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-tile { min-width: 0; background: var(--qca-panel); border: 1px solid var(--qca-line); }
.video-tile__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--qca-panel-2); }
.video-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.video-tile:hover .video-tile__media img { transform: scale(1.04); }
.video-tile__play { position: absolute; right: 16px; bottom: 14px; display: grid; width: 44px; height: 44px; place-items: center; color: var(--qca-bg); background: var(--qca-orange); border-radius: 50%; font-size: 0.8rem; }
.video-tile__index { position: absolute; top: 14px; left: 16px; color: var(--qca-cream); font-weight: 900; }
.video-tile__body { padding: 20px; }
.video-tile__body h3 { margin: 8px 0; font-size: 1.25rem; line-height: 1.35; }
.video-tile__body p { min-height: 3em; margin: 0 0 18px; color: var(--qca-muted); font-size: 0.9rem; }
.video-tile__empty { color: var(--qca-muted); font-size: 0.82rem; }
.section--contact { padding-top: 94px; }
.contact-band { background: linear-gradient(120deg, rgba(127, 29, 29, 0.34), rgba(21, 21, 23, 0.96) 62%); border-left: 3px solid var(--qca-red); }
.manifesto-band { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 26px; align-items: end; padding: 42px 0 0; border-top: 1px solid var(--qca-line); }
.manifesto-band::before { position: absolute; top: -1px; left: 0; width: 150px; height: 3px; background: var(--qca-red); content: ""; }
.manifesto-band__index { color: var(--qca-orange); font-size: 1.8rem; font-weight: 900; }
.manifesto-band h2 { max-width: 700px; margin: 0; font-size: 2.8rem; line-height: 1.15; }
.manifesto-band p:not(.eyebrow) { max-width: 620px; margin: 18px 0 0; color: var(--qca-muted); }
.manifesto-band__link { padding-bottom: 5px; color: var(--qca-cream); font-weight: 800; }
.manifesto-band__link:hover { color: var(--qca-orange); }
.section--manifesto-intro { padding-top: 54px; }
.section--manifesto-intro .manifesto-band { padding-top: 34px; }
.about-summary { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 28px; padding: 42px 0 0; border-top: 1px solid var(--qca-line); }
.about-summary__index { color: var(--qca-orange); font-size: 1.8rem; font-weight: 900; }
.about-summary__copy { max-width: 820px; }
.about-summary h2 { max-width: 700px; margin: 0; font-size: 3.8rem; line-height: 1.1; }
.about-summary p:not(.eyebrow) { max-width: 700px; margin: 18px 0 22px; color: var(--qca-muted); }
.entry-card__placeholder { background: linear-gradient(135deg, var(--qca-panel-2), #351816); }
.qca-reveal { transition: opacity 500ms ease, transform 500ms ease; }
.qca-reveal-ready .qca-reveal { opacity: 0; transform: translateY(16px); }
.qca-reveal-ready .qca-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .qca-reveal-ready .qca-reveal,
  .qca-reveal-ready .qca-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

.manifesto-section { position: relative; background: var(--qca-paper); }
.manifesto-section::before { position: absolute; top: 18%; right: 8%; color: rgba(23, 23, 23, 0.08); content: "燃"; font-size: clamp(10rem, 26vw, 25rem); font-weight: 900; line-height: 0.8; }
.section--exhibition { background: var(--qca-paper); color: var(--qca-ink); }
.section--exhibition .section-heading--chapter { border-color: rgba(23, 23, 23, 0.24); }
.section--exhibition .section-heading h2 { color: var(--qca-ink); }
.section--exhibition .section-heading__aside p { color: #625e58; }
.section--exhibition .section-heading__link { color: var(--qca-red-dark); }
.work-wall--exhibition { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.78fr); grid-template-rows: minmax(300px, 0.78fr) minmax(240px, 0.58fr); gap: 18px; }
.work-wall--exhibition .work-wall__item { position: relative; min-height: 0; overflow: hidden; background: #1e1c1b; }
.work-wall--exhibition .work-wall__item--1 { grid-row: 1 / span 2; }
.work-wall--exhibition .work-wall__media { position: absolute; inset: 0; display: block; }
.work-wall--exhibition .work-wall__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-wall--exhibition .work-wall__item:hover .work-wall__media img { transform: scale(1.06); }
.work-wall--exhibition .work-wall__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 10, 0.04), rgba(9, 9, 10, 0.9)); }
.work-wall--exhibition .work-wall__body { position: absolute; right: 22px; bottom: 20px; left: 22px; z-index: 2; color: var(--qca-cream); }
.work-wall--exhibition .work-wall__type { color: var(--qca-orange); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.work-wall--exhibition .work-wall__body h3 { max-width: 640px; margin: 7px 0 0; font-size: clamp(1.2rem, 2.1vw, 2.2rem); line-height: 1.05; }
.work-wall--exhibition .work-wall__body h3 a { color: var(--qca-cream); }
.work-wall--exhibition .work-wall__body p { max-width: 540px; margin: 10px 0 0; color: rgba(243, 239, 231, 0.72); font-size: 0.82rem; }
.work-wall--exhibition .work-wall__index { z-index: 3; top: 18px; left: 20px; color: var(--qca-cream); }
.work-wall--exhibition .work-wall__view { z-index: 3; top: 18px; right: 20px; bottom: auto; color: var(--qca-orange); }
.section--text-archive { background: #e6dfd4; }
.section--text-archive .section-heading--chapter { border-color: rgba(23, 23, 23, 0.25); }
.section--text-archive .section-heading h2 { color: var(--qca-ink); }
.section--text-archive .section-heading__link { color: var(--qca-red-dark); }
.editorial-list--archive-home { border-top: 2px solid var(--qca-ink); }
.section--text-archive .editorial-row { grid-template-columns: 96px minmax(0, 1fr) 220px; min-height: 210px; border-color: rgba(23, 23, 23, 0.25); }
.section--text-archive .editorial-row__main::before { background: var(--qca-red); }
.section--text-archive .editorial-row:hover { background: rgba(255, 255, 255, 0.3); transform: translateX(8px); }
.section--text-archive .editorial-row h3 { max-width: 740px; color: var(--qca-ink); font-size: clamp(1.35rem, 2.3vw, 2.1rem); }
.section--text-archive .editorial-row p { color: #625e58; }
.section--text-archive .editorial-row__label { color: var(--qca-red-dark); }
.section--text-archive .editorial-row__action a { color: var(--qca-red-dark); }
.section--text-archive .editorial-row__cover { width: 220px; }
.section--motion-archive { background: linear-gradient(135deg, #111114 0%, #251515 58%, #111114 100%); }
.section--motion-archive .section-heading--chapter { border-color: rgba(243, 239, 231, 0.22); }
.section--motion-archive .video-tile { border-color: rgba(243, 239, 231, 0.18); box-shadow: 12px 12px 0 rgba(214, 47, 36, 0.12); }
.section--motion-archive .video-tile--1 { box-shadow: 16px 16px 0 rgba(214, 47, 36, 0.18); }
.section--profile-archive { background: #0d0d0f; }
.section--profile-archive .about-summary { border-color: rgba(243, 239, 231, 0.24); }
.section--profile-archive .about-summary__copy h2 { color: var(--qca-cream); }
.section--contact-archive { padding-top: 100px; background: #0d0d0f; }
.section--contact-archive .contact-band { background: linear-gradient(110deg, #281313, #151517 64%); box-shadow: 18px 18px 0 rgba(214, 47, 36, 0.12); }

@media (max-width: 820px) {
  .work-wall--exhibition { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 290px; }
  .work-wall--exhibition .work-wall__item--1 { grid-column: 1 / -1; grid-row: auto; }
  .section--text-archive .editorial-row { grid-template-columns: 78px minmax(0, 1fr) 150px; }
  .section--text-archive .editorial-row__cover { width: 150px; }
}
@media (max-width: 560px) {
  .work-wall--exhibition { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .work-wall--exhibition .work-wall__item, .work-wall--exhibition .work-wall__item--1 { min-height: 360px; grid-column: auto; grid-row: auto; }
  .work-wall--exhibition .work-wall__item--1 { min-height: 440px; }
  .section--text-archive .editorial-row { grid-template-columns: 1fr; gap: 14px; }
  .section--text-archive .editorial-row__cover { width: 100%; max-width: none; aspect-ratio: 16 / 9; }
  .section--text-archive .editorial-row:hover { transform: none; }
  .section--contact-archive .contact-band { box-shadow: 8px 8px 0 rgba(214, 47, 36, 0.16); }
}

@media (max-width: 1024px) {
  .section-heading h2 { font-size: 3rem; }
  .editorial-row { grid-template-columns: 100px minmax(0, 1fr) 130px; gap: 20px; }
}
@media (max-width: 768px) {
  .direction-grid { grid-template-columns: 1fr; }
  .direction-item { min-height: 130px; border-right: 0; }
  .work-wall { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .work-wall__item--1 { grid-row: span 1; grid-column: 1 / -1; }
	.work-wall__item--1 .work-wall__media { min-height: 360px; }
  .editorial-row { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
  .editorial-row__action { grid-column: 2; justify-self: start; text-align: left; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-band { grid-template-columns: 48px minmax(0, 1fr); }
  .manifesto-band__link { grid-column: 2; }
	.about-summary { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .section--intro { padding-top: 42px; }
  .section-heading h2 { font-size: 2.35rem; }
  .work-wall { display: grid; grid-template-columns: 1fr; }
  .work-wall__item--1 { grid-column: auto; }
  .work-wall__media, .work-wall__media img { min-height: 250px; }
	.work-wall__item--1 .work-wall__media { min-height: 300px; }
  .editorial-row { grid-template-columns: 1fr; padding: 22px 0; }
  .editorial-row__main { padding-left: 14px; }
  .editorial-row__action { grid-column: auto; }
	.editorial-row__cover { width: min(100%, 220px); }
  .editorial-row h3 { font-size: 1.3rem; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-band { padding: 24px; }
  .manifesto-band { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
  .manifesto-band__link { grid-column: auto; }
  .manifesto-band h2 { font-size: 2.15rem; }
	.about-summary { grid-template-columns: 1fr; gap: 10px; padding-top: 28px; }
}

/* Third visual direction: cinematic archive and editorial magazine. */
html { background: var(--qca-bg); }
.site-header {
  background: rgba(11, 11, 12, 0.78);
  border-bottom-color: rgba(243, 239, 231, 0.12);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { background: rgba(11, 11, 12, 0.96); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24); }
.site-header__inner { min-height: 70px; }
.site-brand { min-width: 118px; }
.site-brand .custom-logo { width: 104px; height: 54px; }
.site-header__actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.primary-navigation a { padding: 8px 10px; font-size: 0.84rem; }
.site-header__cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  color: var(--qca-cream);
  background: var(--qca-red);
  border: 1px solid var(--qca-red);
  font-size: 0.82rem;
  font-weight: 800;
}
.site-header__cta:hover { background: var(--qca-orange); border-color: var(--qca-orange); color: var(--qca-ink); }
.site-main--home { padding-bottom: 0; }

.button--arrow { gap: 18px; }
.button--arrow span { font-size: 1.1rem; transition: transform 160ms ease; }
.button--arrow:hover span { transform: translate(2px, -2px); }

.section { padding-top: 124px; }
.section-heading--chapter { align-items: start; margin-bottom: 44px; padding-top: 22px; border-top: 1px solid var(--qca-line); }
.section-heading--chapter .eyebrow { display: flex; gap: 12px; align-items: center; }
.section-heading--chapter .eyebrow span { color: var(--qca-red); font-size: 1.35rem; }
.section-heading--chapter h2 { max-width: 720px; font-size: 4.2rem; }
.section-heading__aside { display: grid; max-width: 380px; justify-items: start; gap: 18px; }
.section-heading__aside p { font-size: 0.92rem; }
.section-heading__link { display: inline-flex; align-items: center; gap: 8px; }

.section--manifesto-light {
  padding: 78px 0;
  color: var(--qca-ink);
  background: var(--qca-paper);
  box-shadow: 0 0 0 100vmax var(--qca-paper);
  clip-path: inset(0 -100vmax);
}
.manifesto-editorial { display: grid; grid-template-columns: 90px 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.manifesto-editorial__label { display: grid; gap: 8px; padding-top: 4px; color: #5f5d59; font-size: 0.72rem; font-weight: 800; }
.manifesto-editorial__label span:first-child { color: var(--qca-red-dark); }
.manifesto-editorial__copy { position: relative; padding-left: 34px; border-left: 1px solid rgba(23, 23, 23, 0.28); }
.manifesto-editorial__copy::before { position: absolute; top: 0; left: -3px; width: 5px; height: 76px; background: var(--qca-red); content: ""; }
.manifesto-editorial h2 { max-width: 760px; margin: 0; color: var(--qca-ink); font-size: 4rem; line-height: 1.12; }
.manifesto-editorial p { max-width: 680px; margin: 28px 0 0; color: #5f5d59; }
.manifesto-editorial__facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}
.manifesto-editorial__fact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  text-align: center;
}
.manifesto-editorial__fact-label {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}
@media (max-width: 767px) {
  .manifesto-editorial__facts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
  .manifesto-editorial__fact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    text-align: left;
  }
  .manifesto-editorial__fact-label {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
  }
}

.work-wall--editorial { grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr); grid-template-rows: 290px 350px; gap: 16px; }
.work-wall--editorial .work-wall__item { position: relative; display: block; min-height: 0; background: var(--qca-panel); }
.work-wall--editorial .work-wall__item--1 { grid-row: span 2; }
.work-wall--editorial .work-wall__media { display: block; width: 100%; height: 100%; min-height: 0; }
.work-wall--editorial .work-wall__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.work-wall--editorial .work-wall__veil { background: linear-gradient(180deg, rgba(11, 11, 12, 0.06) 28%, rgba(11, 11, 12, 0.92) 100%); }
.work-wall--editorial .work-wall__index { z-index: 3; top: 20px; left: 20px; padding-bottom: 5px; border-bottom: 2px solid var(--qca-red); }
.work-wall__view { position: absolute; z-index: 4; top: 18px; right: 18px; padding: 7px 10px; color: var(--qca-cream); background: var(--qca-red); font-size: 0.74rem; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity 180ms ease, transform 180ms ease; }
.work-wall__item:hover .work-wall__view { opacity: 1; transform: none; }
.work-wall--editorial .work-wall__body { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; display: block; padding: 72px 22px 22px; background: linear-gradient(transparent, rgba(11, 11, 12, 0.9)); pointer-events: none; }
.work-wall--editorial .work-wall__body a { pointer-events: auto; }
.work-wall--editorial .work-wall__body h3 { max-width: 620px; margin: 6px 0; font-size: 1.45rem; }
.work-wall--editorial .work-wall__item--1 h3 { font-size: 2.2rem; }
.work-wall--editorial .work-wall__body p { max-width: 540px; margin: 6px 0 0; color: rgba(243, 239, 231, 0.72); font-size: 0.82rem; }

.section--editorial-light {
  margin-top: 124px;
  padding: 92px 0;
  color: var(--qca-ink);
  background: var(--qca-paper);
  box-shadow: 0 0 0 100vmax var(--qca-paper);
  clip-path: inset(0 -100vmax);
}
.section--editorial-light .section-heading--chapter { border-color: rgba(23, 23, 23, 0.24); }
.section--editorial-light .section-heading h2 { color: var(--qca-ink); }
.section--editorial-light .section-heading__link { color: var(--qca-red-dark); }
.section--editorial-light .editorial-list { border-color: rgba(23, 23, 23, 0.28); }
.section--editorial-light .editorial-row { grid-template-columns: 96px minmax(0, 1fr) 190px; gap: 34px; min-height: 190px; border-color: rgba(23, 23, 23, 0.2); transition: transform 180ms ease, background-color 180ms ease; }
.section--editorial-light .editorial-row:hover { background: rgba(255, 255, 255, 0.24); transform: translateX(5px); }
.section--editorial-light .editorial-row__date { color: #6c6862; }
.section--editorial-light .editorial-row__main::before { background: var(--qca-red-dark); }
.section--editorial-light .editorial-row h3 { max-width: 760px; color: var(--qca-ink); font-size: 1.65rem; }
.section--editorial-light .editorial-row p { color: #625e58; }
.section--editorial-light .editorial-row__label { color: var(--qca-red-dark); }
.editorial-row__action { margin-top: 14px; justify-self: auto; text-align: left; }
.editorial-row__action a { color: var(--qca-red-dark); font-weight: 900; }
.editorial-row__cover { width: 190px; aspect-ratio: 4 / 3; margin: 0; background: #d9d2c6; }
.editorial-row__cover--empty { display: grid; place-items: center; color: rgba(23, 23, 23, 0.42); background: linear-gradient(145deg, #d8d1c5, #f2eee7); }
.section--editorial-light .empty-state { color: #5f5d59; background: transparent; border-color: rgba(23, 23, 23, 0.24); }
.section--editorial-light .empty-state strong { color: var(--qca-ink); }

.video-grid--feature { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); grid-template-rows: repeat(2, minmax(270px, 1fr)); gap: 16px; }
.video-grid--feature .video-tile { position: relative; display: grid; grid-template-columns: 44% 56%; min-height: 270px; overflow: hidden; }
.video-grid--feature .video-tile--1 { grid-row: span 2; display: block; min-height: 556px; }
.video-grid--feature .video-tile--1 .video-tile__media { height: 100%; aspect-ratio: auto; }
.video-grid--feature .video-tile--1 .video-tile__body { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 90px 28px 28px; background: linear-gradient(transparent, rgba(11, 11, 12, 0.94)); }
.video-grid--feature .video-tile--1 .video-tile__body h3 { max-width: 620px; font-size: 2rem; }
.video-grid--feature .video-tile__media { height: 100%; aspect-ratio: auto; }
.video-grid--feature .video-tile__body { align-content: center; padding: 20px; }
.video-grid--feature .video-tile__body p { min-height: 0; }
.video-tile__media::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 12, 0.36)); content: ""; pointer-events: none; }
.video-tile__play { z-index: 2; width: 50px; height: 50px; color: var(--qca-cream); background: var(--qca-red); }
.video-tile__index { z-index: 2; }

.about-summary { grid-template-columns: 170px minmax(0, 1.1fr) minmax(260px, 0.6fr); gap: clamp(28px, 5vw, 74px); padding: 58px 0 0; }
.about-summary__rail { display: grid; align-content: start; gap: 14px; color: var(--qca-muted); font-size: 0.72rem; font-weight: 800; }
.about-summary__rail span:first-child { color: var(--qca-red); font-size: 4.5rem; line-height: 0.9; }
.about-summary__copy h2 { font-size: 4.5rem; }
.about-summary__copy p:not(.eyebrow) { color: #c5beb3; font-size: 1.02rem; }
.about-summary__stats { display: grid; align-self: end; border-top: 1px solid var(--qca-line); }
.about-summary__stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--qca-line); }
.about-summary__stats strong { color: var(--qca-orange); font-size: 2.2rem; }
.about-summary__stats span { color: var(--qca-muted); font-size: 0.78rem; }

.section--contact { padding: 124px 0; }
.contact-band { grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr); gap: clamp(36px, 7vw, 100px); align-items: center; padding: 56px; background: linear-gradient(120deg, rgba(118, 29, 26, 0.66), rgba(21, 21, 23, 0.96) 58%); border: 1px solid rgba(243, 239, 231, 0.16); border-left: 4px solid var(--qca-red); }
.contact-band__intro h2 { max-width: 560px; margin: 0; font-size: 3.7rem; line-height: 1.08; }
.contact-band__intro > p:not(.eyebrow) { max-width: 520px; color: #c5beb3; }
.contact-band__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 18px 28px; align-items: center; }
.contact-band__content > * { margin: 0; }
.contact-band__content .wp-block-image { grid-column: 2; grid-row: 1 / span 3; }
.contact-band__content .wp-block-image img { width: 100%; max-height: 240px; object-fit: contain; background: #fff; }
.contact-band__content a { color: var(--qca-orange); text-decoration: underline; text-underline-offset: 3px; }

.page-header--archive { padding: 88px 0 48px; }
.page-header--archive .eyebrow { display: flex; gap: 10px; }
.page-header--archive .eyebrow span { color: var(--qca-red); }
.page-header--archive h1 { font-size: 5.5rem; }
.page-header--archive,
.profile-hero,
.contact-page__header { position: relative; isolation: isolate; overflow: hidden; }
.page-header--archive::after,
.profile-hero::after,
.contact-page__header::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 18px;
  color: transparent;
  font-size: clamp(7rem, 13vw, 12.5rem);
  font-weight: 900;
  line-height: 0.78;
  -webkit-text-stroke: 1px rgba(243, 239, 231, 0.11);
  content: "ARCHIVE";
  pointer-events: none;
}
.profile-hero::after { content: "PROFILE"; }
.contact-page__header::after { content: "CONTACT"; }
.teaching-archive { display: grid; gap: 76px; padding-bottom: 110px; }
.teaching-archive__intro { max-width: 820px; margin: 0 0 18px; color: var(--qca-muted); }
.teaching-archive__section { min-width: 0; padding-top: 28px; border-top: 1px solid var(--qca-line); }
.teaching-archive__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.teaching-archive__heading h2 { margin: 0; color: var(--qca-cream); font-size: 2.8rem; }
.section-heading__description { max-width: 560px; margin: 14px 0 0; color: var(--qca-muted); font-size: 0.95rem; line-height: 1.65; }
.editorial-row__label small { margin-left: 8px; color: var(--qca-orange); font-size: 0.72rem; }
.video-tile__body time { display: block; margin: 8px 0 0; color: var(--qca-muted); font-size: 0.72rem; }
.entry-card__placeholder {
  position: relative;
  isolation: isolate;
  align-content: end;
  justify-items: start;
  padding: 24px;
  overflow: hidden;
  color: var(--qca-cream);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(214, 47, 36, 0.7) 46% 46.5%, transparent 46.5%),
    repeating-linear-gradient(90deg, rgba(243, 239, 231, 0.04) 0 1px, transparent 1px 58px),
    linear-gradient(145deg, #252529, #171719 62%, #321715);
  font-size: 0.8rem;
  font-weight: 800;
}
.entry-card__placeholder::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  left: 22px;
  color: rgba(243, 239, 231, 0.12);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1;
  content: "IMAGE";
}
.entry-card__placeholder::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 3px;
  background: var(--qca-red);
  content: "";
}
.entry-grid--archive { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.entry-grid--archive .entry-card { grid-column: span 4; }
.entry-grid--archive .entry-card:nth-child(5n + 1) { grid-column: span 8; }
.entry-grid--archive .entry-card:nth-child(5n + 1) .entry-card__media img { height: 360px; }
.editorial-list--archive .editorial-row { grid-template-columns: 110px minmax(0, 1fr) 190px; min-height: 190px; }
.editorial-list--archive .editorial-row h2 { margin: 8px 0; font-size: 1.65rem; line-height: 1.25; }
.video-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-grid--archive .video-tile__media { aspect-ratio: 16 / 9; }

.profile-page, .contact-page--editorial { padding-bottom: 110px; }
.profile-hero, .contact-page__header { max-width: 920px; padding: 100px 0 64px; }
.profile-hero .eyebrow, .contact-page__header .eyebrow { display: flex; gap: 12px; }
.profile-hero .eyebrow span, .contact-page__header .eyebrow span { color: var(--qca-red); }
.profile-hero h1, .contact-page__header h1 { margin: 0; font-size: 6rem; line-height: 1; }
.profile-hero > p:last-child, .contact-page__header > p:last-child { max-width: 700px; color: var(--qca-muted); font-size: 1.1rem; }
.profile-story, .contact-page__body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 50px; padding: 58px 0; border-top: 1px solid var(--qca-line); }
.profile-story__rail, .contact-page__rail { display: grid; align-content: start; gap: 10px; color: var(--qca-muted); font-size: 0.75rem; font-weight: 800; }
.profile-story__rail span:first-child, .contact-page__rail span:first-child { color: var(--qca-red); font-size: 3.5rem; line-height: 1; }
.profile-story__content { max-width: 860px; padding: 0; background: transparent; border: 0; }
.profile-story__content p:first-child { color: var(--qca-orange); font-size: 2.25rem; font-weight: 900; }
.profile-story__content p { max-width: 780px; }
.profile-story__content .profile-credentials,
.about-summary__credentials { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--qca-line); color: var(--qca-muted); font-size: 0.92rem; line-height: 1.75; }
.profile-credentials strong { display: block; margin-bottom: 4px; color: var(--qca-cream); font-size: 0.78rem; }
.profile-evidence { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 54px; padding: 64px 0; border-top: 1px solid var(--qca-line); }
.profile-evidence h2 { margin: 0; font-size: 3.2rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--qca-line); }
.profile-stats div { display: grid; gap: 4px; padding: 24px; background: var(--qca-panel); }
.profile-stats strong { color: var(--qca-orange); font-size: 2.8rem; }
.profile-stats span { color: var(--qca-muted); font-size: 0.8rem; }
.profile-keywords { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-keywords a { padding: 7px 11px; border-bottom: 1px solid var(--qca-red); color: var(--qca-muted); font-size: 0.8rem; }
.contact-page__body { padding: 58px; color: var(--qca-ink); background: var(--qca-paper); border-top: 4px solid var(--qca-red); }
.contact-page__body .contact-page__rail { color: #625e58; }
.contact-page__body .entry-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 22px 42px; color: var(--qca-ink); }
.contact-page__body .entry-content > * { margin: 0; }
.contact-page__body .entry-content .wp-block-image { grid-column: 2; grid-row: 1 / span 3; }
.contact-page__body .entry-content .wp-block-image img { width: 100%; max-height: 380px; object-fit: contain; background: #fff; }
.contact-page__body .entry-content a { color: var(--qca-red-dark); font-weight: 900; }
.contact-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 10px; margin-top: 8px; }
.contact-actions .button { color: var(--qca-ink); border-color: rgba(23, 23, 23, 0.32); }
.contact-actions .button:hover { color: var(--qca-cream); }

.safety-page__header { max-width: 920px; padding: 100px 0 64px; }
.safety-page__header h1 { margin: 0; font-size: 6rem; line-height: 1; }
.safety-page__grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 50px; padding: 58px 0 110px; border-top: 1px solid var(--qca-line); }
.safety-page__rail { display: grid; align-content: start; gap: 10px; color: var(--qca-muted); font-size: 0.75rem; font-weight: 800; }
.safety-page__rail span:first-child { color: var(--qca-red); font-size: 3.5rem; line-height: 1; }
.safety-page__content { max-width: 860px; }
.safety-page__content h2 { margin: 0 0 20px; font-size: 2.8rem; }
.safety-page__rules { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: safety-rule; }
.safety-page__rules li { position: relative; padding: 18px 20px 18px 58px; color: var(--qca-cream); background: var(--qca-panel); border-left: 3px solid var(--qca-orange); }
.safety-page__rules li::before { position: absolute; top: 18px; left: 20px; color: var(--qca-orange); content: counter(safety-rule, decimal-leading-zero); counter-increment: safety-rule; font-weight: 900; }
.safety-page__note { margin-top: 28px; padding: 22px; color: var(--qca-ink); background: var(--qca-paper); border-top: 3px solid var(--qca-red); }
.safety-page__note strong { display: block; }
.safety-page__note p { margin: 8px 0 0; }

@media (max-width: 1100px) {
  .site-header__actions { margin-left: auto; }
  .menu-toggle {
    display: block;
    color: var(--qca-ink);
    background: var(--qca-cream);
    border-color: var(--qca-cream);
    box-shadow: inset 0 -3px 0 var(--qca-red);
  }
  .menu-toggle:hover,
  .menu-toggle:focus-visible { color: var(--qca-ink); background: var(--qca-orange); border-color: var(--qca-orange); }
  .primary-navigation { position: absolute; top: 70px; right: 16px; left: 16px; display: none; padding: 10px; background: var(--qca-panel); border: 1px solid var(--qca-line); box-shadow: var(--qca-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 2px; }
  .primary-navigation a { padding: 12px; }
  .section-heading--chapter h2 { font-size: 3.5rem; }
  .contact-band { padding: 42px; }
}

@media (max-width: 820px) {
  .manifesto-editorial { grid-template-columns: 70px minmax(0, 1fr); }
  .manifesto-editorial__label { grid-column: 2; }
  .manifesto-editorial__copy { grid-column: 2; }
  .manifesto-editorial h2 { font-size: 3.1rem; }
  .work-wall--editorial { grid-template-columns: 1fr 1fr; grid-template-rows: 440px 320px; }
  .work-wall--editorial .work-wall__item--1 { grid-column: 1 / -1; grid-row: auto; }
  .work-wall--editorial .work-wall__item--1 h3 { font-size: 1.8rem; }
  .section--editorial-light .editorial-row, .editorial-list--archive .editorial-row { grid-template-columns: 78px minmax(0, 1fr) 150px; gap: 18px; }
  .editorial-row__cover { width: 150px; }
  .video-grid--feature { grid-template-columns: 1fr 1fr; grid-template-rows: 440px auto; }
  .video-grid--feature .video-tile--1 { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
  .video-grid--feature .video-tile:not(.video-tile--1) { display: block; }
  .video-grid--feature .video-tile:not(.video-tile--1) .video-tile__media { height: 200px; }
  .about-summary { grid-template-columns: 90px minmax(0, 1fr); }
  .about-summary__stats { grid-column: 2; }
  .contact-band { grid-template-columns: 1fr; }
  .contact-band__content { max-width: 620px; }
  .entry-grid--archive .entry-card, .entry-grid--archive .entry-card:nth-child(5n + 1) { grid-column: span 6; }
  .profile-story, .contact-page__body { grid-template-columns: 100px minmax(0, 1fr); gap: 28px; }
  .profile-evidence { grid-template-columns: 1fr; }
  .profile-keywords { grid-column: 1; }
  .contact-page__body .entry-content { grid-template-columns: 1fr; }
  .contact-page__body .entry-content .wp-block-image { grid-column: 1; grid-row: auto; }
}

@media (max-width: 560px) {
  .site-header__inner, .site-main, .site-footer__inner { width: calc(100% - 32px); }
  .site-header__cta { display: none; }
  .site-brand { min-width: 0; }
  .site-brand .custom-logo { width: 94px; height: 52px; }
  .button { min-height: 46px; padding: 9px 15px; }
  .section { padding-top: 82px; }
  .section-heading--chapter { display: block; margin-bottom: 28px; }
  .section-heading--chapter h2 { font-size: 2.5rem; }
  .section-heading--chapter > a { margin-top: 16px; }
  .section--manifesto-light { padding: 54px 0; }
  .manifesto-editorial { grid-template-columns: 1fr; gap: 18px; }
  .manifesto-editorial__label, .manifesto-editorial__copy { grid-column: 1; }
  .manifesto-editorial__copy { padding: 22px 0 0; border-top: 1px solid rgba(23, 23, 23, 0.28); border-left: 0; }
  .manifesto-editorial__copy::before { top: -3px; left: 0; width: 72px; height: 5px; }
  .manifesto-editorial h2 { font-size: 2.35rem; }
  .work-wall--editorial { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .work-wall--editorial .work-wall__item, .work-wall--editorial .work-wall__item--1 { min-height: 360px; grid-column: auto; }
  .work-wall--editorial .work-wall__item--1 { min-height: 440px; }
  .work-wall--editorial .work-wall__item--1 h3 { font-size: 1.65rem; }
  .work-wall__view { opacity: 1; transform: none; }
  .section--editorial-light { margin-top: 82px; padding: 62px 0; }
  .section--editorial-light .editorial-row, .editorial-list--archive .editorial-row { grid-template-columns: 1fr; gap: 14px; }
  .section--editorial-light .editorial-row:hover { transform: none; }
  .editorial-row__date { display: flex; justify-content: space-between; }
  .editorial-row__main { padding-left: 14px; }
  .editorial-row__cover { width: 100%; max-width: none; aspect-ratio: 16 / 9; }
  .video-grid--feature, .video-grid--archive { grid-template-columns: 1fr; grid-template-rows: none; }
  .video-grid--feature .video-tile, .video-grid--feature .video-tile--1 { grid-column: auto; min-height: 0; }
  .video-grid--feature .video-tile--1 { min-height: 430px; }
  .video-grid--feature .video-tile:not(.video-tile--1) .video-tile__media { height: 220px; }
  .about-summary { grid-template-columns: 1fr; gap: 24px; }
  .about-summary__rail { display: flex; justify-content: space-between; align-items: end; }
  .about-summary__rail span:first-child { font-size: 3.5rem; }
  .about-summary__copy h2 { font-size: 3.2rem; }
  .about-summary__stats { grid-column: 1; }
  .section--contact { padding: 82px 0; }
  .contact-band { padding: 28px 22px; }
  .contact-band__intro h2 { font-size: 2.45rem; }
  .contact-band__content { grid-template-columns: 1fr; }
  .contact-band__content .wp-block-image { grid-column: 1; grid-row: auto; }
  .contact-band__content .wp-block-image img { max-height: 280px; }
  .page-header--archive { padding: 54px 0 30px; }
  .page-header--archive h1 { font-size: 3.4rem; }
  .teaching-archive { gap: 48px; padding-bottom: 72px; }
  .teaching-archive__heading { display: block; margin-bottom: 22px; }
  .teaching-archive__heading h2 { font-size: 2.35rem; }
  .page-header--archive::after,
  .profile-hero::after,
  .contact-page__header::after { display: none; }
  .entry-grid--archive { grid-template-columns: 1fr; }
  .entry-grid--archive .entry-card, .entry-grid--archive .entry-card:nth-child(5n + 1) { grid-column: auto; }
  .entry-grid--archive .entry-card:nth-child(5n + 1) .entry-card__media img { height: 260px; }
  .profile-hero, .contact-page__header { padding: 58px 0 40px; }
  .profile-hero h1, .contact-page__header h1 { font-size: 3.5rem; }
  .profile-story, .contact-page__body { grid-template-columns: 1fr; gap: 22px; }
  .profile-story__rail, .contact-page__rail { display: flex; align-items: end; justify-content: space-between; }
  .profile-story__content p:first-child { font-size: 1.8rem; }
  .profile-stats { grid-template-columns: 1fr; }
  .contact-page__body { padding: 28px 22px; }
}

/* Contact details and mobile WeChat access. */
.contact-band__details {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px 24px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 239, 231, 0.18);
}
.contact-band__qr {
  grid-row: span 2;
  margin: 0;
  padding: 10px;
  background: #f4f0e8;
  color: #171717;
}
.contact-band__qr img { display: block; width: 100%; max-height: 200px; object-fit: contain; }
.contact-band__qr figcaption { margin-top: 7px; font-size: 0.7rem; font-weight: 800; text-align: center; }
.contact-band__detail { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 5px 12px; align-items: center; min-width: 0; }

/* Training results: a separate public view over consented records. */
.qca-training-page { min-width: 0; }
body.qca-training-results-view .qca-guide-float-wrap { display: none; }
.qca-training-shell { width: min(var(--qca-max), 100%); margin: 0 auto; }
.qca-training-hero { position: relative; display: flex; min-height: 300px; align-items: end; justify-content: space-between; gap: 32px; overflow: hidden; padding: 58px clamp(22px, 6vw, 82px); border-bottom: 1px solid var(--qca-line); background: linear-gradient(110deg, rgba(127, 29, 29, .42), transparent 62%); }
.qca-training-hero::after { position: absolute; right: 10%; bottom: -116px; width: 260px; aspect-ratio: 1; border: 1px solid rgba(242, 238, 230, .14); border-radius: 50%; box-shadow: 0 0 0 20px rgba(242, 238, 230, .025), 0 0 0 42px rgba(242, 238, 230, .02); content: ""; pointer-events: none; }
.qca-training-hero__copy { position: relative; z-index: 1; max-width: 700px; }
.qca-training-hero__eyebrow, .qca-training-detail__eyebrow, .qca-training-notice__eyebrow { margin: 0 0 12px; color: var(--qca-orange); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.qca-training-hero h1 { margin: 0; color: var(--qca-cream); font-size: 5rem; line-height: 1.02; }
.qca-training-hero__copy > p:last-child { max-width: 560px; margin: 18px 0 0; color: #d0cbc2; font-size: 1.05rem; }
.qca-training-hero__mark { position: relative; z-index: 1; display: grid; width: 112px; aspect-ratio: 1; flex: 0 0 auto; place-content: center; border: 1px solid rgba(242, 238, 230, .32); border-radius: 50%; text-align: center; transform: rotate(-9deg); }
.qca-training-hero__mark span { color: var(--qca-muted); font-size: .65rem; font-weight: 800; }
.qca-training-hero__mark strong { color: var(--qca-orange); font-size: 2rem; line-height: 1.1; }
.qca-training-board { padding: 40px clamp(22px, 6vw, 82px) 32px; }
.qca-training-navigation { padding: 0 6%; border-bottom: 1px solid var(--qca-line); }
.qca-training-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--qca-line); }
.qca-training-tabs a { padding: 20px 0 16px; border-bottom: 3px solid transparent; color: var(--qca-muted); font-weight: 700; }
.qca-training-tabs a[aria-current], .qca-training-tabs a:hover { color: #fff; border-bottom-color: var(--qca-red); }
.qca-student-search { display: grid; grid-template-columns: max-content minmax(0, 560px); justify-content: start; align-items: center; gap: 20px; padding: 26px 0; }
.qca-student-search label { font-size: .9rem; font-weight: 700; }
.qca-student-search > div, .qca-history-filter > div { display: flex; gap: 10px; min-width: 0; }
.qca-student-search input, .qca-history-filter select, .qca-history-trend select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; color: #f4f5f3; background: #171719; border: 1px solid #4b4b51; border-radius: 4px; font: inherit; }
.qca-student-search .button, .qca-history-filter .button { flex-shrink: 0; padding: 10px 20px; border-radius: 4px; min-height: 46px; }
.qca-student-search input { background: #fff; color: #18202b; -webkit-text-fill-color: #18202b; caret-color: #18202b; color-scheme: light; font-size: 18px; font-weight: 600; }
.qca-student-search input::placeholder { color: #64748b; -webkit-text-fill-color: #64748b; opacity: 1; font-weight: 400; }
.qca-student-search input:focus-visible { outline: 2px solid var(--qca-red); outline-offset: 3px; }
.qca-student-search input:is(:-webkit-autofill, :autofill) { color: #18202b !important; -webkit-text-fill-color: #18202b !important; caret-color: #18202b; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; box-shadow: 0 0 0 1000px #fff inset !important; }
.qca-student-history { padding: 40px 6% 60px; letter-spacing: 0; }
.qca-history-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.qca-history-eyebrow { margin: 0 0 6px; color: #66d4bc; font-size: .72rem; font-weight: 700; }
.qca-history-heading h2 { margin: 0; font-size: 2rem; overflow-wrap: anywhere; }
.qca-history-heading > span, .qca-history-table-heading > span { color: #a6a6ad; font-size: .8rem; }
.qca-history-filter { max-width: 720px; margin-bottom: 28px; }
.qca-history-filter label { display: block; font-size: .8rem; color: #a6a6ad; margin-bottom: 8px; }
.qca-history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--qca-line); border-bottom: 1px solid var(--qca-line); margin: 0; }
.qca-history-stats > div { min-width: 0; padding: 24px 16px; border-right: 1px solid var(--qca-line); }
.qca-history-stats > div:first-child { padding-left: 0; }
.qca-history-stats > div:last-child { border-right: 0; }
.qca-history-stats dt { color: #b6b6bc; font-size: .8rem; }
.qca-history-stats dd { margin: 8px 0; color: #f4f5f3; font-size: 2rem; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.qca-history-stats dd small { font-weight: 400; color: #a6a6ad; font-size: .8rem; margin-left: 8px; }
.qca-history-stats span { display: block; color: #a6a6ad; font-size: .72rem; overflow-wrap: anywhere; }
.qca-history-trend { padding: 26px; margin-top: 28px; background: #fafbfc; color: #293344; border: 1px solid #e1e5eb; border-radius: 6px; }
.qca-history-trend-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qca-history-trend h3, .qca-history-table-heading h3 { margin: 0; font-size: 1.15rem; }
.qca-history-trend-heading p { margin: 6px 0 0; color: #657083; font-size: .8rem; }
.qca-history-trend-heading label { display: flex; align-items: center; gap: 10px; color: #657083; font-size: .75rem; white-space: nowrap; }
.qca-history-trend select { min-height: 38px; width: 130px; font-size: .8rem; background: #fff; color: #293344; border-color: #cbd2dc; }
.qca-history-canvas { position: relative; height: 300px; width: 100%; }
.qca-history-canvas[hidden] { display: none; }
.qca-history-chart-summary { color: #657083; font-size: .75rem; margin: 16px 0 0; line-height: 1.7; }
.qca-progress-review { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; border-top: 1px solid #e1e5eb; border-bottom: 1px solid #e1e5eb; padding: 22px 0; margin-bottom: 20px; }
.qca-progress-review__copy { flex: 1 1 260px; min-width: 0; }
.qca-progress-eyebrow { color: #657083; font-size: .72rem; font-weight: 600; margin: 0 0 9px; }
.qca-progress-review h4 { margin: 0; font-size: 1.15rem; line-height: 1.5; color: #293344; }
.qca-progress-delta { white-space: nowrap; }
.qca-progress-review__copy > p:last-child { margin: 7px 0 0; color: #657083; font-size: .8rem; line-height: 1.7; }
.qca-progress-comparison { display: flex; flex: 0 1 360px; align-items: center; gap: 22px; margin: 0; }
.qca-progress-comparison > div { flex: 1; min-width: 0; }
.qca-progress-comparison > div + div { border-left: 1px solid #dce1e8; padding-left: 22px; }
.qca-progress-comparison dt { color: #657083; font-size: .75rem; }
.qca-progress-comparison dd { margin: 5px 0; color: #293344; font-size: 1.7rem; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.qca-progress-comparison dd small { font-size: .75rem; font-weight: 400; margin-left: 6px; }
.qca-progress-comparison span { display: block; color: #657083; font-size: .65rem; overflow-wrap: anywhere; }
.qca-progress-review--improved .qca-progress-comparison > div:last-child dd { color: #217263; }
.qca-progress-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.qca-progress-modes { display: inline-flex; padding: 3px; margin: 0; border: 1px solid #dce1e8; border-radius: 5px; background: #eef1f5; }
.qca-progress-modes label { position: relative; cursor: pointer; }
.qca-progress-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qca-progress-modes span { display: block; padding: 8px 16px; font-size: .8rem; border: 1px solid transparent; border-radius: 3px; color: #657083; }
.qca-progress-modes input:checked + span { background: #fff; border-color: #dce1e8; color: #293344; font-weight: 700; }
.qca-progress-modes input:focus-visible + span { outline: 2px solid #bf533b; outline-offset: 2px; }
.qca-progress-axis-note { margin: 0; color: #217263; font-size: .75rem; }
.qca-progress-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .7rem; color: #657083; margin-bottom: 12px; }
.qca-progress-legend span { display: inline-flex; align-items: center; gap: 8px; }
.qca-progress-legend__actual::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8192ac; }
.qca-progress-legend__average::before { content: ''; width: 20px; height: 3px; background: #bf533b; }
.qca-progress-inspection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e1e5eb; padding-top: 18px; margin-top: 18px; }
.qca-progress-inspection > div { min-width: 0; }
.qca-progress-inspection [data-history-selected-date] { display: block; font-size: .72rem; color: #657083; }
.qca-progress-inspection strong { font-size: 1.3rem; display: block; margin-top: 3px; }
.qca-progress-inspection p { color: #657083; font-size: .75rem; margin: 3px 0 0; }
.qca-progress-inspection label { width: 220px; max-width: 100%; display: grid; gap: 8px; font-size: .72rem; color: #657083; }
.qca-progress-inspection input { width: 100%; margin: 0; accent-color: #bf533b; }
.qca-progress-toolbar[hidden], .qca-progress-legend[hidden], .qca-progress-inspection[hidden], .qca-progress-legend span[hidden] { display: none; }
.qca-history-table-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.qca-history-table-wrap { overflow-x: auto; }
.qca-history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; font-variant-numeric: tabular-nums; }
.qca-history-table th { font-size: .75rem; color: #a6a6ad; font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--qca-line); white-space: nowrap; }
.qca-history-table td { padding: 16px 10px; border-bottom: 1px solid var(--qca-line); white-space: nowrap; }
.qca-history-table td strong { color: #f4f5f3; }
.qca-history-table tbody tr:hover { background: rgba(255,255,255,.025); }
.qca-history-table a { color: #66d4bc; }
.qca-history-group-values span { display: inline-block; min-width: 34px; color: #aaaab0; }
.qca-history-empty { padding: 40px 0 70px; border-top: 1px solid var(--qca-line); }
.qca-history-empty strong { font-size: 1.2rem; }
.qca-history-empty p { color: #a6a6ad; }
.qca-history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 20px; font-size: .85rem; }
.qca-history-pagination a, .qca-history-profile-back { color: #66d4bc; }
.qca-history-profiles { display: grid; gap: 12px; }
.qca-history-profiles a { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--qca-line); }
.qca-history-profiles span { color: #a6a6ad; font-size: .85rem; }
.qca-history-profile-back { display: inline-block; margin-top: 24px; }
@media (max-width: 700px) {
  .qca-training-navigation { padding-right: 16px; padding-left: 16px; }
  .qca-student-search { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0 30px; }
  .qca-student-search > div { gap: 12px; }
  .qca-student-search input { min-height: 54px; padding: 12px 14px; }
  .qca-student-search label { font-size: 16px; }
  .qca-student-search .button { min-height: 54px; padding: 10px 14px; font-size: 15px; }
  .qca-student-history { padding: 34px 16px 50px; }
  .qca-history-heading { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 28px; }
  .qca-history-heading h2 { font-size: 30px; line-height: 1.3; }
  .qca-history-eyebrow { display: none; }
  .qca-history-filter { margin-bottom: 30px; }
  .qca-history-filter label { line-height: 1.7; margin-bottom: 10px; }
  .qca-history-filter select, .qca-history-filter .button { min-height: 50px; font-size: 16px; }
  .qca-history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qca-history-stats > div { padding: 24px 16px; }
  .qca-history-stats > div:nth-child(2n) { border-right: 0; }
  .qca-history-stats > div:nth-child(n+3) { display: none; }
  .qca-history-stats dd { font-size: 28px; margin: 10px 0; }
  .qca-history-stats span { font-size: 12px; line-height: 1.8; }
  .qca-history-trend-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .qca-history-trend-heading label { justify-content: space-between; width: 100%; font-size: 13px; }
  .qca-history-trend select { min-height: 46px; width: 150px; font-size: 15px; }
  .qca-history-canvas { height: 280px; }
  .qca-history-trend { padding: 24px 18px; margin: 32px -8px 0; }
  .qca-progress-review { padding: 24px 0; gap: 26px; margin-bottom: 26px; }
  .qca-progress-review h4 { font-size: 18px; line-height: 1.65; }
  .qca-progress-review__copy > p:last-child { font-size: 13px; line-height: 1.9; margin-top: 10px; }
  .qca-progress-comparison { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .qca-progress-comparison > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px; }
  .qca-progress-comparison > div + div { border-left: 0; padding: 18px 0 0; border-top: 1px solid #e1e5eb; }
  .qca-progress-comparison dt { font-size: 13px; }
  .qca-progress-comparison dd { font-size: 26px; margin: 0; white-space: nowrap; }
  .qca-progress-comparison span { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; overflow-wrap: normal; }
  .qca-progress-toolbar { gap: 18px; margin-bottom: 20px; }
  .qca-progress-modes { width: 100%; }
  .qca-progress-modes label { flex: 1; text-align: center; }
  .qca-progress-modes span { padding: 12px 8px; font-size: 14px; min-height: 46px; }
  .qca-progress-axis-note { font-size: 12px; }
  .qca-progress-legend { font-size: 12px; gap: 10px 18px; line-height: 1.8; margin-bottom: 18px; }
  .qca-progress-inspection { margin-top: 24px; padding-top: 22px; gap: 24px; }
  .qca-progress-inspection p { font-size: 13px; line-height: 1.8; }
  .qca-progress-inspection input { height: 32px; }
  .qca-progress-inspection label { width: 100%; }
  .qca-history-chart-summary { font-size: 12px; line-height: 1.9; margin-top: 24px; }
  .qca-history-table-heading { margin-top: 36px; }
  .qca-history-table td { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 560px) {
  .qca-history-table th:nth-child(3), .qca-history-table td:nth-child(3) { display: none; }
  .qca-history-table th, .qca-history-table td { padding-right: 6px; padding-left: 6px; }
}
.qca-training-board__intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
.qca-training-board__kicker { width: 100%; margin: 0; color: var(--qca-orange); font-size: .75rem; font-weight: 800; }
.qca-training-board__intro h2 { margin: 0; font-size: 1.65rem; }
.qca-training-board__intro > p:last-child { margin: 0; color: var(--qca-muted); }
.qca-training-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid var(--qca-line); background: rgba(21, 21, 23, .82); }
.qca-training-filters label { display: grid; min-width: 0; gap: 5px; color: var(--qca-muted); font-size: .78rem; }
.qca-training-filters select { width: 100%; min-width: 0; min-height: 46px; padding: 8px 36px 8px 12px; color: var(--qca-cream); background: var(--qca-bg); border: 1px solid #45454a; border-radius: 3px; }
.qca-training-filters .button { min-height: 46px; white-space: nowrap; }
.qca-training-board__selected { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 14px; }
.qca-training-board__selected span { padding: 4px 10px; color: #e9e1d5; border-left: 2px solid var(--qca-red); background: rgba(242, 238, 230, .06); font-size: .78rem; }
.qca-training-ranking { border-top: 1px solid var(--qca-line); }
.qca-training-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(120px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(100px, .8fr) 24px; gap: 16px; align-items: center; min-height: 74px; padding: 12px 16px; border-bottom: 1px solid var(--qca-line); transition: background-color 160ms ease, border-color 160ms ease; }
.qca-training-row:hover, .qca-training-row:focus-visible { background: rgba(127, 29, 29, .2); border-bottom-color: var(--qca-red-dark); }
.qca-training-row__rank { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--qca-muted); font-size: .83rem; font-weight: 700; }
.qca-training-row__rank-label { min-width: 0; }
.qca-rank-medal { flex: 0 0 auto; display: inline-flex; width: 26px; height: 32px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.qca-rank-medal svg { display: block; width: 100%; height: 100%; }
.qca-training-row--rank-1 .qca-training-row__rank { color: #e7bd69; }
.qca-training-row--rank-2 .qca-training-row__rank { color: #c9ced2; }
.qca-training-row--rank-3 .qca-training-row__rank { color: #c98c69; }
.qca-training-row__name { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
.qca-training-row__meta { color: var(--qca-muted); font-size: .8rem; }
.qca-training-row__score { color: var(--qca-cream); font-size: 1.18rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.qca-training-row__date { color: var(--qca-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.qca-training-row__arrow { color: var(--qca-orange); text-align: right; }
.qca-training-empty, .qca-training-notice { padding: 40px 24px; border: 1px solid var(--qca-line); background: var(--qca-panel); }
.qca-training-empty strong, .qca-training-notice h2 { font-size: 1.2rem; }
.qca-training-empty p, .qca-training-notice > p:not(.qca-training-notice__eyebrow) { color: var(--qca-muted); }
.qca-training-privacy { margin: 28px 0 0; color: var(--qca-muted); font-size: .78rem; }
.qca-training-notice { max-width: 760px; margin: 64px auto; }
.qca-training-detail { padding: 48px clamp(22px, 6vw, 82px) 72px; }
.qca-training-detail__topline { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--qca-line); color: var(--qca-muted); font-size: .85rem; }
.qca-training-detail__topline a:hover { color: var(--qca-cream); }
.qca-training-detail__heading { padding: 42px 0 22px; }
.qca-training-detail__heading h2 { margin: 0; font-size: 2.6rem; overflow-wrap: anywhere; }
.qca-training-detail__heading > p:last-child { margin: 8px 0 0; color: var(--qca-muted); }
.qca-training-detail__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 22px; border-left: 3px solid var(--qca-orange); background: var(--qca-panel); }
.qca-training-detail__score span, .qca-training-detail__score small { color: var(--qca-muted); }
.qca-training-detail__score strong { color: var(--qca-cream); font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.qca-training-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.qca-training-detail__panel { min-width: 0; padding: 22px; border: 1px solid var(--qca-line); background: rgba(21, 21, 23, .75); }
.qca-training-detail__panel h3 { margin: 0 0 14px; font-size: 1rem; }
.qca-training-detail__panel > p { color: #d0cbc2; overflow-wrap: anywhere; }
.qca-training-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.qca-training-groups dt, .qca-training-groups dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(242, 238, 230, .08); }
.qca-training-groups dt { color: var(--qca-muted); }
.qca-training-groups dd { text-align: right; font-variant-numeric: tabular-nums; }
.qca-training-detail__media-panel { margin-top: 18px; }
.qca-training-photo { max-width: 760px; margin: 0 0 18px; }
.qca-training-photo img { width: 100%; max-height: 560px; object-fit: contain; background: #080809; }
.qca-training-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.qca-training-card-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 600px); gap: 20px 30px; align-items: center; margin-top: 18px; padding: 26px; border: 1px solid rgba(196, 154, 82, .42); background: linear-gradient(140deg, rgba(196, 154, 82, .08), rgba(21, 21, 23, .96) 42%); }
.qca-training-card-panel__intro { min-width: 0; }
.qca-training-card-panel__eyebrow { margin: 0 0 8px; color: #c49a52; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.qca-training-card-panel h3 { margin: 0; color: var(--qca-cream); font-size: 1.35rem; }
.qca-training-card-panel__intro > p:last-child { margin: 9px 0 0; color: var(--qca-muted); }
.qca-training-card-panel__frame { grid-column: 2; grid-row: 1 / span 3; width: min(100%, 380px); aspect-ratio: 4 / 5; justify-self: end; overflow: hidden; border: 1px solid rgba(196, 154, 82, .55); background: #121212; box-shadow: 0 18px 36px rgba(0, 0, 0, .26); }
.qca-training-card-panel__frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qca-training-card-panel__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--qca-muted); font-size: .82rem; }
.qca-training-card-panel__meta span { padding: 6px 9px; border-left: 2px solid #c49a52; background: rgba(242, 238, 230, .05); }
.qca-training-card-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qca-training-card-panel__download { width: fit-content; }
.qca-honor-card-switcher { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
.qca-honor-card-switcher__tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.qca-honor-card-switcher__tab { min-height: 36px; padding: 7px 11px; color: var(--qca-muted); background: rgba(18, 18, 18, .86); border: 1px solid rgba(196, 154, 82, .3); font: inherit; font-size: .78rem; cursor: pointer; }
.qca-honor-card-switcher__tab:hover, .qca-honor-card-switcher__tab.is-active { color: var(--qca-ink); background: #c49a52; border-color: #c49a52; }
.qca-honor-card { display: none; position: relative; container-type: inline-size; width: 100%; overflow: hidden; background-color: #121212; background-position: center; background-repeat: no-repeat; background-size: contain; box-shadow: 0 18px 36px rgba(0, 0, 0, .28); }
.qca-honor-card.is-active { display: block; }
.qca-honor-card--square { aspect-ratio: 1 / 1; }
.qca-honor-card--portrait { aspect-ratio: 4 / 5; }
.qca-honor-card--mobile { aspect-ratio: 9 / 16; }
.qca-honor-card__content { position: absolute; inset: 0; color: #211d19; font-family: inherit; }
.qca-honor-card__main { position: absolute; top: 31%; right: 16%; left: 16%; height: 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.qca-honor-card__main em { color: #7d1f24; font-size: clamp(.55rem, 1.45vw, .84rem); font-style: normal; font-weight: 900; letter-spacing: .12em; line-height: 1.1; }
.qca-honor-card__main strong { max-width: 90%; margin-top: .2em; color: #171412; font-size: clamp(1rem, 3.4cqw, 2rem); line-height: 1.08; overflow-wrap: anywhere; }
.qca-honor-card__main span { margin-top: .3em; color: #7d1f24; font-size: clamp(.55rem, 1.45vw, .86rem); font-weight: 900; }
.qca-honor-card__main b { margin-top: .13em; color: #171412; font-size: clamp(1.35rem, 5vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.qca-honor-card__main small { margin-top: .42em; color: #554b43; font-size: clamp(.4rem, 1.05vw, .64rem); font-weight: 800; letter-spacing: .06em; }
/* Bottom facts: each unit sits in the column of its baked-in template icon, between the icon row and the frame rule. */
.qca-honor-card__facts { --meta-size: clamp(10px, 3.55cqw, 18px); --meta-first-shift: clamp(12px, 7cqw, 40px); position: absolute; top: 87.5%; right: 2.5%; left: 2.5%; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; column-gap: 0; }
.qca-honor-card__fact { min-width: 0; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.qca-honor-card__fact-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.qca-honor-card__fact-value { display: block; width: 100%; max-width: none; margin: 0; color: #f3eadb; font-size: var(--meta-size); font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap; overflow: visible; font-variant-numeric: tabular-nums; }
.qca-honor-card__fact--project { transform: translateX(var(--meta-first-shift)); }
.qca-honor-card__footer { position: absolute; top: 65%; right: 10%; left: 10%; margin: 0; color: #d5ad69; font-size: clamp(.55rem, 1.25cqw, .8rem); font-weight: 800; letter-spacing: .08em; text-align: center; }
.qca-honor-card--square .qca-honor-card__main { top: 32%; right: 15%; left: 15%; height: 27%; }
.qca-honor-card--square .qca-honor-card__facts { top: 88%; right: 2.5%; left: 2.5%; }
.qca-honor-card--square .qca-honor-card__facts { --meta-size: clamp(10px, 3.35cqw, 17px); }
.qca-honor-card--square .qca-honor-card__footer { top: 64%; }
.qca-honor-card--portrait .qca-honor-card__main { top: 31%; right: 14%; left: 14%; height: 26%; }
.qca-honor-card--portrait .qca-honor-card__facts { top: 87.5%; right: 2.5%; left: 2.5%; }
.qca-honor-card--portrait .qca-honor-card__footer { top: 63%; }
.qca-honor-card--mobile .qca-honor-card__main { top: 29%; right: 13%; left: 13%; height: 30%; }
.qca-honor-card--mobile .qca-honor-card__facts { top: 88.5%; right: 2.5%; left: 2.5%; }
.qca-honor-card--mobile .qca-honor-card__facts { --meta-size: clamp(10px, 3.55cqw, 18px); }
.qca-honor-card--mobile .qca-honor-card__footer { top: 64%; }
.qca-honor-card-switcher__note { margin: 9px 0 0; color: var(--qca-muted); font-size: .73rem; }

@media (max-width: 560px) {
  .qca-honor-card-switcher { width: calc(100% + 36px); margin-left: -18px; }
  .qca-honor-card__facts { --meta-size: clamp(10px, 3.55cqw, 18px); }
}
.qca-training-card-panel__frame--custom { grid-column: 2; grid-row: 1 / span 3; width: min(100%, 600px); aspect-ratio: auto; }
.qca-training-card-panel__frame--custom img { width: 100%; height: auto; object-fit: contain; }
.qca-training-home { padding-top: 42px; }
.qca-training-home__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 36px; align-items: center; padding: 34px clamp(22px, 5vw, 64px); border: 1px solid var(--qca-line); border-left: 3px solid var(--qca-red); background: linear-gradient(115deg, rgba(127, 29, 29, .24), rgba(21, 21, 23, .96) 48%); }
.qca-training-home h2 { margin: 7px 0; font-size: 2rem; }
.qca-training-home__inner > div:first-child > p:not(.eyebrow) { max-width: 520px; color: var(--qca-muted); }
.qca-training-home__inner .button { margin-top: 10px; }
.qca-training-home__preview { border-top: 1px solid var(--qca-line); }
.qca-training-home__preview-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 54px; border-bottom: 1px solid var(--qca-line); font-size: .88rem; }
.qca-training-home__preview-row span { color: var(--qca-orange); }
.qca-training-home__preview-row strong { overflow-wrap: anywhere; }
.qca-training-home__preview-row b { font-variant-numeric: tabular-nums; }
.qca-training-home__empty { padding: 18px; color: var(--qca-muted); border: 1px solid var(--qca-line); }
@media (max-width: 800px) {
  .qca-training-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qca-training-filters .button { grid-column: 1 / -1; justify-content: center; }
  .qca-training-home__inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .qca-training-row { grid-template-columns: minmax(82px, .7fr) minmax(90px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(90px, .8fr) 22px; gap: 10px; }
}
@media (max-width: 560px) {
  .qca-training-hero { min-height: 250px; padding-top: 44px; padding-bottom: 38px; }
  .qca-training-hero h1 { font-size: 3rem; }
  .qca-training-hero__mark { width: 72px; }
  .qca-training-hero__mark strong { font-size: 1.35rem; }
  .qca-training-board { padding-top: 46px; }
  .qca-training-board__intro { display: block; }
  .qca-training-board__intro > p:last-child { margin-top: 7px; }
  .qca-training-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .qca-training-filters .button { grid-column: auto; }
  .qca-training-row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 5px 12px; padding: 13px 8px; }
  .qca-training-row__rank { grid-column: 1; grid-row: 1; }
  .qca-training-row__name { grid-column: 2; grid-row: 1; }
  .qca-training-row__meta { grid-column: 2; grid-row: 2; font-size: .72rem; }
  .qca-training-row__score { grid-column: 2; grid-row: 3; font-size: 1.05rem; }
  .qca-training-row__date { grid-column: 1 / 3; grid-row: 4; font-size: .75rem; }
  .qca-training-row__arrow { grid-column: 3; grid-row: 1 / 5; }
  .qca-training-detail { padding-top: 30px; }
  .qca-training-detail__grid { grid-template-columns: minmax(0, 1fr); }
  .qca-training-detail__heading h2 { font-size: 2rem; }
  .qca-training-detail__score { gap: 6px 12px; }
  .qca-training-detail__score strong { width: 100%; font-size: 1.8rem; }
  .qca-training-card-panel { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .qca-training-card-panel__frame { grid-column: 1; grid-row: auto; width: min(100%, 600px); justify-self: center; }
  .qca-training-card-panel__meta { grid-column: 1; }
  .qca-honor-card-switcher { grid-column: 1; grid-row: auto; }
  .qca-training-card-panel__frame--custom { grid-column: 1; grid-row: auto; }
  .qca-training-home { padding-top: 20px; }
  .qca-training-home h2 { font-size: 1.65rem; }
  .qca-training-home__preview-row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 7px; font-size: .8rem; }
}
.contact-band__detail > span:first-child { color: var(--qca-muted); font-size: 0.75rem; }
.contact-band__detail strong,
.contact-band__detail a { min-width: 0; color: var(--qca-cream); overflow-wrap: anywhere; }
.contact-band__detail a:hover { color: var(--qca-orange); }
.copy-wechat { display: inline-flex; width: fit-content; min-height: 36px; align-items: center; justify-content: center; padding: 7px 11px; color: var(--qca-cream); background: transparent; border: 1px solid rgba(243, 239, 231, 0.3); font: inherit; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.contact-band__detail .copy-wechat { grid-column: 2; }
.copy-wechat:hover { color: var(--qca-ink); background: var(--qca-orange); border-color: var(--qca-orange); }
.copy-wechat__status { min-height: 1.2em; color: var(--qca-orange); font-size: 0.75rem; }
.contact-band__detail .copy-wechat__status { grid-column: 2; }
.mobile-wechat-bar { display: none; }

/* Keep the layered archive feel lightweight: lines and grids, no heavy 3D engine. */
.work-wall--editorial .work-wall__item--2 { transform: translateY(18px); }
.work-wall--editorial .work-wall__item--3 { transform: translateY(-10px); }

@media (max-width: 820px) {
  .work-wall--editorial .work-wall__item--2,
  .work-wall--editorial .work-wall__item--3 { transform: none; }
}

@media (max-width: 560px) {
  body.qca-has-mobile-wechat { padding-bottom: 64px; }
  .contact-band__details { grid-template-columns: 1fr; gap: 16px; }
  .contact-band__qr { grid-row: auto; width: min(100%, 220px); justify-self: center; }
  .contact-band__detail { grid-template-columns: 62px minmax(0, 1fr); }
  .mobile-wechat-bar { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; color: var(--qca-cream); background: rgba(11, 11, 12, 0.96); border-top: 1px solid rgba(243, 239, 231, 0.2); box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.22); }
  .mobile-wechat-bar > span:first-child { color: var(--qca-muted); font-size: 0.72rem; white-space: nowrap; }
  .mobile-wechat-bar .copy-wechat { flex: 1; min-width: 0; justify-content: space-between; padding: 8px 10px; }
  .mobile-wechat-bar .copy-wechat strong { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-wechat-bar .copy-wechat__status { position: absolute; right: 14px; bottom: 58px; padding: 4px 7px; background: var(--qca-orange); color: var(--qca-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .button,
  .button span,
  .work-wall__media img,
  .work-wall__view,
  .editorial-row,
  .editorial-row__cover img,
  .video-tile__media img { transition: none !important; transform: none !important; }
}

/* Mobile content safety rules. */
@media (max-width: 560px) {
  html,
  body { max-width: 100%; }
  .site-main--home { width: 100%; }
  .site-main--home .section { width: 100%; min-width: 0; }

  .section-heading,
  .section-heading__aside,
  .about-summary__copy,
  .contact-band__intro,
  .contact-band__content { min-width: 0; }
  .section-heading--chapter h2,
  .about-summary__copy h2,
  .contact-band__intro h2 { max-width: 100%; font-size: clamp(2rem, 9vw, 2.8rem); overflow-wrap: anywhere; }

  .work-wall--exhibition,
  .work-wall--editorial,
  .video-grid--feature,
  .video-grid--archive { display: grid; width: 100%; min-width: 0; grid-template-columns: 1fr; grid-template-rows: none; }
  .work-wall--exhibition { gap: 14px; }
  .work-wall--exhibition .work-wall__item,
  .work-wall--exhibition .work-wall__item--1,
  .work-wall--editorial .work-wall__item,
  .work-wall--editorial .work-wall__item--1 { width: 100%; min-width: 0; min-height: 330px; grid-column: auto; grid-row: auto; transform: none; }
  .work-wall--exhibition .work-wall__item--1,
  .work-wall--editorial .work-wall__item--1 { min-height: 380px; }
  .work-wall--exhibition .work-wall__media,
  .work-wall--editorial .work-wall__media { width: 100%; max-width: 100%; }
  .work-wall--exhibition .work-wall__media img,
  .work-wall--editorial .work-wall__media img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
  .work-wall--exhibition .work-wall__body,
  .work-wall--editorial .work-wall__body { right: 0; left: 0; min-width: 0; }
  .work-wall--exhibition .work-wall__body h3,
  .work-wall--editorial .work-wall__body h3 { max-width: 100%; overflow-wrap: anywhere; }

  .section--editorial-light .editorial-row,
  .editorial-list--archive .editorial-row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }
  .editorial-row__main { min-width: 0; padding-left: 14px; }
  .editorial-row__main h3,
  .editorial-row__main p { max-width: 100%; overflow-wrap: anywhere; }
  .editorial-row__action { grid-column: auto; min-width: 0; }
  .editorial-row__cover { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
  .editorial-row__cover img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; }

  .video-grid--feature .video-tile,
  .video-grid--feature .video-tile--1 { display: block; width: 100%; min-width: 0; min-height: 0; grid-column: auto; grid-row: auto; }
  .video-grid--feature .video-tile--1 { min-height: 0; }
  .video-grid--feature .video-tile__media,
  .video-grid--feature .video-tile--1 .video-tile__media { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .video-grid--feature .video-tile__media img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
  .video-grid--feature .video-tile--1 .video-tile__body { position: static; padding: 20px; background: var(--qca-panel); }
  .video-grid--feature .video-tile--1 .video-tile__body h3 { max-width: 100%; font-size: 1.4rem; overflow-wrap: anywhere; }
  .video-tile__body { min-width: 0; }
  .video-tile__body p { min-height: 0; overflow-wrap: anywhere; }

  .about-summary { display: grid; width: 100%; min-width: 0; grid-template-columns: 1fr; gap: 22px; }
  .about-summary__stats { grid-column: 1; width: 100%; min-width: 0; }
  .contact-band { width: 100%; min-width: 0; grid-template-columns: 1fr; }
  .contact-band__content { grid-template-columns: 1fr; }
  .contact-band__content > * { max-width: 100%; }
  .contact-band__content img,
  .contact-band__content video,
  .contact-band__content iframe { width: 100%; max-width: 100%; height: auto; }

  /* Prevent user-provided media and long strings from widening any mobile block. */
  .site-main--home :where(img, svg, video, iframe, table) { max-width: 100%; }
  .site-main--home :where(p, h1, h2, h3, h4, a, span, strong, time) { overflow-wrap: anywhere; }
  .site-main--home :where(.section, .section-inner, .container, .entry-content, .hero, .hero > *) { min-width: 0; }
  .hero--archive .hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero--archive .hero__actions .button { max-width: 100%; }
}

/* Single source of truth for the range archive hero. */
.hero--archive {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 20px 40px;
  color: var(--qca-cream);
  background: #09090a;
}
.hero--archive .hero__topline,
.hero--archive .hero__copy,
.hero--archive .hero__poster-stage,
.hero--archive .hero__visual,
.hero--archive .hero__index { width: 100%; max-width: 100%; min-width: 0; }
.hero--archive .hero__topline { display: flex; justify-content: space-between; gap: 20px; color: rgba(243, 239, 231, 0.68); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero--archive .hero__copy { position: relative; min-width: 0; }
.hero--archive .hero__brand-name { margin: 0 0 12px; color: var(--qca-orange); font-size: 0.9rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.hero--archive .hero__copy h1 { max-width: 100%; margin: 0; color: var(--qca-cream); font-size: clamp(2.8rem, 8vw, 5.3rem); line-height: 1.02; overflow-wrap: anywhere; }
.hero--archive .hero__discipline { max-width: 100%; margin: 16px 0 0; color: var(--qca-orange); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.55; }
.hero--archive .hero__subtitle { max-width: 500px; margin: 18px 0 0; color: rgba(243, 239, 231, 0.8); font-size: 1rem; line-height: 1.7; }
.hero--archive .hero__statement { max-width: 420px; margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--qca-red); color: var(--qca-cream); font-weight: 800; line-height: 1.7; }
.hero--archive .hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__poster-stage { position: relative; min-width: 0; margin-top: 26px; }
.hero__visual { position: relative; min-height: 0; background: transparent; border: 0; transform: none; }
.hero__visual-image { display: block; width: 100%; max-width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: center; }
.hero__visual-empty { display: grid; min-height: 220px; place-items: center; color: var(--qca-muted); background: var(--qca-panel-2); }
.hero__visual::after { display: none; content: none; }
.hero__visual-caption { display: grid; gap: 5px; margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--qca-orange); }
.hero__visual-caption span { color: var(--qca-orange); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.14em; }
.hero__visual-caption strong { color: var(--qca-cream); font-size: 0.92rem; }
.hero__visual-caption small { color: rgba(243, 239, 231, 0.62); font-size: 0.7rem; line-height: 1.5; }
.hero__poster-stamp { display: none; }
.hero--archive .hero__index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border-top: 1px solid rgba(243, 239, 231, 0.28); }
.hero--archive .hero__index a { display: grid; gap: 4px; min-height: 42px; padding: 10px 12px 0 0; border-right: 1px solid rgba(243, 239, 231, 0.2); color: var(--qca-cream); font-size: 0.72rem; font-weight: 800; }
.hero--archive .hero__index a:last-child { border-right: 0; padding-left: 12px; }
.hero--archive .hero__index a:nth-child(2) { padding-left: 12px; }
.hero--archive .hero__index span { color: var(--qca-red); }

.qca-guide-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(172px, 36%);
  gap: 14px;
  align-items: center;
  max-width: 470px;
  margin-top: 26px;
  padding: 16px 16px 14px 18px;
  color: var(--qca-cream);
  background: linear-gradient(110deg, rgba(32, 32, 36, 0.9), rgba(21, 21, 23, 0.76));
  border: 1px solid rgba(243, 239, 231, 0.2);
  border-left: 3px solid var(--qca-orange);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}
.qca-guide-card::before { position: absolute; z-index: -1; right: 8%; bottom: -22%; width: 46%; height: 74%; background: radial-gradient(circle, rgba(214, 47, 36, 0.2), transparent 68%); content: ""; pointer-events: none; }
.qca-guide-card__figure { grid-column: 2; grid-row: 1; width: 100%; min-height: 210px; align-self: end; }
.qca-guide-figure { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.qca-guide-figure--placeholder { display: grid; min-height: 210px; place-items: center; padding: 12px; color: rgba(243, 239, 231, 0.58); background: rgba(11, 11, 12, 0.18); border: 1px dashed rgba(243, 239, 231, 0.35); font-size: 0.72rem; line-height: 1.45; text-align: center; }
.qca-guide-card__body { grid-column: 1; grid-row: 1; min-width: 0; }
.qca-guide-card__label { display: block; margin-bottom: 5px; color: var(--qca-orange); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; }
.qca-guide-card__body > strong { display: block; font-size: 1rem; }
.qca-guide-card__body p { margin: 8px 0 10px; color: rgba(243, 239, 231, 0.72); font-size: 0.8rem; line-height: 1.55; }
.qca-guide-card__action { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--qca-cream); font-size: 0.78rem; font-weight: 900; }
.qca-guide-card__action span { color: var(--qca-orange); }
.qca-guide-card__action:hover,
.qca-guide-card__action:focus-visible { color: var(--qca-orange); }

.qca-guide-stage {
  --guide-rotate-x: 0deg;
  --guide-rotate-y: 0deg;
  --guide-shift-x: 0px;
  --guide-shift-y: 0px;
  position: relative;
  height: 246px;
  overflow: hidden;
  isolation: isolate;
  perspective: 720px;
  background: radial-gradient(circle at 62% 34%, rgba(214, 47, 36, 0.18), transparent 38%), linear-gradient(145deg, #24262b, #101113 72%);
  border: 1px solid rgba(243, 239, 231, 0.2);
  box-shadow: inset 0 -28px 48px rgba(0, 0, 0, 0.2), 0 12px 22px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease;
}
.qca-guide-stage:hover { border-color: rgba(226, 151, 69, 0.7); transform: translateY(-2px); }
.qca-guide-stage__rings,
.qca-guide-stage__reticle,
.qca-guide-stage__floor,
.qca-guide-stage__person,
.qca-guide-stage__hud { position: absolute; pointer-events: none; }
.qca-guide-stage__rings { z-index: 0; top: 4px; left: 19%; width: 67%; aspect-ratio: 1; opacity: 0.7; transform: translateZ(-20px) translate(var(--guide-shift-x), var(--guide-shift-y)) rotateX(62deg); transform-origin: center; transition: transform 180ms ease; }
.qca-guide-stage__rings i { position: absolute; inset: 0; display: block; border: 1px solid rgba(214, 47, 36, 0.22); border-radius: 50%; }
.qca-guide-stage__rings i:nth-child(2) { inset: 17%; border-color: rgba(226, 151, 69, 0.28); }
.qca-guide-stage__rings i:nth-child(3) { inset: 36%; border-color: rgba(243, 239, 231, 0.3); }
.qca-guide-stage__reticle { z-index: 1; top: 34px; left: 13%; width: 16px; height: 16px; border: 1px solid var(--qca-orange); border-radius: 50%; opacity: 0.88; transform: translateZ(22px) translate(var(--guide-shift-x), var(--guide-shift-y)); transition: transform 180ms ease; }
.qca-guide-stage__reticle::before, .qca-guide-stage__reticle::after { position: absolute; content: ''; background: var(--qca-orange); }
.qca-guide-stage__reticle::before { top: 8px; left: -7px; width: 30px; height: 1px; }
.qca-guide-stage__reticle::after { top: -7px; left: 8px; width: 1px; height: 30px; }
.qca-guide-stage__reticle span { position: absolute; inset: 5px; display: block; background: var(--qca-orange); border-radius: 50%; }
.qca-guide-stage__reticle b { position: absolute; top: -18px; left: 25px; width: 58px; height: 1px; background: rgba(214, 47, 36, 0.62); transform: rotate(25deg); transform-origin: left; }
.qca-guide-stage__floor { display: none; }
.qca-guide-stage__person { z-index: 2; right: -6%; bottom: 0; width: 110%; height: 100%; padding-top: 10px; box-sizing: border-box; transform: translate3d(var(--guide-shift-x), var(--guide-shift-y), 26px) rotateX(var(--guide-rotate-x)) rotateY(var(--guide-rotate-y)); transform-origin: center center; transition: transform 160ms ease-out; filter: drop-shadow(-12px 14px 12px rgba(0, 0, 0, 0.34)); }
.qca-guide-stage__image { object-position: center bottom; }
.qca-guide-stage__hud { z-index: 3; top: 12px; right: 10px; bottom: auto; display: grid; gap: 2px; color: rgba(243, 239, 231, 0.64); font-size: 0.52rem; letter-spacing: 0.12em; transform: translateZ(34px) translate(var(--guide-shift-x), var(--guide-shift-y)); transition: transform 180ms ease; }
.qca-guide-stage__hud b { color: var(--qca-orange); font-size: 0.66rem; letter-spacing: 0.2em; }

.qca-guide-float-wrap { display: none; }
.qca-guide-panel[hidden] { display: none; }

@media (max-width: 767px) {
  .qca-guide-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }
  .qca-guide-card__figure { grid-column: 1; grid-row: 1; width: min(158px, 44vw); min-height: 180px; margin: 0 auto; }
  .qca-guide-stage { height: 218px; }
  .qca-guide-stage__person { width: 110%; right: -6%; bottom: 0; }
  .qca-guide-stage__reticle { left: 10%; }
  .qca-guide-card__body { grid-column: 1; grid-row: 2; }
  .qca-guide-figure--placeholder { min-height: 180px; }
  .qca-guide-card__body p { overflow-wrap: normal; }
  .qca-guide-float-wrap {
    position: fixed;
    z-index: 40;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
    display: block;
  }
  body.qca-has-mobile-wechat .qca-guide-float-wrap { bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px)); }
  .qca-guide-float {
    display: grid;
    width: 60px;
    height: 60px;
    padding: 0;
    place-items: center;
    overflow: hidden;
    color: var(--qca-cream);
    background: var(--qca-panel);
    border: 2px solid var(--qca-orange);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    cursor: pointer;
  }
  .qca-guide-float__figure { display: block; width: 100%; height: 100%; object-fit: contain; }
  .qca-guide-float .qca-guide-figure--placeholder { min-height: 0; padding: 5px; border: 0; color: var(--qca-cream); background: transparent; font-size: 0.6rem; line-height: 1.1; }
  .qca-guide-float:focus-visible,
  .qca-guide-panel__close:focus-visible,
  .qca-guide-nav a:focus-visible { outline: 3px solid var(--qca-orange); outline-offset: 3px; }
  .qca-guide-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(320px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 180px));
    padding: 16px;
    overflow-y: auto;
    color: var(--qca-cream);
    background: rgba(21, 21, 23, 0.98);
    border: 1px solid rgba(243, 239, 231, 0.22);
    border-top: 3px solid var(--qca-orange);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.46);
  }
  .qca-guide-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .qca-guide-panel__head strong { display: block; font-size: 0.92rem; }
  .qca-guide-panel__close { min-width: 52px; min-height: 44px; padding: 6px 8px; color: var(--qca-cream); background: transparent; border: 1px solid rgba(243, 239, 231, 0.28); cursor: pointer; }
  .qca-guide-tip { margin: 14px 0; padding: 10px 12px; color: var(--qca-ink); background: var(--qca-paper); font-size: 0.78rem; line-height: 1.5; overflow-wrap: normal; }
  .qca-guide-nav { display: grid; }
  .qca-guide-nav a { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; color: var(--qca-cream); border-bottom: 1px solid rgba(243, 239, 231, 0.16); font-size: 0.86rem; font-weight: 800; }
  .qca-guide-nav a:last-child { border-bottom: 0; }
  .qca-guide-nav a span { color: var(--qca-orange); }
}

@media (min-width: 768px) {
  .hero--archive {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top top" "copy visual" "index index";
    gap: 28px clamp(28px, 5vw, 80px);
    min-height: min(780px, calc(100vh - 82px));
    padding: 36px 0 54px;
    overflow: visible;
    isolation: isolate;
  }
  .hero--archive::before {
    position: absolute;
    z-index: -1;
    inset: 0 7% 0 -8%;
    background: linear-gradient(90deg, transparent 0 42%, rgba(214, 47, 36, 0.11) 42.1% 42.5%, transparent 42.6%);
    content: "";
    pointer-events: none;
  }
  .hero--archive::after {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(243, 239, 231, 0.16);
    content: "";
    pointer-events: none;
  }
  .hero--archive .hero__topline { grid-area: top; }
  .hero--archive .hero__copy { grid-area: copy; align-self: center; padding: 0; }
  .hero--archive .hero__copy h1 { font-size: clamp(3.8rem, 6.1vw, 7.2rem); line-height: 0.96; }
  .hero__poster-stage { grid-area: visual; min-height: 600px; align-self: stretch; margin-top: 0; }
  .hero__visual { position: absolute; inset: 0 30px 0 0; width: auto; height: auto; min-height: 0; overflow: hidden; background: #171719; border: 1px solid rgba(243, 239, 231, 0.28); box-shadow: 20px 20px 0 rgba(127, 29, 29, 0.24); transform: rotate(1.2deg); }
  .hero__visual::after { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0.04), rgba(11, 11, 12, 0.7)); content: ""; pointer-events: none; }
  .hero__visual-image { height: 100%; object-fit: cover; }
  .hero__visual-empty { height: 100%; min-height: 0; background: linear-gradient(135deg, #171316, #3a1917 55%, #111114); }
  .hero__visual-caption { position: absolute; right: 28px; bottom: 28px; left: 28px; z-index: 2; margin: 0; }
  .hero__poster-stamp { position: absolute; right: -4px; bottom: 42px; z-index: 4; display: grid; gap: 5px; min-width: 150px; padding: 12px 14px; color: var(--qca-ink); background: var(--qca-orange); box-shadow: 8px 8px 0 rgba(11, 11, 12, 0.45); transform: rotate(-4deg); }
  .hero__poster-stamp span { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; }
  .hero__poster-stamp strong { font-size: 1.1rem; }
  .hero--archive .hero__index { grid-area: index; max-width: 520px; margin-top: 0; }
}

.section--manifesto-light {
  position: relative;
  overflow: hidden;
  background: var(--qca-paper);
  color: var(--qca-ink);
}
.section--manifesto-light::after {
  position: absolute;
  right: -5%;
  bottom: -55%;
  width: 42%;
  height: 100%;
  border: 1px solid rgba(23, 23, 23, 0.18);
  transform: rotate(-18deg);
  content: "";
  pointer-events: none;
}
.work-wall--magazine {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  grid-template-rows: minmax(250px, 0.94fr) minmax(280px, 1.06fr);
  gap: 20px;
  align-items: stretch;
}
.work-wall--magazine .work-wall__item { display: block; min-height: 0; }
.work-wall--magazine .work-wall__item--1 { grid-column: 1 / span 2; grid-row: 1 / span 2; min-height: 600px; }
.work-wall--magazine .work-wall__item--2 { grid-column: 3; grid-row: 1; min-height: 250px; transform: translateY(24px); }
.work-wall--magazine .work-wall__item--3 { grid-column: 3; grid-row: 2; min-height: 280px; transform: translateY(-12px); }
.work-wall--magazine .work-wall__media { position: absolute; inset: 0; min-height: 0; }
.work-wall--magazine .work-wall__media img { min-height: 100%; }
.work-wall--magazine .work-wall__body { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; padding: 76px 22px 20px; background: linear-gradient(transparent, rgba(11, 11, 12, 0.94)); }
.work-wall--magazine .work-wall__body h3 { max-width: 82%; margin: 5px 0 0; font-size: clamp(1rem, 1.7vw, 1.55rem); }
.work-wall--magazine .work-wall__body p { max-width: 600px; margin-top: 8px; color: rgba(243, 239, 231, 0.72); }
.work-wall--magazine .work-wall__view { z-index: 4; }
.work-wall--magazine .work-wall__item--2 .work-wall__body h3,
.work-wall--magazine .work-wall__item--3 .work-wall__body h3 { max-width: 100%; font-size: 1.05rem; }
.work-wall--magazine .work-wall__item--2 .work-wall__body,
.work-wall--magazine .work-wall__item--3 .work-wall__body { padding: 56px 16px 15px; }
.section--editorial-light .editorial-row { position: relative; transition: transform 180ms ease, border-color 180ms ease; }
.section--editorial-light .editorial-row:hover { transform: translateX(10px); border-color: var(--qca-red); }
.section--editorial-light .editorial-row::before { position: absolute; top: 0; bottom: 0; left: -1px; width: 3px; background: var(--qca-red); content: ""; transform: scaleY(0); transform-origin: center; transition: transform 180ms ease; }
.section--editorial-light .editorial-row:hover::before { transform: scaleY(1); }
.video-grid--feature .video-tile__play { width: 58px; height: 58px; border-radius: 0; transform: rotate(-6deg); }

@media (max-width: 900px) {
  .work-wall--magazine { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-rows: 420px 280px; }
  .work-wall--magazine .work-wall__item--1 { grid-column: 1; grid-row: 1 / span 2; }
  .work-wall--magazine .work-wall__item--2 { grid-column: 2; grid-row: 1; }
  .work-wall--magazine .work-wall__item--3 { grid-column: 2; grid-row: 2; }
}

@media (max-width: 560px) {
  .work-wall--magazine { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .work-wall--magazine .work-wall__item--1,
  .work-wall--magazine .work-wall__item--2,
  .work-wall--magazine .work-wall__item--3 { grid-column: auto; grid-row: auto; min-height: 320px; transform: none; }
  .work-wall--magazine .work-wall__item--1 { min-height: 390px; }
  .work-wall--magazine .work-wall__item--2 .work-wall__body,
  .work-wall--magazine .work-wall__item--3 .work-wall__body { padding: 72px 16px 16px; }
  .section--editorial-light .editorial-row:hover { transform: none; }
}

/* Contact source-of-truth and mobile poster safety pass. */
.contact-band__content { min-width: 0; }
.contact-source-content { min-width: 0; margin-top: 18px; }
.contact-source-content > :first-child { margin-top: 0; }
.contact-band__detail strong,
.contact-band__detail a {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 767px) {
  html,
  body { width: 100%; max-width: 100%; }
  .site-main--home { width: 100%; max-width: 100%; overflow: visible; }
  .hero--archive,
  .hero--archive .hero__topline,
  .hero--archive .hero__copy,
  .hero--archive .hero__poster-stage,
  .hero--archive .hero__visual,
  .hero--archive .hero__index { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
  .hero--archive { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 20px; overflow: visible; }
  .hero--archive::before,
  .hero--archive::after { display: none; content: none; }
  .hero--archive .hero__topline { order: 0; display: flex; gap: 12px; font-size: 0.62rem; line-height: 1.45; }
  .hero--archive .hero__copy { order: 1; position: relative; inset: auto; transform: none; padding: 28px 0 24px; }
  .hero--archive .hero__copy h1 { font-size: clamp(2.55rem, 11vw, 4.2rem); line-height: 1.08; }
  .hero--archive .hero__discipline { font-size: 0.72rem; }
  .hero--archive .hero__subtitle { font-size: 0.98rem; line-height: 1.65; }
  .hero--archive .hero__statement { font-size: 0.9rem; line-height: 1.6; }
  .hero--archive .hero__actions { margin-top: 22px; }
  .hero--archive .hero__actions .button { flex: 1 1 140px; min-width: 0; max-width: 100%; }
  .hero--archive .hero__poster-stage { order: 2; position: relative; min-height: 0; height: auto; display: block; overflow: visible; margin-top: 0; }
  .hero--archive .hero__visual { position: relative; inset: auto; height: auto; min-height: 0; background: transparent; border: 0; box-shadow: none; transform: none; }
  .hero--archive .hero__visual::before,
  .hero--archive .hero__visual::after { display: none; content: none; }
  .hero--archive .hero__visual-image { position: relative; inset: auto; display: block; width: 100%; max-width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: center; background: transparent; }
  .hero--archive .hero__visual-empty { min-height: 220px; }
  .hero--archive .hero__visual-caption { position: relative; inset: auto; width: 100%; margin-top: 14px; }
  .hero--archive .hero__visual-caption small { display: block; }
  .hero--archive .hero__poster-stamp { display: none; }
  .hero--archive .hero__index { order: 3; position: relative; inset: auto; grid-template-columns: 1fr; margin-top: 24px; }
  .hero--archive .hero__index a,
  .hero--archive .hero__index a:last-child,
  .hero--archive .hero__index a:nth-child(2) { min-height: 38px; padding: 8px 0; border-right: 0; border-bottom: 1px solid rgba(243, 239, 231, 0.2); }
  .contact-band__details { grid-template-columns: 1fr; }
  .contact-band__detail { grid-template-columns: 62px minmax(0, 1fr); }
  .contact-source-content { overflow-wrap: break-word; }
}

/* Scroll studio: a restrained Three.js field for the home narrative. */
.qca-scroll-studio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1.3fr);
  grid-template-rows: auto 1fr auto;
  gap: 28px 52px;
  min-height: 190vh;
  padding: 12vh 0 10vh;
  color: var(--qca-cream);
  background: #111417;
  overflow: clip;
  isolation: isolate;
}
.qca-scroll-studio::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 38%, rgba(242, 238, 230, 0.04) 38.1%, transparent 38.25%), linear-gradient(90deg, transparent 0 68%, rgba(214, 47, 36, 0.06) 68.1%, transparent 68.25%);
  content: "";
  pointer-events: none;
}
.qca-scroll-studio__intro { grid-column: 1; align-self: start; padding-top: 9vh; }
.qca-scroll-studio__intro h2 { max-width: 430px; margin: 0; color: var(--qca-cream); font-size: clamp(2.25rem, 4vw, 4.2rem); line-height: 1.02; }
.qca-scroll-studio__intro h2 em { color: var(--qca-orange); font-style: normal; }
.qca-scroll-studio__lede { max-width: 320px; margin: 24px 0 0; color: rgba(242, 238, 230, 0.66); font-size: 0.96rem; }
.qca-scroll-studio__stage { position: sticky; top: 118px; grid-column: 2; grid-row: 1 / span 2; height: min(70vh, 650px); min-height: 430px; border: 1px solid rgba(242, 238, 230, 0.2); background: linear-gradient(180deg, #1b1e1f, #0d1012 72%); box-shadow: 18px 18px 0 rgba(214, 47, 36, 0.12); }
.qca-scroll-studio__canvas { display: block; width: 100%; height: 100%; min-height: 100%; }
.qca-scroll-studio__stage-meta { position: absolute; top: 18px; right: 20px; left: 20px; display: flex; justify-content: space-between; gap: 16px; color: rgba(242, 238, 230, 0.58); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.13em; pointer-events: none; }
.qca-scroll-studio__stage-meta span:first-child { color: var(--qca-orange); }
.qca-scroll-studio__crosshair { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; border: 1px solid rgba(245, 158, 11, 0.36); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.qca-scroll-studio__crosshair::before, .qca-scroll-studio__crosshair::after, .qca-scroll-studio__crosshair i, .qca-scroll-studio__crosshair b { position: absolute; display: block; background: rgba(245, 158, 11, 0.68); content: ""; }
.qca-scroll-studio__crosshair::before { top: 20px; left: -12px; width: 64px; height: 1px; }
.qca-scroll-studio__crosshair::after { top: -12px; left: 20px; width: 1px; height: 64px; }
.qca-scroll-studio__crosshair i { inset: 17px; border-radius: 50%; }
.qca-scroll-studio__crosshair b { top: -44px; left: 46px; width: 92px; height: 1px; transform: rotate(-32deg); transform-origin: left center; }
.qca-scroll-studio__chapters { grid-column: 1; grid-row: 2; align-self: center; display: grid; gap: 56px; padding: 18vh 0 16vh; }
.qca-scroll-studio__chapter { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; opacity: 0.48; transform: translateX(-10px); transition: opacity 240ms ease, transform 240ms ease; }
.qca-scroll-studio__chapter.is-active { opacity: 1; transform: translateX(0); }
.qca-scroll-studio__chapter-index { color: var(--qca-red); font-size: 0.8rem; font-weight: 900; }
.qca-scroll-studio__chapter h3 { max-width: 270px; margin: 0; color: var(--qca-cream); font-size: 1.45rem; line-height: 1.15; }
.qca-scroll-studio__chapter p { max-width: 300px; margin: 12px 0 14px; color: rgba(242, 238, 230, 0.64); font-size: 0.88rem; line-height: 1.7; }
.qca-scroll-studio__chapter strong { color: var(--qca-orange); font-size: 0.64rem; letter-spacing: 0.12em; }
.qca-scroll-studio__footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(242, 238, 230, 0.2); color: rgba(242, 238, 230, 0.6); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; }
.qca-scroll-studio__footer a { color: var(--qca-cream); }
.qca-scroll-studio__footer a span { color: var(--qca-orange); }
.qca-scroll-studio--fallback .qca-scroll-studio__stage { background: linear-gradient(180deg, #1b1e1f, #0d1012 72%); }

@media (max-width: 900px) {
  .qca-scroll-studio { grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1.28fr); gap: 24px; }
  .qca-scroll-studio__stage { top: 96px; height: 62vh; min-height: 360px; }
  .qca-scroll-studio__chapters { gap: 40px; }
  .qca-scroll-studio__chapter h3 { font-size: 1.18rem; }
}
@media (max-width: 767px) {
  .qca-scroll-studio { display: block; min-height: 0; padding: 76px 20px 54px; }
  .qca-scroll-studio::before { top: 23%; right: -42%; width: 120vw; height: 120vw; }
  .qca-scroll-studio__intro { padding: 0 0 34px; }
  .qca-scroll-studio__intro h2 { font-size: clamp(2.55rem, 12vw, 4.25rem); }
  .qca-scroll-studio__stage { position: sticky; top: 82px; z-index: 2; width: 100%; height: min(42vh, 330px); min-height: 250px; max-height: 330px; background: #dff1f2; box-shadow: 9px 9px 0 rgba(21, 59, 84, 0.12); }
  .qca-scroll-studio__stage-meta { top: 12px; right: 12px; left: 12px; font-size: 0.54rem; }
  .qca-scroll-studio__chapters { display: grid; gap: 36px; padding: 54px 0 46px; }
  .qca-scroll-studio__chapter { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; opacity: 0.72; }
  .qca-scroll-studio__chapter h3 { font-size: 1.3rem; }
  .qca-scroll-studio__chapter p { max-width: none; }
  .qca-scroll-studio__footer { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .qca-scroll-studio__footer a { grid-column: 1 / -1; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .qca-scroll-studio__chapter { transition: none; transform: none; }
}

/* Stable two-column contact layout: copy on the left, one contact stack on the right. */
.section--contact-archive .contact-band { display: block; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: start;
}
.contact-info,
.contact-qr {
  width: 100%;
  min-width: 0;
}
.contact-info a,
.contact-info span,
.contact-email,
.contact-wechat {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.contact-qr .contact-band__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-qr .contact-band__qr {
  grid-row: auto;
  width: min(100%, 280px);
  margin: 0;
  justify-self: start;
}
.contact-qr .contact-band__detail {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  min-width: 0;
}
.contact-qr .contact-band__detail > span:first-child {
  white-space: nowrap;
}
.contact-qr .contact-band__detail strong,
.contact-qr .contact-band__detail a {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--qca-cream);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.contact-qr .contact-band__detail .copy-wechat,
.contact-qr .contact-band__detail .copy-wechat__status {
  grid-column: 2;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-qr .contact-band__qr { justify-self: start; }
}

@media (max-width: 560px) {
  .contact-grid { gap: 24px; }
  .contact-qr .contact-band__qr { width: min(100%, 240px); }
  .contact-qr .contact-band__detail { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; }
  .empty-state__actions { align-items: stretch; flex-direction: column; }
  .empty-state__actions .button { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; }
  .contact-actions .button { width: 100%; justify-content: center; }
  .safety-page__header { padding: 58px 0 40px; }
  .safety-page__header h1 { font-size: 3.5rem; }
  .safety-page__grid { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 80px; }
  .safety-page__rail { display: flex; align-items: end; justify-content: space-between; }
  .safety-page__content h2 { font-size: 2rem; }
}

/* Bright training field: optimistic, athletic and readable for young athletes and families. */
html { background: var(--qca-bg); }
body {
  color: var(--qca-ink);
  background-color: var(--qca-bg);
  background-image: linear-gradient(rgba(31, 122, 140, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 122, 140, 0.035) 1px, transparent 1px);
}
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(21, 59, 84, 0.12);
  box-shadow: 0 8px 24px rgba(21, 59, 84, 0.06);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 12px 30px rgba(21, 59, 84, 0.1); }
.site-brand__fallback { color: var(--qca-ink); }
.primary-navigation a,
.footer-navigation a { color: var(--qca-muted); }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.footer-navigation a:hover { color: var(--qca-ink); }
.menu-toggle { color: var(--qca-ink); border-color: var(--qca-line); }
.menu-toggle { color: #fff; background: var(--qca-ink); border-color: var(--qca-ink); box-shadow: inset 0 -3px 0 var(--qca-red); }
.menu-toggle:hover,
.menu-toggle:focus-visible { color: #fff; background: var(--qca-teal); border-color: var(--qca-teal); }
.site-header__cta { color: #fff; background: var(--qca-red); border-color: var(--qca-red); box-shadow: 0 6px 14px rgba(225, 75, 53, 0.2); }
.site-header__cta:hover { color: #fff; background: var(--qca-red-dark); border-color: var(--qca-red-dark); }
.hero--archive { color: var(--qca-ink); background: #f4f8fa; border-bottom: 1px solid var(--qca-line); }
.hero--archive .hero__topline { color: var(--qca-muted); }
.hero--archive .hero__copy h1 { color: var(--qca-ink); }
.hero--archive .hero__subtitle { color: #4e6878; }
.hero--archive .hero__statement { color: var(--qca-ink); }
.hero--archive .hero__index { border-top-color: var(--qca-line); }
.hero--archive .hero__index a { color: var(--qca-ink); border-right-color: var(--qca-line); }
.hero__visual-caption strong { color: #fff; }
.hero__visual-caption small { color: rgba(255, 255, 255, 0.78); }
.hero__visual-empty { color: var(--qca-muted); background: var(--qca-panel-2); }
.button { color: #fff; background: var(--qca-red); border-color: var(--qca-red); box-shadow: 0 8px 16px rgba(225, 75, 53, 0.16); }
.button:hover { color: #fff; background: var(--qca-red-dark); border-color: var(--qca-red-dark); }
.button--secondary { color: var(--qca-ink); background: #fff; border-color: var(--qca-line); box-shadow: none; }
.button--secondary:hover { color: var(--qca-ink); background: var(--qca-panel-2); border-color: var(--qca-teal); }
.hero__visual { background: #dceff1; border-color: rgba(21, 59, 84, 0.16); box-shadow: 20px 20px 0 rgba(31, 122, 140, 0.18); }
.hero__poster-stamp { color: #fff; background: var(--qca-red); box-shadow: 8px 8px 0 rgba(21, 59, 84, 0.16); }

@media (min-width: 768px) {
  .hero--archive::before { background: linear-gradient(90deg, transparent 0 42%, rgba(225, 75, 53, 0.12) 42.1% 42.5%, transparent 42.6%); }
  .hero--archive::after { background: rgba(21, 59, 84, 0.12); }
  .hero__visual::after { background: linear-gradient(180deg, rgba(21, 59, 84, 0.02), rgba(21, 59, 84, 0.48)); }
  .hero__visual-empty { background: linear-gradient(135deg, #dceff1, #c9e4e3 55%, #fff0d7); }
}

.qca-guide-card { color: var(--qca-ink); background: linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 243, 0.96)); border-color: var(--qca-line); box-shadow: 0 18px 36px rgba(21, 59, 84, 0.12); }
.qca-guide-card::before { background: radial-gradient(circle, rgba(225, 75, 53, 0.16), transparent 68%); }
.qca-guide-card__label { color: var(--qca-red-dark); }
.qca-guide-card__body p { color: var(--qca-muted); }
.qca-guide-card__action { color: var(--qca-ink); }
.qca-guide-stage { background: radial-gradient(circle at 62% 34%, rgba(242, 164, 58, 0.24), transparent 38%), linear-gradient(145deg, #dff1f2, #b9dce1 72%); border-color: rgba(21, 59, 84, 0.16); box-shadow: inset 0 -28px 48px rgba(21, 59, 84, 0.1), 0 12px 22px rgba(21, 59, 84, 0.12); }
.qca-guide-stage:hover { border-color: rgba(31, 122, 140, 0.72); }
.qca-guide-stage__rings i { border-color: rgba(31, 122, 140, 0.28); }
.qca-guide-stage__rings i:nth-child(2) { border-color: rgba(225, 75, 53, 0.32); }
.qca-guide-stage__rings i:nth-child(3) { border-color: rgba(21, 59, 84, 0.3); }
.qca-guide-stage__person { filter: drop-shadow(-12px 14px 12px rgba(21, 59, 84, 0.22)); }
.qca-guide-stage__hud { color: rgba(21, 59, 84, 0.66); }
.qca-guide-panel { color: var(--qca-ink); background: rgba(255, 255, 255, 0.98); border-color: var(--qca-line); box-shadow: 0 14px 38px rgba(21, 59, 84, 0.18); }
.qca-guide-panel__close { color: var(--qca-ink); border-color: var(--qca-line); }
.qca-guide-nav a { color: var(--qca-ink); border-bottom-color: var(--qca-line); }
.qca-guide-float { color: var(--qca-ink); background: #fff; border-color: var(--qca-orange); box-shadow: 0 8px 24px rgba(21, 59, 84, 0.18); }

.qca-scroll-studio { color: var(--qca-ink); background: #eaf5f4; }
.qca-scroll-studio::before { background: linear-gradient(112deg, transparent 0 38%, rgba(31, 122, 140, 0.07) 38.1%, transparent 38.25%), linear-gradient(90deg, transparent 0 68%, rgba(225, 75, 53, 0.08) 68.1%, transparent 68.25%); }
.qca-scroll-studio__intro h2,
.qca-scroll-studio__chapter h3 { color: var(--qca-ink); }
.qca-scroll-studio__lede,
.qca-scroll-studio__chapter p { color: #587283; }
.qca-scroll-studio__stage { border-color: rgba(21, 59, 84, 0.16); background: linear-gradient(180deg, #dff1f2, #c3e2e3 72%); box-shadow: 18px 18px 0 rgba(31, 122, 140, 0.16); }
.qca-scroll-studio__stage-meta { color: rgba(21, 59, 84, 0.62); }
.qca-scroll-studio__stage-meta span:first-child,
.qca-scroll-studio__chapter strong { color: var(--qca-red); }
.qca-scroll-studio__footer { color: #587283; border-top-color: rgba(21, 59, 84, 0.16); }
.qca-scroll-studio__footer a { color: var(--qca-ink); }
.qca-scroll-studio__footer a span { color: var(--qca-red); }
.qca-scroll-studio--fallback .qca-scroll-studio__stage { background: linear-gradient(180deg, #dff1f2, #c3e2e3 72%); }

.section--motion-archive { color: var(--qca-ink); background: #eaf2f8; }
.section--motion-archive .section-heading--chapter { border-color: rgba(21, 59, 84, 0.18); }
.section--motion-archive .video-tile { background: #fff; border-color: var(--qca-line); box-shadow: 12px 12px 0 rgba(45, 111, 149, 0.12); }
.section--motion-archive .video-tile--1 { box-shadow: 16px 16px 0 rgba(225, 75, 53, 0.16); }
.video-grid--feature .video-tile--1 .video-tile__body { background: linear-gradient(transparent, rgba(21, 59, 84, 0.94)); }
.section--profile-archive { color: var(--qca-ink); background: #edf7f4; }
.section--profile-archive .about-summary { border-color: rgba(21, 59, 84, 0.18); }
.section--profile-archive .about-summary__copy h2 { color: var(--qca-ink); }
.about-summary__copy p:not(.eyebrow) { color: #527080; }
.section--contact-archive { background: #fff6e8; }
.section--contact-archive .contact-band { background: #15516b; box-shadow: 18px 18px 0 rgba(225, 75, 53, 0.14); }
.section--contact-archive .contact-band .contact-info h2 { color: #fff; }
.section--contact-archive .contact-band .contact-info p:not(.eyebrow) { color: rgba(255, 255, 255, 0.92); }
.section--contact-archive .contact-band .contact-info .eyebrow,
.section--contact-archive .contact-band .contact-info .eyebrow span { color: #fff; }
.section--contact-archive .contact-band .contact-band__detail > span:first-child { color: #d9f0f2; font-weight: 700; }
.section--contact-archive .contact-band .contact-band__detail strong,
.section--contact-archive .contact-band .contact-band__detail a { color: #fff; font-weight: 800; }
.section--contact-archive .contact-band .contact-band__detail a:hover { color: #ffd58c; }
.section--contact-archive .contact-band .contact-band__detail .copy-wechat { color: #fff; border-color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.08); }
.section--contact-archive .contact-band .contact-band__detail .copy-wechat:hover,
.section--contact-archive .contact-band .contact-band__detail .copy-wechat:focus-visible { color: #153b54; border-color: #fff; background: #fff; }
.section--contact-archive .contact-band .contact-band__detail .copy-wechat__status { color: #d9f0f2; }

.qca-training-home__inner { color: var(--qca-ink); background: linear-gradient(115deg, #eaf7f4, #fff4de 60%, #fff); border-color: var(--qca-line); }
.qca-training-home__inner > div:first-child > p:not(.eyebrow) { color: #587283; }
.qca-training-home__preview { border-top-color: var(--qca-line); }
.qca-training-home__preview-row { border-bottom-color: var(--qca-line); }
.qca-training-home__preview-row span { color: var(--qca-red-dark); }
.qca-training-home__empty { color: var(--qca-muted); border-color: var(--qca-line); }
.qca-training-hero { background: linear-gradient(110deg, #fff0e7, #eaf6f7 62%); }
.qca-training-hero::after { border-color: rgba(21, 59, 84, 0.16); box-shadow: 0 0 0 20px rgba(21, 59, 84, 0.04), 0 0 0 42px rgba(31, 122, 140, 0.04); }
.qca-training-hero h1 { color: var(--qca-ink); }
.qca-training-hero__copy > p:last-child { color: #587283; }
.qca-training-hero__mark { border-color: rgba(21, 59, 84, 0.22); }
.qca-training-hero__mark span { color: var(--qca-muted); }
.qca-training-tabs a[aria-current],
.qca-training-tabs a:hover { color: var(--qca-ink); }
.qca-history-heading > span,
.qca-history-table-heading > span,
.qca-history-filter label,
.qca-history-stats dt,
.qca-history-stats span { color: var(--qca-muted); }
.qca-history-stats dd { color: var(--qca-ink); }
.qca-history-stats dd small { color: var(--qca-muted); }
.qca-history-table th { color: var(--qca-muted); }
.qca-history-table td strong { color: var(--qca-ink); }
.qca-history-table a,
.qca-history-pagination a,
.qca-history-profile-back { color: var(--qca-teal); }
.qca-history-group-values span { color: #607989; }
.qca-training-filters { background: #fff; }
.qca-training-filters select { color: var(--qca-ink); background: #f7fbfc; border-color: var(--qca-line); }
.qca-training-board__selected span { color: var(--qca-ink); background: rgba(31, 122, 140, 0.06); }
.qca-training-row:hover,
.qca-training-row:focus-visible { background: rgba(31, 122, 140, 0.07); }
.qca-training-row__score { color: var(--qca-ink); }
.qca-training-detail__panel { background: #fff; }
.qca-training-detail__panel > p { color: #587283; }
.qca-training-card-panel { background: linear-gradient(140deg, #fff6e5, #eaf5f4 70%); border-color: rgba(242, 164, 58, 0.48); }
.qca-student-search input,
.qca-history-filter select,
.qca-history-trend select { color: var(--qca-ink); background: #fff; border-color: var(--qca-line); }
.qca-student-search input::placeholder { color: #78909e; }
.qca-history-table tbody tr:hover { background: rgba(31, 122, 140, 0.06); }
.site-footer { color: var(--qca-ink); border-top-color: var(--qca-line); }
.site-footer__copy,
.site-footer__legal { color: var(--qca-muted); }

@media (max-width: 560px) {
  .mobile-wechat-bar { color: var(--qca-ink); background: rgba(255, 255, 255, 0.98); border-top-color: var(--qca-line); box-shadow: 0 -8px 22px rgba(21, 59, 84, 0.12); }
  .mobile-wechat-bar > span:first-child { color: var(--qca-muted); }
}

@media (max-width: 767px) {
  /* The mobile visual uses a light paper field, so the caption needs ink contrast. */
  .hero__visual-caption { border-top-color: var(--qca-orange); }
  .hero__visual-caption strong { color: var(--qca-ink); }
  .hero__visual-caption small { color: #527080; }
}

/* Parent pathway: a quiet orientation point between the hero and the immersive scene. */
.qca-parent-start { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); gap: 52px; padding: 78px clamp(20px, 6vw, 96px); color: var(--qca-ink); background: #fff; border-top: 1px solid var(--qca-line); border-bottom: 1px solid var(--qca-line); }
.qca-parent-start__intro { max-width: 430px; }
.qca-parent-start__intro h2 { margin: 0; color: var(--qca-ink); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.qca-parent-start__intro > p:last-child { max-width: 360px; margin: 18px 0 0; color: var(--qca-muted); line-height: 1.8; }
.qca-parent-start__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; align-self: end; background: var(--qca-line); border: 1px solid var(--qca-line); }
.qca-parent-start__steps a { position: relative; display: grid; min-height: 190px; align-content: start; gap: 10px; padding: 22px 20px 20px; color: var(--qca-ink); background: #f7fbfc; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.qca-parent-start__steps a:hover, .qca-parent-start__steps a:focus-visible { z-index: 1; color: var(--qca-ink); background: #fff4df; transform: translateY(-4px); }
.qca-parent-start__steps span { color: var(--qca-red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.qca-parent-start__steps strong { font-size: 1.12rem; }
.qca-parent-start__steps small { max-width: 150px; color: var(--qca-muted); font-size: .78rem; line-height: 1.7; }
.qca-parent-start__steps b { position: absolute; right: 18px; bottom: 17px; color: var(--qca-teal); font-size: 1.15rem; }
.qca-search-privacy { grid-column: 2; max-width: 560px; margin: -8px 0 0; color: var(--qca-muted); font-size: .74rem; line-height: 1.7; }
.qca-history-trend-heading .qca-history-trend-note { margin: 5px 0 0; color: #78909e; font-size: .72rem; line-height: 1.6; }
.safety-page__next { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin: -42px 0 110px; padding: 34px 38px; color: var(--qca-ink); background: linear-gradient(110deg, #eaf7f4, #fff4de); border-top: 3px solid var(--qca-red); }
.safety-page__next > div { max-width: 650px; }
.safety-page__next h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; }
.safety-page__next p:last-child { margin: 12px 0 0; color: var(--qca-muted); line-height: 1.8; }
.safety-page__next .button { flex-shrink: 0; }
.privacy-page__note { margin-top: 28px; padding: 22px; color: var(--qca-ink); background: #fff8eb; border-top: 3px solid var(--qca-orange); }
.privacy-page__note strong { display: block; }
.privacy-page__note p { margin: 8px 0 0; color: var(--qca-muted); line-height: 1.8; }

@media (max-width: 767px) {
  .qca-parent-start { display: block; padding: 56px 20px; }
  .qca-parent-start__intro { max-width: none; }
  .qca-parent-start__intro h2 { font-size: 2.35rem; }
  .qca-parent-start__intro > p:last-child { margin-top: 14px; font-size: .92rem; }
  .qca-parent-start__steps { grid-template-columns: 1fr; margin-top: 30px; }
  .qca-parent-start__steps a { min-height: 0; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 18px 16px; }
  .qca-parent-start__steps strong { font-size: 1rem; }
  .qca-parent-start__steps small { grid-column: 2 / 3; margin-top: -5px; max-width: none; }
  .qca-parent-start__steps b { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .qca-search-privacy { grid-column: 1; margin: -4px 0 0; font-size: .75rem; }
  .safety-page__next { align-items: stretch; flex-direction: column; gap: 24px; margin: -28px 0 70px; padding: 26px 20px; }
  .safety-page__next .button { width: 100%; justify-content: center; }
}

/* Parent-facing orientation: facts stay quiet, legible and easy to scan. */
.qca-parent-start__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--qca-line);
}
.qca-parent-start__facts div {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: start;
  padding: 20px 22px 4px 0;
  border-right: 1px solid var(--qca-line);
}
.qca-parent-start__facts div + div { padding-left: 22px; }
.qca-parent-start__facts div:last-child { border-right: 0; }
.qca-parent-start__facts span {
  color: var(--qca-red-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.qca-parent-start__facts strong {
  max-width: 210px;
  color: var(--qca-ink);
  font-size: .96rem;
  line-height: 1.55;
}

/* A useful recovery path for missing pages, rather than a dead end. */
.page-shell--404 {
  max-width: 980px;
  color: var(--qca-ink);
  background: #fff;
  box-shadow: 12px 12px 0 rgba(31, 122, 140, 0.12);
}
.qca-404__header { max-width: 700px; }
.qca-404__header h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; }
.page-shell--404 .page-header__lead { max-width: 620px; color: var(--qca-muted); line-height: 1.8; }
.qca-404__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--qca-line);
  border: 1px solid var(--qca-line);
}
.qca-404__routes-label {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 18px;
  color: var(--qca-red-dark);
  background: #fff7e8;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.qca-404__routes a {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 9px;
  padding: 20px;
  color: var(--qca-ink);
  background: #f7fbfc;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.qca-404__routes a:hover,
.qca-404__routes a:focus-visible { z-index: 1; color: var(--qca-ink); background: #fff4df; transform: translateY(-4px); }
.qca-404__routes a > span { color: var(--qca-red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.qca-404__routes strong { font-size: 1.02rem; }
.qca-404__routes small { max-width: 210px; color: var(--qca-muted); line-height: 1.65; }
.qca-404__routes b { position: absolute; right: 18px; bottom: 16px; color: var(--qca-teal); font-size: 1.1rem; }
.page-shell--404 .entry-actions { margin-top: 34px; }

/* Empty content is a gentle pause, not an error state. */
.empty-state__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--qca-red-dark);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.empty-state strong { color: var(--qca-ink); font-size: 1.3rem; line-height: 1.3; }
.empty-state p { max-width: 620px; color: var(--qca-muted); line-height: 1.75; }
.empty-state__hint { display: block; max-width: 620px; margin-top: 12px; color: #78909e; font-size: .78rem; line-height: 1.65; }
.empty-state__actions .button--secondary { color: var(--qca-ink); background: #fff; border-color: var(--qca-line); }

@media (max-width: 900px) {
  .qca-parent-start__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qca-parent-start__facts div:nth-child(2) { border-right: 0; }
  .qca-parent-start__facts div:nth-child(3),
  .qca-parent-start__facts div:nth-child(4) { border-top: 1px solid var(--qca-line); }
  .qca-parent-start__facts div:nth-child(3) { padding-left: 0; }
  .qca-404__routes { grid-template-columns: 1fr; }
  .qca-404__routes a { min-height: 0; }
}

@media (max-width: 767px) {
  .qca-parent-start__facts { margin-top: 28px; }
  .qca-parent-start__facts div { min-height: 0; padding: 16px 14px 16px 0; }
  .qca-parent-start__facts div + div { padding-left: 14px; }
  .qca-parent-start__facts strong { font-size: .86rem; }
  .page-shell--404 { margin: 28px 20px 0; padding: 28px 20px; }
  .qca-404__header h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .qca-404__routes { margin-top: 36px; }
  .qca-404__routes a { grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: start; gap: 8px 10px; padding: 17px 15px; }
  .qca-404__routes a > span { grid-row: 1 / span 2; }
  .qca-404__routes strong { grid-column: 2; }
  .qca-404__routes small { grid-column: 2; max-width: none; }
  .qca-404__routes b { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

/* High-contrast editorial copy on the light reading surfaces. */
.article-shell,
.page-shell,
.section--editorial-light,
.section--text-archive {
  color: var(--qca-ink);
}
.article-header__summary,
.page-header__lead {
  color: #365a6d;
}
.entry-content,
.entry-content p,
.entry-content li,
.entry-content dd,
.entry-content figcaption,
.entry-content td,
.entry-content th {
  color: #29495b;
}
.entry-content {
  font-size: 1.08rem;
  line-height: 1.95;
}
.entry-content strong,
.entry-content b {
  color: #153b54;
  font-weight: 800;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #153b54;
}
.entry-content a {
  color: #b73b2e;
  font-weight: 700;
  text-decoration-thickness: 1px;
}
.entry-content a:hover,
.entry-content a:focus-visible {
  color: #8d2b22;
}
.entry-content blockquote {
  color: #365a6d;
  border-left-color: var(--qca-red);
}
.entry-content code,
.entry-content pre {
  color: #153b54;
  background: #eef6f7;
}
.entry-content hr {
  border-color: var(--qca-line);
}
.entry-content table {
  color: #29495b;
  border-color: var(--qca-line);
}
.entry-content th {
  color: #153b54;
  background: #eaf5f4;
}
.section--editorial-light .editorial-row p,
.section--text-archive .editorial-row p {
  color: #365a6d;
}
.section--editorial-light .editorial-row__date,
.section--text-archive .editorial-row__date {
  color: #506d7c;
}

@media (max-width: 767px) {
  .entry-content {
    font-size: 1rem;
    line-height: 1.9;
  }
  .article-header__summary,
  .page-header__lead {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* A bright editorial guide for families who want to understand the sport first. */
.qca-shooting-guide {
  position: relative;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 6vw, 96px);
  color: var(--qca-ink);
  background: #eef7f4;
  border-top: 1px solid rgba(21, 59, 84, 0.12);
  border-bottom: 1px solid rgba(21, 59, 84, 0.12);
  overflow: hidden;
}
.qca-shooting-guide::before {
  position: absolute;
  top: 9%;
  right: -8%;
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  border: 1px solid rgba(31, 122, 140, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(31, 122, 140, 0.035), 0 0 0 58px rgba(225, 75, 53, 0.035);
  content: "";
  pointer-events: none;
}
.qca-shooting-guide__header,
.qca-shooting-guide__layout,
.qca-shooting-guide__teaching { position: relative; z-index: 1; max-width: 1280px; margin-right: auto; margin-left: auto; }
.qca-shooting-guide__header { max-width: 780px; }
.qca-shooting-guide__header h2 { max-width: 720px; margin: 0; color: var(--qca-ink); font-size: clamp(2.4rem, 5vw, 5.1rem); line-height: 1.02; }
.qca-shooting-guide__header > p:last-child { max-width: 650px; margin: 24px 0 0; color: #466777; font-size: 1.05rem; line-height: 1.85; }
.qca-shooting-guide__layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(34px, 6vw, 92px); margin-top: 58px; align-items: start; }
.qca-shooting-guide__visual { position: relative; min-height: 520px; overflow: hidden; background: #c8e3e4; border: 1px solid rgba(21, 59, 84, 0.16); box-shadow: 18px 18px 0 rgba(225, 75, 53, 0.13); }
.qca-shooting-guide__visual img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; }
.qca-shooting-guide__visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 59, 84, 0.02) 38%, rgba(21, 59, 84, 0.82) 100%); content: ""; pointer-events: none; }
.qca-shooting-guide__visual-caption { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; display: grid; gap: 9px; color: #fff; }
.qca-shooting-guide__visual-caption span { color: #ffd58c; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.qca-shooting-guide__visual-caption strong { max-width: 300px; font-size: 1.35rem; line-height: 1.3; }
.qca-shooting-guide__chapters { border-top: 1px solid rgba(21, 59, 84, 0.2); }
.qca-shooting-guide__chapter { border-bottom: 1px solid rgba(21, 59, 84, 0.18); }
.qca-shooting-guide__chapter > summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 18px; padding: 25px 0 27px; cursor: pointer; list-style: none; }
.qca-shooting-guide__chapter > summary::-webkit-details-marker { display: none; }
.qca-shooting-guide__chapter > summary:focus-visible { outline: 3px solid rgba(225, 75, 53, 0.45); outline-offset: 5px; }
.qca-shooting-guide__chapter > summary > span { color: var(--qca-red); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.qca-shooting-guide__chapter h3 { margin: 0; color: var(--qca-ink); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; }
.qca-shooting-guide__chapter > summary p { max-width: 700px; margin: 10px 0 12px; color: #365a6d; font-size: .96rem; line-height: 1.85; }
.qca-shooting-guide__chapter > summary strong { color: var(--qca-teal); font-size: .68rem; letter-spacing: .08em; }
.qca-shooting-guide__toggle { align-self: start; color: var(--qca-red); font-size: 1.55rem; font-weight: 400; line-height: 1; text-align: right; transition: transform 180ms ease; }
.qca-shooting-guide__chapter[open] .qca-shooting-guide__toggle { transform: rotate(45deg); }
.qca-shooting-guide__detail { margin: 0 24px 25px 70px; padding: 20px 24px 21px; color: #365a6d; background: rgba(255, 255, 255, 0.62); border-left: 3px solid rgba(225, 75, 53, 0.62); }
.qca-shooting-guide__detail-figure { margin: 0 0 19px; padding: 8px; background: #fff; border: 1px solid rgba(21, 59, 84, 0.12); }
.qca-shooting-guide__detail-figure img { display: block; width: 100%; max-height: 480px; object-fit: contain; object-position: center; background: #edf3f3; }
.qca-shooting-guide__detail-figure figcaption { margin: 0; padding: 10px 8px 3px; color: #466777; font-size: .76rem; line-height: 1.6; }
.qca-shooting-guide__detail p { max-width: 760px; margin: 0 0 13px; font-size: .93rem; line-height: 1.8; }
.qca-shooting-guide__detail ul { display: grid; gap: 7px; max-width: 760px; margin: 0; padding-left: 1.1rem; font-size: .87rem; line-height: 1.7; }
.qca-shooting-guide__detail li::marker { color: var(--qca-red); }
.qca-shooting-guide__teaching { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-top: 54px; padding: 25px 28px; background: #fff; border-top: 3px solid var(--qca-red); box-shadow: 8px 8px 0 rgba(31, 122, 140, 0.1); }
.qca-shooting-guide__teaching .eyebrow { margin: 0 0 9px; }
.qca-shooting-guide__teaching strong { display: block; max-width: 760px; color: var(--qca-ink); font-size: 1.12rem; line-height: 1.55; }
.qca-shooting-guide__teaching .button--secondary { flex: 0 0 auto; color: var(--qca-ink); background: #fff; border-color: var(--qca-line); }
.qca-shooting-guide__teaching .button--secondary:hover { color: #fff; background: var(--qca-teal); border-color: var(--qca-teal); }

@media (max-width: 900px) {
  .qca-shooting-guide__layout { grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); gap: 32px; }
  .qca-shooting-guide__visual,
  .qca-shooting-guide__visual img { min-height: 430px; }
}
@media (max-width: 767px) {
  .qca-shooting-guide { padding: 64px 20px 70px; }
  .qca-shooting-guide::before { top: 24%; right: -45%; width: 110vw; height: 110vw; }
  .qca-shooting-guide__header h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .qca-shooting-guide__header > p:last-child { margin-top: 17px; font-size: .94rem; line-height: 1.8; }
  .qca-shooting-guide__layout { display: block; margin-top: 34px; }
  .qca-shooting-guide__visual,
  .qca-shooting-guide__visual img { min-height: 330px; }
  .qca-shooting-guide__visual { box-shadow: 9px 9px 0 rgba(225, 75, 53, 0.13); }
  .qca-shooting-guide__chapters { margin-top: 42px; }
  .qca-shooting-guide__chapter > summary { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 12px; padding: 21px 0 23px; }
  .qca-shooting-guide__chapter > summary > div { padding-right: 30px; }
  .qca-shooting-guide__chapter h3 { font-size: 1.3rem; }
  .qca-shooting-guide__chapter > summary p { font-size: .91rem; line-height: 1.8; }
  .qca-shooting-guide__detail { margin: 0 0 22px 46px; padding: 17px 16px 18px; }
  .qca-shooting-guide__detail-figure { margin: 0 56px 15px 0; padding: 5px; }
  .qca-shooting-guide__detail-figure img { max-height: 58vh; }
  .qca-shooting-guide__detail-figure figcaption { padding: 8px 5px 2px; padding-right: 56px; font-size: .72rem; }
  .qca-shooting-guide__detail p { padding-right: 56px; font-size: .88rem; }
  .qca-shooting-guide__detail ul { padding-right: 56px; font-size: .82rem; }
  .qca-shooting-guide__teaching { align-items: stretch; flex-direction: column; gap: 20px; margin-top: 38px; padding: 22px 18px; }
  .qca-shooting-guide__teaching strong { font-size: 1rem; }
  .qca-shooting-guide__teaching .button { width: 100%; justify-content: center; }
}

