/* World Assessment Council — member accounts: sign-in, sign-up and the member dashboard (/account/...).
   Loaded after wac-news.css (tokens, fonts). The pages are written by the form service (_deploy/api/members.py).

   One type family (Inter). Navy ink on white, one blue for actions, hairline borders instead of shadows.
   Status colours: green = active or paid, amber = waiting for payment, blue = received or coming, grey = over.
   The four centre colours appear only beside a centre's name.
   Many selectors start with "#main" or "#wrapper #main": the site's own sheets style h2, p and a that strongly. */

.page-account { --ac-ink: #0a1628; --ac-body: #2b3850; --ac-mute: #5b6577; --ac-line: #e3e8ef; --ac-line2: #cfd7e3; --ac-blue: #2563eb; --ac-link: #1a4b8c; --ac-track: #e8edf4; --ac-green: #1a9f62; --ac-amber: #c97a00; }
.page-account .ac-wrap { max-width: var(--wac-cw, 1192px); margin: 0 auto; }

/* the navy band under the site menu: page title, who is signed in, sign out */
.ac-top { background: #0a1628; color: #fff; padding: 112px 5% 30px; }
.ac-top.slim { padding: 84px 5% 0; }
.ac-top .ac-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
#main .ac-top h1 { font-family: var(--wn-font); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.022em; color: #fff; margin: 0; text-transform: none; }
.ac-kicker { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--ac-mute); margin-bottom: 0.4rem; }
.ac-top .ac-kicker { color: #a9b8d0; }
.ac-top form { display: flex; align-items: center; gap: 0.9rem; margin: 0; }
.ac-who { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.86); }
.ac-body { background: var(--wn-soft, #f6f8fb); padding: 32px 5% 72px; min-height: 52vh; color: var(--ac-body); }
.ac-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 2rem; align-items: start; }
.page-account .ac-wrap.ac-single { max-width: 480px; }
.page-account .ac-wrap.ac-single.wide { max-width: 860px; }

/* side menu */
.ac-nav { position: sticky; top: 92px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; padding: 0.4rem; }
#wrapper #main .ac-nav a, .ac-nav a { display: block; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--ac-body); text-decoration: none; }
#wrapper #main .ac-nav a:hover { background: #f1f4f9; color: var(--ac-ink); }
#wrapper #main .ac-nav a[aria-current="page"] { background: #0a1628; color: #fff; }

/* cards and text */
.ac-main { display: grid; gap: 1.25rem; min-width: 0; }
.ac-card { background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; padding: 1.5rem; min-width: 0; }
#main .ac-body .ac-card h1 { font-family: var(--wn-font); font-size: 1.625rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.5rem; text-transform: none; color: var(--ac-ink); }
#main .ac-body h2 { font-family: var(--wn-font); font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.014em; margin: 0 0 0.5rem; text-transform: none; color: var(--ac-ink); }
#main .ac-body h2.ac-h { font-size: 1.0625rem; letter-spacing: -0.008em; margin: 0 0 0.85rem; }
#main .ac-body h2.ac-h-next { margin-top: 0.75rem; padding-top: 1.35rem; border-top: 1px solid var(--ac-line); }
#main .ac-body h3 { font-family: var(--wn-font); font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.008em; margin: 0 0 0.3rem; text-transform: none; color: var(--ac-ink); }
.page-news .post-content .ac-main p, .page-news .post-content .ac-single p { font-size: 0.9375rem; line-height: 1.6; color: var(--ac-body); margin: 0 0 0.9rem; }
.page-news .post-content .ac-main p:last-child, .page-news .post-content .ac-card p:last-child { margin-bottom: 0; }
.page-news .post-content p.ac-lead { font-size: 1.0325rem; color: var(--ac-body); }
.page-news .post-content .ac-main p.ac-small, .page-news .post-content p.ac-small, .ac-small { font-size: 0.8438rem; color: var(--ac-mute); }
.page-news .post-content .ac-main p.ac-none { color: var(--ac-mute); }
#wrapper #main .ac-main a:where(:not(.ac-btn):not(.ac-google)), #wrapper #main .ac-single a:where(:not(.ac-btn):not(.ac-google)) { color: var(--ac-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#wrapper #main .ac-main a:where(:not(.ac-btn):not(.ac-google)):hover, #wrapper #main .ac-single a:where(:not(.ac-btn):not(.ac-google)):hover { color: var(--ac-ink); text-decoration-line: underline; text-decoration-style: solid; }
#wrapper #main .ac-body a:focus-visible, #wrapper #main .ac-body button:focus-visible { outline: 2px solid var(--ac-blue); outline-offset: 2px; border-radius: 6px; }
#wrapper #main .ac-top a:focus-visible, #wrapper #main .ac-top button:focus-visible, #wrapper #main .ac-summit a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ac-cards .ac-card { display: flex; flex-direction: column; align-items: flex-start; }
.ac-cards .ac-card > .ac-btn, .ac-cards .ac-card > .ac-acts { margin-top: auto; }
.ac-cards .ac-card > * { max-width: 100%; }
#wrapper #main .ac-cards .ac-btn { font-size: 0.875rem; padding: 0.6rem 0.9rem; white-space: nowrap; }
.ac-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.1rem; }
#main .ac-body .ac-head h2.ac-h { margin-bottom: 0.15rem; }
.page-news .post-content .ac-main .ac-head p { margin: 0; color: var(--ac-mute); font-size: 0.875rem; }
#wrapper #main .ac-main .ac-head > a { font-size: 0.875rem; font-weight: 500; }

/* buttons, tags, messages */
#wrapper #main .ac-btn, .ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: #2563eb; color: #fff; border: 1px solid #2563eb; border-radius: 8px; padding: 0.65rem 1.1rem; font-family: var(--wn-font); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
#wrapper #main .ac-btn:hover { background: #1d4fd0; border-color: #1d4fd0; color: #fff; text-decoration: none; }
#wrapper #main .ac-btn.ghost, .ac-btn.ghost { background: #fff; color: var(--ac-ink); border-color: var(--ac-line2); }
#wrapper #main .ac-btn.ghost:hover { background: #f1f4f9; border-color: #b4bfcf; color: var(--ac-ink); }
#wrapper #main .ac-top .ac-btn.ghost, .ac-top .ac-btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
#wrapper #main .ac-top .ac-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); color: #fff; }
#wrapper #main .ac-btn.small, .ac-btn.small { padding: 0.42rem 0.8rem; font-size: 0.8438rem; }
#wrapper #main .ac-btn.wide, .ac-btn.wide { width: 100%; padding: 0.9rem 1rem; font-size: 1rem; }
#wrapper #main .ac-btn.danger, .ac-btn.danger { background: #fff; color: #b42318; border-color: #eba9a2; }
#wrapper #main .ac-btn.danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
.ac-inline { display: inline-block; margin: 0 0.5rem 0 0; }
.ac-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; line-height: 1.5; padding: 0.12rem 0.6rem; border-radius: 999px; background: #eef1f5; color: #475569; white-space: nowrap; vertical-align: middle; }
.ac-tag.ok, .ac-tag.warn, .ac-tag.info, .ac-tag.mute { padding-left: 0.5rem; }
.ac-tag.ok::before, .ac-tag.warn::before, .ac-tag.info::before, .ac-tag.mute::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #8593a8; }
.ac-tag.ok { background: #e7f6ed; color: #0b6b43; }
.ac-tag.ok::before { background: var(--ac-green); }
.ac-tag.warn { background: #fdf1dc; color: #8a4b00; }
.ac-tag.warn::before { background: var(--ac-amber); }
.ac-tag.info { background: #e8f0fc; color: #1a4b8c; }
.ac-tag.info::before { background: var(--ac-blue); }
.page-news .post-content p.ac-msg, .ac-msg { margin: 0; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.9375rem; line-height: 1.5; background: #e8f0fc; color: #173a6b; }
.page-news .post-content p.ac-msg.ok { background: #e7f6ed; color: #0b5a39; }
.page-news .post-content p.ac-msg.err { background: #fdecea; color: #8a1c1c; }
.page-news .post-content p.ac-msg.warn { background: #fdf1dc; color: #6b4500; }
.ac-single .ac-msg { margin-bottom: 1rem !important; }

/* the membership card */
.ac-mem { display: grid; grid-template-columns: minmax(0, 384px) minmax(0, 1fr); gap: 1.5rem 2.25rem; align-items: center; }
.ac-idcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 242px; padding: 1.35rem 1.5rem 1.25rem; border-radius: 16px; background: #0a1628; color: #fff; }
/* three bars running off the right edge, as in the WAC logo: long, short, middle */
.ac-idcard::after { content: ""; position: absolute; right: 0; top: 50%; width: 46%; height: 74px; margin-top: -30px; pointer-events: none;
  background: linear-gradient(#11223f, #11223f) right top / 100% 18px no-repeat, linear-gradient(#11223f, #11223f) right 28px / 44% 18px no-repeat, linear-gradient(#11223f, #11223f) right 56px / 72% 18px no-repeat; }
.ac-idcard > * { position: relative; z-index: 1; }
.ac-idcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: auto; }
body.page-news .ac-idcard-top img { display: block; width: auto; height: 40px; max-width: none; }
.ac-idcard .ac-tag.ok { background: rgba(26, 159, 98, 0.2); color: #9be7c0; }
.ac-idcard .ac-tag.ok::before { background: #3fd68f; }
.page-news .post-content .ac-main p.ac-idcard-name { margin: 1.1rem 0 0.1rem; font-size: 1.375rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.016em; color: inherit; overflow-wrap: anywhere; }
.page-news .post-content .ac-main p.ac-idcard-tier { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.4; color: #c5d0e3; }
.ac-idcard-tier span { display: block; }
.ac-idcard-dates { display: flex; gap: 0.5rem 2rem; flex-wrap: wrap; margin: 0; }
.ac-idcard-dates dt { font-size: 0.75rem; font-weight: 500; color: #a9b8d0; margin: 0 0 0.1rem; }
.ac-idcard-dates dd { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ac-idcard.off { background: #fff; color: var(--ac-ink); border: 1px solid var(--ac-line2); }
.ac-idcard.off::after { background-image: linear-gradient(#f1f4f9, #f1f4f9), linear-gradient(#f1f4f9, #f1f4f9), linear-gradient(#f1f4f9, #f1f4f9); }
.page-news .post-content .ac-main .ac-idcard.off p.ac-idcard-tier { color: var(--ac-mute); }
.ac-idcard.off .ac-idcard-dates dt { color: var(--ac-mute); }
.ac-mem-side { min-width: 0; }
#main .ac-body .ac-mem-side .ac-acts { margin-top: 1.1rem; }
.ac-mem-foot { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--ac-line); }
.ac-mem-foot .ac-btn, .ac-mem-foot .ac-inline { margin-bottom: 0.9rem; }
.ac-mem-foot > .ac-btn { margin-right: 0.5rem; }
.ac-mem-foot .ac-inline .ac-btn { margin-bottom: 0; }
.ac-nowrap { white-space: nowrap; }
.ac-year { display: flex; align-items: center; gap: 1.5rem; }
.ac-year > div { min-width: 0; }
.ac-ring { flex: none; display: block; }
.ac-ring-n { font: 650 30px/1 var(--wn-font); letter-spacing: -0.02em; fill: var(--ac-ink); font-variant-numeric: tabular-nums; }
.ac-ring-t { font: 500 11.5px/1 var(--wn-font); fill: var(--ac-mute); }
.ac-ticks { list-style: none; margin: 0 0 0.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.25rem; font-size: 0.9375rem; color: var(--ac-ink); }
.ac-ticks li { position: relative; padding-left: 1.5rem; line-height: 1.4; }
.ac-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 11px; height: 6px; border-left: 2px solid var(--ac-green); border-bottom: 2px solid var(--ac-green); transform: rotate(-45deg); }
/* the steps from choosing a membership to having one */
.ac-steps { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; }
.ac-steps li { position: relative; flex: 1; min-width: 0; padding: 24px 0.75rem 0 0; font-size: 0.8125rem; line-height: 1.35; color: var(--ac-mute); }
.ac-steps li:last-child { flex: 0 1 auto; padding-right: 0; }
.ac-steps li::before { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: var(--ac-track); }
.ac-steps li:last-child::before { display: none; }
.ac-steps i { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ac-line2); background: #fff; }
.ac-steps .done { color: var(--ac-body); }
.ac-steps .done i { border-color: var(--ac-green); background: var(--ac-green); }
.ac-steps .done::before { background: var(--ac-green); }
.ac-steps .now { color: var(--ac-ink); font-weight: 600; }
.ac-steps .now i { border-color: var(--ac-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); }
.ac-steps em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* small figures with a bar: billing, registrations, profile */
.page-news .post-content .ac-main p.ac-fig { margin: 0; font-size: 1.5rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; color: var(--ac-ink); font-variant-numeric: tabular-nums; }
.ac-fig small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--ac-mute); }
.page-news .post-content .ac-main p.ac-fig-none { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.008em; line-height: 1.4; }
.ac-bar { display: block; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; margin: 0.85rem 0 0.7rem; }
.ac-key { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.8125rem; color: var(--ac-mute); }
.ac-key li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ac-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-track); }
.ac-key i.paid, .ac-key i.registered { background: var(--ac-green); }
.ac-key i.due, .ac-key i.awaiting_payment { background: var(--ac-amber); }
.ac-key i.interested { background: var(--ac-blue); }
.ac-key b { font-weight: 600; color: var(--ac-ink); font-variant-numeric: tabular-nums; }
.page-news .post-content .ac-cards p.ac-none { margin-top: 0.5rem; }
.ac-miss { list-style: none; margin: -0.5rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ac-miss li { font-size: 0.8125rem; font-weight: 500; color: var(--ac-body); padding: 0.12rem 0.6rem; border: 1px dashed var(--ac-line2); border-radius: 999px; }
.ac-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 1px; background: var(--ac-line); border: 1px solid var(--ac-line); border-radius: 12px; overflow: hidden; }
.ac-figs > div { background: #fff; padding: 1.15rem 1.5rem 1.2rem; display: flex; flex-direction: column; min-width: 0; }
.ac-figs span { font-size: 0.8125rem; font-weight: 500; color: var(--ac-mute); }
.ac-figs b { font-size: 1.75rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.022em; color: var(--ac-ink); font-variant-numeric: tabular-nums; }
.ac-figs small { font-size: 0.8125rem; color: var(--ac-mute); }
.ac-figs .ac-bar { margin-top: 0.95rem; }
.ac-figs .ac-key { margin: 0; }

/* white papers with their covers; the summit */
.ac-covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.ac-covers li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0; }
.ac-cover { display: block; width: 100%; margin-bottom: 0.45rem; }
body.page-news .ac-cover img { display: block; width: 100%; height: auto; aspect-ratio: 200 / 283; object-fit: cover; border-radius: 6px; border: 1px solid var(--ac-line); background: var(--ac-track); transition: border-color 0.15s; }
.ac-cover:hover img { border-color: #9fb0c8; }
.ac-centre { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; font-style: normal; line-height: 1.4; color: var(--ac-mute); }
.ac-centre::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ac-line2); }
.ac-centre.c-ai::before { background: rgb(96, 165, 250); }
.ac-centre.c-assess::before { background: rgb(167, 139, 250); }
.ac-centre.c-skill::before { background: rgb(251, 146, 60); }
.ac-centre.c-intl::before { background: rgb(45, 212, 191); }
.ac-covers strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
#wrapper #main .ac-main .ac-covers strong a { color: var(--ac-ink); text-decoration: none; }
#wrapper #main .ac-main .ac-covers strong a:hover { text-decoration: underline; }
#wrapper #main .ac-main .ac-get { font-size: 0.8438rem; font-weight: 500; margin-top: 0.1rem; }
.ac-summit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.75rem; padding: 1.4rem 1.5rem; border-radius: 12px; background: #0a1628; color: #fff; }
.page-news .post-content .ac-main p.ac-summit-date { margin: 0; padding-right: 1.75rem; border-right: 1px solid rgba(255, 255, 255, 0.22); color: #fff; display: flex; flex-direction: column; }
.ac-summit-date b { font-size: 1.75rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ac-summit-date span { font-size: 0.8438rem; color: #a9b8d0; }
#main .ac-body .ac-summit h2 { color: #fff; font-size: 1.125rem; margin: 0 0 0.15rem; }
.page-news .post-content .ac-main .ac-summit p { margin: 0; color: #c5d0e3; }
#wrapper #main .ac-summit .ac-btn { background: #fff; border-color: #fff; color: #0a1628; }
#wrapper #main .ac-summit .ac-btn:hover { background: #e3ebf7; border-color: #e3ebf7; color: #0a1628; }

/* lists */
.ac-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0; width: 100%; }
.ac-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ac-line); font-size: 0.9375rem; color: var(--ac-body); }
.ac-list li:last-child { border-bottom: 0; }
.ac-list li > span:last-child { color: var(--ac-mute); font-size: 0.8438rem; text-align: right; }
.ac-cards .ac-list { margin: -0.2rem 0 0.9rem; }
.ac-cards .ac-list li { padding: 0.5rem 0; font-size: 0.875rem; }
.ac-papers li { align-items: center; padding: 0.9rem 0; }
.ac-papers li:first-child { padding-top: 0; }
.ac-papers li:last-child { padding-bottom: 0; }
body.page-news .ac-papers img { flex: none; width: 56px; height: auto; aspect-ratio: 200 / 283; object-fit: cover; border-radius: 4px; border: 1px solid var(--ac-line); background: var(--ac-track); }
.ac-papers li > span { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left !important; color: var(--ac-ink) !important; font-size: 0.9375rem !important; min-width: 0; }
.ac-papers strong { font-weight: 600; line-height: 1.35; }
.ac-papers small { font-size: 0.8125rem; color: var(--ac-mute); }
.ac-papers .ac-btn { flex: none; }
.ac-dl { margin: 0.75rem 0 1rem; display: grid; gap: 0; }
.ac-dl > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ac-line); }
.ac-dl > div:last-child { border-bottom: 0; }
.ac-dl dt { font-size: 0.8438rem; font-weight: 500; color: var(--ac-mute); }
.ac-dl dd { margin: 0; font-size: 0.9375rem; color: var(--ac-ink); }
.ac-mem-side .ac-dl { margin: 0.25rem 0 0; }

/* forms */
.ac-form { display: grid; gap: 0.9rem; }
.ac-form label { display: block; font-size: 0.8438rem; font-weight: 600; color: var(--ac-ink); line-height: 1.3; }
.ac-form label span, .ac-form label small { font-weight: 400; color: var(--ac-mute); }
.ac-form label small { display: block; margin-top: 0.3rem; font-size: 0.8125rem; }
.page-news .ac-form input[type="text"], .page-news .ac-form input[type="email"], .page-news .ac-form input[type="password"], .page-news .ac-form input[type="tel"], .page-news .ac-form select, .page-news .ac-form textarea { display: block; width: 100%; height: 46px; margin-top: 0.3rem; padding: 0 0.85rem; font-family: var(--wn-font); font-size: 1rem; color: var(--ac-ink); background-color: #fff; border: 1px solid var(--ac-line2); border-radius: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.page-news .ac-form textarea { height: auto; min-height: 76px; padding: 0.65rem 0.85rem; line-height: 1.5; resize: vertical; }
.page-news .ac-form input:hover, .page-news .ac-form select:hover, .page-news .ac-form textarea:hover { border-color: #b4bfcf; }
.page-news .ac-form input:focus, .page-news .ac-form select:focus, .page-news .ac-form textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); outline: 0; }
.page-news .ac-form input:disabled { background: #f1f4f9; color: #5b6577; }
.ac-form .ac-btn { justify-self: start; }
.ac-form .ac-btn.wide { justify-self: stretch; }
.ac-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.ac-form label.ac-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; font-weight: 400; line-height: 1.45; color: var(--ac-body); cursor: pointer; }
.ac-form label.ac-check span { color: var(--ac-body); }
.ac-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #2563eb; }
.ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ac-card.ac-risk { border-color: #f3c9c4; background: #fffafa; }

/* sign-in and sign-up */
.ac-auth { padding: 2rem; border-radius: 16px; box-shadow: 0 16px 44px rgba(16, 38, 73, 0.1); border-top: 5px solid #2563eb; }
#wrapper #main .ac-google, .ac-google { display: flex; align-items: center; justify-content: center; gap: 0.7rem; width: 100%; height: 48px; border: 1px solid var(--ac-line2); border-radius: 8px; background: #fff; color: #1f2937; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
#wrapper #main .ac-google:hover { background: #f6f9fe; color: #0a1628; }
.ac-google svg { width: 20px; height: 20px; }
.page-news .post-content p.ac-or { display: flex; align-items: center; gap: 0.9rem; margin: 1.1rem 0; font-size: 0.8125rem; color: var(--ac-mute); }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: #e3e8ef; }
.page-news .post-content p.ac-alt { margin: 1.1rem 0 0; font-size: 0.9375rem; text-align: center; }
.page-news .post-content p.ac-alt.small { font-size: 0.8438rem; color: var(--ac-mute); }

/* membership choice */
.ac-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.85rem; }
.ac-tier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; padding: 1.15rem; }
.ac-tier.sel { border: 2px solid #2563eb; padding: calc(1.15rem - 1px); }
.page-news .post-content .ac-tier p { font-size: 0.875rem; line-height: 1.5; margin: 0 0 0.9rem; }
.page-news .post-content .ac-tier p.ac-price { color: var(--ac-mute); margin-bottom: 0.5rem; }
.ac-price b { display: block; font-size: 1.5rem; font-weight: 650; line-height: 1.25; color: var(--ac-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ac-tier .ac-btn { margin-top: auto; }

/* tables */
.ac-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.75rem; }
.page-news table.ac-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
.page-news .ac-table th, .page-news .ac-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--ac-line); vertical-align: middle; font-family: var(--wn-font); text-transform: none; letter-spacing: 0; line-height: 1.45; color: var(--ac-body); }
.page-news .ac-table th { font-size: 0.8125rem; font-weight: 500; color: var(--ac-mute); background: none; padding-top: 0; white-space: nowrap; }
.page-news .ac-table tr:last-child td { border-bottom: 0; padding-bottom: 0.25rem; }
.page-news .ac-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-news .ac-table td.num { color: var(--ac-ink); font-weight: 500; }
#wrapper #main .ac-main .ac-table td:first-child a { font-weight: 500; white-space: nowrap; }

/* masterclasses and courses */
.ac-offers { display: grid; gap: 1rem; }
.ac-offer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.ac-offer > div { min-width: 0; }
#main .ac-body .ac-offer h2 { margin: 0.6rem 0 0.3rem; }
#wrapper #main .ac-main .ac-offer h2 a { color: var(--ac-ink); text-decoration: none; }
#wrapper #main .ac-main .ac-offer h2 a:hover { text-decoration: underline; }
.ac-offer .ac-btn { flex: none; }
.ac-empty { text-align: center; padding: 2.5rem 1.5rem; }
.ac-offer-full img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.ac-offer-full .ac-centre { margin-left: 0.35rem; vertical-align: middle; }
#main .ac-body .ac-offer-full h2 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 0.7rem 0 0.4rem; }
.ac-offer-act { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ac-line); display: grid; gap: 0.75rem; justify-items: start; }

/* an invoice */
.ac-invoice-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ac-invoice-bar span { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#wrapper #main .ac-invoice-bar > a { font-weight: 500; text-decoration: none; }
.ac-invoice { background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; padding: 2.25rem; }
.ac-invoice header { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid #0a1628; }
body.page-news .ac-invoice header img { display: block; width: 120px; height: auto; margin-bottom: 0.9rem; }
.page-news .post-content .ac-invoice header p { font-size: 0.875rem; line-height: 1.55; margin: 0; }
.ac-invoice-id { text-align: right; }
#main .ac-body .ac-invoice-id h2 { font-size: 1.75rem; margin: 0; letter-spacing: -0.022em; }
.page-news .post-content .ac-invoice-id p { font-size: 1rem; font-weight: 600; margin: 0.15rem 0 0.6rem; color: var(--ac-ink); font-variant-numeric: tabular-nums; }
.ac-stamp { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.22rem 0.7rem; border-radius: 6px; border: 2px solid #b45309; color: #b45309; }
.ac-stamp.paid { border-color: #15803d; color: #15803d; }
.ac-stamp.void { border-color: #64748b; color: #64748b; }
.ac-invoice-meta { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; margin: 1.5rem 0; }
.ac-invoice-meta dt { font-size: 0.8125rem; font-weight: 500; color: var(--ac-mute); margin: 0 0 0.25rem; }
.ac-invoice-meta dd { margin: 0 0 0.9rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ac-ink); }
.page-news table.ac-invoice-lines { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.page-news .ac-invoice-lines th, .page-news .ac-invoice-lines td { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--ac-line); text-align: left; font-family: var(--wn-font); text-transform: none; letter-spacing: 0; background: none; color: var(--ac-ink); }
.page-news .ac-invoice-lines thead th { font-size: 0.8125rem; font-weight: 500; color: var(--ac-mute); }
.page-news .ac-invoice-lines th:last-child, .page-news .ac-invoice-lines td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-news .ac-invoice-lines tfoot th { text-align: right; font-weight: 600; }
.page-news .ac-invoice-lines tfoot tr:first-child th, .page-news .ac-invoice-lines tfoot tr:first-child td { font-size: 1.125rem; font-weight: 700; color: #0a1628; }
.ac-invoice-pay { margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: 10px; background: #f6f8fb; }
.page-news .post-content .ac-invoice-pay p { font-size: 0.9rem; margin: 0 0 0.5rem; white-space: pre-line; }
.page-news .post-content p.ac-invoice-foot { margin: 1.5rem 0 0; font-size: 0.8438rem; color: var(--ac-mute); text-align: center; }

/* responsive */
@media (max-width: 1100px) {
  .ac-mem { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem; }
  .ac-year { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 1024px) {
  .ac-top { padding-top: 100px; }
  .ac-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .ac-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 0.35rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ac-nav::-webkit-scrollbar { display: none; }
  #wrapper #main .ac-nav a, .ac-nav a { white-space: nowrap; padding: 0.5rem 0.8rem; font-size: 0.875rem; }
  .ac-mem { grid-template-columns: minmax(0, 384px) minmax(0, 1fr); gap: 1.5rem 2.25rem; }
  .ac-year { flex-direction: row; align-items: center; gap: 1.5rem; }
}
@media (max-width: 860px) {
  .ac-cards { grid-template-columns: minmax(0, 1fr); }
  .ac-mem { grid-template-columns: minmax(0, 1fr); }
  .ac-idcard { max-width: 420px; }
  .ac-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac-figs .ac-figs-bar { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ac-body { padding: 20px 5% 56px; }
  .ac-top { padding-bottom: 22px; }
  .ac-card { padding: 1.15rem; }
  .ac-auth { padding: 1.4rem 1.15rem; }
  .ac-row, .ac-invoice-meta { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .ac-dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .ac-offer { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .ac-invoice { padding: 1.25rem; }
  .ac-invoice header { flex-direction: column; gap: 1rem; }
  .ac-invoice-id { text-align: left; }
  .ac-list li { flex-wrap: wrap; }
  .ac-top form .ac-who { display: none; }
  .ac-idcard { min-height: 200px; padding: 1.15rem 1.2rem 1.1rem; }
  .ac-covers strong { font-size: 0.875rem; }
  .ac-ring { width: 108px; height: 108px; }
  .ac-year { gap: 1.1rem; }
  .ac-ticks { grid-template-columns: minmax(0, 1fr); }
  .ac-steps { flex-direction: column; gap: 0.2rem; }
  .ac-steps li, .ac-steps li:last-child { flex: none; padding: 0 0 0.9rem 26px; min-height: 26px; }
  .ac-steps li::before { top: 14px; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .ac-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-summit { grid-template-columns: auto minmax(0, 1fr); padding: 1.15rem; }
  .ac-summit .ac-btn { grid-column: 1 / -1; justify-self: start; }
  .page-news .post-content .ac-main p.ac-summit-date { padding-right: 1.1rem; }
  .ac-figs > div { padding: 1rem 1.15rem; }
  .ac-figs b { font-size: 1.5rem; }
  /* the invoice table becomes one block per invoice: number and status, what it is for, date and amount, the button */
  .ac-scroll { margin: 0; overflow: visible; }
  .page-news table.ac-table, .page-news .ac-table tbody { display: block; min-width: 0; }
  .page-news .ac-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-news .ac-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--ac-line); }
  .page-news .ac-table tr:first-child { padding-top: 0; }
  .page-news .ac-table tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .page-news .ac-table td, .page-news .ac-table tr:last-child td { display: block; padding: 0; border: 0; }
  .page-news .ac-table td:nth-child(1) { grid-area: 1 / 1; }
  .page-news .ac-table td:nth-child(5) { grid-area: 1 / 2; justify-self: end; }
  .page-news .ac-table td:nth-child(3) { grid-area: 2 / 1 / 3 / 3; color: var(--ac-ink); }
  .page-news .ac-table td:nth-child(2) { grid-area: 3 / 1; font-size: 0.8438rem; color: var(--ac-mute); }
  .page-news .ac-table td:nth-child(4) { grid-area: 3 / 2; }
  .page-news .ac-table td:nth-child(6) { grid-area: 4 / 1 / 5 / 3; text-align: left; padding-top: 0.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-account .ac-btn, .page-account .ac-cover img, .page-news .ac-form input, .page-news .ac-form select, .page-news .ac-form textarea, .ac-google { transition: none; }
}

/* printing an invoice: only the invoice */
@page { margin: 16mm 14mm; }
@media print {
  #wac-hd, footer.footer, .ac-top, .ac-nav, .no-print, #wac-to-top { display: none !important; }
  .ac-body { background: #fff; padding: 0; min-height: 0; }
  .ac-grid { display: block; }
  .ac-main { display: block; }
  .ac-single, .ac-single.wide { max-width: none; }
  .ac-invoice { border: 0; padding: 0; border-radius: 0; }
  .ac-invoice-pay { background: none; border: 1px solid #cfd7e3; }
  body.page-account { background: #fff; }
}

/* ---------- sign-in by emailed code ---------- */
.page-news .ac-form input.ac-code-in { height: 64px; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.5em; text-align: center; padding-left: 0.5em; font-variant-numeric: tabular-nums; }
.page-news .ac-form input.ac-code-in::placeholder { color: #c3ccd9; font-weight: 400; }
.ac-alt-form { margin: 0; }
.page-news .post-content .ac-linkbtn { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--ac-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.page-news .post-content .ac-linkbtn:hover { color: var(--ac-ink); }
.page-news .ac-form label small { display: block; margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 400; color: var(--ac-mute); }
