/* Myong Qigong website: navy #263c58 and orange #e09a55 of the logo, Inria Sans. One light look on purpose (the logo is navy). */
@font-face { font-family: 'Inria Sans'; font-weight: 300; font-display: swap; src: url(fonts/inria-sans-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inria Sans'; font-weight: 400; font-display: swap; src: url(fonts/inria-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inria Sans'; font-weight: 700; font-display: swap; src: url(fonts/inria-sans-latin-700-normal.woff2) format('woff2'); }
:root {
  --bg: #faf8f5; --surface: #ffffff; --band: #f1ede6; --text: #263c58; --muted: #5d6a7c; --line: #e6e0d6;
  --navy: #263c58; --orange: #e09a55; --gold: #b86d2a; --soft: #eaf0f6;
  --radius: 14px; --max: 1040px; --read: 44rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.7 'Inria Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
strong, b { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* header: logo left; language, contact button and the two-line menu icon right; the icon opens a large panel */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
h2[id] { scroll-margin-top: 84px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; min-width: 0; }
.brand img { width: 44px; height: auto; flex: none; }
.tools { display: flex; align-items: center; gap: 18px; }
.langlink { text-decoration: none; font-weight: 700; padding: 6px 2px; }
.btn.small { padding: 8px 18px; font-size: .95rem; }
.menu-btn { appearance: none; border: 0; background: transparent; color: var(--navy); width: 44px; height: 44px; margin: -6px -10px -6px 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.menu-btn:hover { background: rgba(38, 60, 88, .1); }
.menu-btn svg { width: 26px; height: 26px; fill: currentColor; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.panel { background: var(--navy); max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.panel li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
.panel a { display: block; padding: clamp(18px, 4vw, 36px) clamp(14px, 3vw, 32px); color: var(--orange); text-decoration: none; font-weight: 700; font-size: clamp(1.35rem, 4.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }
.panel a:hover, .panel a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.panel .lang-in-menu a { font-weight: 400; font-size: 1.1rem; }
.js .panel { display: none; } .js .panel.open { display: block; }
@media (max-width: 560px) { .bar { padding-block: 8px; } .brand img { width: 36px; } .panel { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); } h2[id] { scroll-margin-top: 70px; } .brand span { display: none; } .tools { gap: 12px; } .panel ul { grid-template-columns: 1fr; } .panel li:nth-child(odd) { border-right: 0; } }

/* hero */
.hero { padding-block: clamp(36px, 8vw, 84px); background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; align-items: center; }
.hero img { width: 100%; max-width: 320px; margin-inline: auto; }
.hero .lead { font-size: 1.25rem; max-width: 34rem; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero img { max-width: 220px; order: -1; } }

/* buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; border: 2px solid var(--navy); }
.btn:hover { background: #fff; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
main { display: block; }
.page { padding-block: clamp(28px, 6vw, 56px); }
.read { max-width: var(--read); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-block: 28px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 { margin-bottom: .2em; }
.card p { margin: 0; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; }
.band { background: var(--band); padding-block: clamp(28px, 5vw, 52px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 28px; margin: 18px 0; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--orange); padding-left: 14px; }
.facts b { display: block; }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .4em; }
dl.times { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
dl.times dt { font-weight: 700; } dl.times dd { margin: 0; }
.notice { background: var(--soft); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }
.todo { background: #fff3c4; border: 1px dashed #b88400; padding: 0 6px; border-radius: 6px; font-weight: 700; }
figure { margin: 24px 0; } figure img { border-radius: var(--radius); width: 100%; } figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0 0 1em; }
.timeline li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.timeline b { font-weight: 700; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 0; } dl.times { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--navy); color: #e8ecf2; padding-block: 28px; margin-top: 40px; font-size: .95rem; }
.foot a { color: #fff; text-decoration-color: var(--orange); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
@media (prefers-reduced-motion: no-preference) { .btn, .panel a, .menu-btn { transition: background .15s, color .15s, border-color .15s; } }

/* variant: the bar slides away when scrolling down and returns when scrolling up (the default; build.mjs --fixed turns it off) */
.autohide .top.hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) { .autohide .top { transition: transform .25s ease; } }

/* contact form */
.form { display: grid; gap: 16px; margin: 22px 0 8px; max-width: 34rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea { font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid #c9c2b6; border-radius: 10px; padding: 11px 13px; width: 100%; min-width: 0; }
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
