/* UX pass 2026-10-16: one button system, calmer hero, compact TOC, collapsible sections, smarter bonus bar */
:root{--ux-primary:#1465c0;--ux-primary-h:#1d78dd;--ux-line:#2c3a5c;--ux-txt:#d8dde9;--ux-gap:48px}

/* ---------- buttons: one primary colour, one secondary style, one size ---------- */
.btn,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 26px;border-radius:10px;font-size:16px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease;transform:none!important}
.btn.accent,.btn.secondary,.btn.large,.wp-block-button__link,.bonus-bar .btn,.cta-box .btn{background:var(--ux-primary);color:#fff;border:2px solid var(--ux-primary)}
.btn.accent:hover,.btn.secondary:hover,.btn.large:hover,.wp-block-button__link:hover,.bonus-bar .btn:hover,.cta-box .btn:hover{background:var(--ux-primary-h);border-color:var(--ux-primary-h);color:#fff}
.btn.large{min-height:52px;padding:14px 30px;font-size:17px}
/* button on the blue-green gradient box: white so it stays readable */
.cta-gradient .btn,.cta-gradient .wp-block-button__link{background:#fff;color:#0b2a55;border:2px solid #fff}
.cta-gradient .btn:hover,.cta-gradient .wp-block-button__link:hover{background:#e8f0ff;color:#0b2a55}
.wp-block-buttons{margin:24px 0;gap:12px;flex-wrap:wrap}
/* header: Log In = quiet, Registration = the only filled button */
.header-buttons .btn{min-height:40px;padding:8px 18px;font-size:14px}
/* active nav item no longer a green pill */
.main-nav a.active,.main-nav a[aria-current="page"]{background:rgba(20,101,192,.18)!important;color:#fff!important;border-radius:8px}

/* ---------- hero: text first, smaller mock-up ---------- */
.welcome-section{grid-template-columns:1.35fr .65fr;padding:36px 40px;gap:28px;margin-bottom:24px}
.welcome-section .description p{font-size:17px;margin:0 0 20px}
.welcome-section .image img,.welcome-section .hero-img-wrap,.welcome-section .hero-image{max-width:340px!important;width:100%}
@media (max-width:900px){
  .welcome-section{grid-template-columns:1fr;padding:24px 20px}
  .welcome-section .image{display:none}
  .welcome-section h1{font-size:26px}
  .welcome-section .description p{font-size:16px}
  .welcome-section .btn.large{width:100%}
}
.ux-intro{margin:0 0 8px;color:var(--ux-txt)}

/* ---------- table of contents ---------- */
.page-toc {
  margin: 0 0 24px;
  padding: 18px 20px 10px;
  border: 1px solid var(--ux-line);
  border-radius: 12px;
  background: #141b2d;
}
.page-toc h2 { margin: 0 0 6px; color: #fff; font-size: 21px; line-height: 1.35; }
.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc__quick, .page-toc__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.page-toc__quick li { border-bottom: 1px solid var(--ux-line); }
.page-toc a { color: #c5ddff; text-decoration: none; }
.page-toc a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.page-toc__quick a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.page-toc__all { margin-top: 5px; }
.page-toc__all summary { display: list-item; width: fit-content; min-height: 44px; padding: 10px 4px 10px 0; color: #bbd7ff; cursor: pointer; }
.page-toc__all summary:hover { color: #fff; }
.page-toc :is(a, summary):focus-visible { outline: 2px solid #8fc5ff; outline-offset: 2px; border-radius: 4px; }
.page-toc__groups { gap: 16px 20px; padding: 14px 0 10px; border-top: 1px solid var(--ux-line); }
.page-toc__group h3 { margin: 0 0 4px; color: #fff; font-size: 15px; line-height: 1.4; }
.page-toc__group a { display: flex; align-items: center; min-height: 36px; padding: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.page-toc ~ .content h2[id] { scroll-margin-top: 88px; }
@media (max-width: 720px) {
  .page-toc { padding: 14px 14px 6px; }
  .page-toc__quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .page-toc__groups { grid-template-columns: 1fr; gap: 12px; }
  .page-toc__group a { min-height: 44px; }
}

/* ---------- vertical rhythm ---------- */
article.content>h2,main>h2,.content h2{margin:var(--ux-gap) 0 14px}
article.content>h2:first-child{margin-top:8px}
.content h3{margin:28px 0 10px}
.content p{margin:0 0 14px}
.content ul,.content ol{margin:0 0 16px}
.content figure,.content-image,.cta-gradient,.cta-box,.content table,.content .table-wrap{margin-top:24px;margin-bottom:24px}
@media (max-width:600px){:root{--ux-gap:36px}}

/* ---------- collapsible sections ---------- */
.sec-more{display:inline-flex;align-items:center;gap:6px;margin:2px 0 6px;background:none;border:1px solid var(--ux-line);border-radius:999px;color:#9cc3ff;font:600 14px inherit;padding:7px 16px;cursor:pointer}
.sec-more:hover{border-color:#5b7bb5;color:#fff}
.sec-more .ux-chev{transition:transform .2s}
.sec-more[aria-expanded="true"] .ux-chev{transform:rotate(180deg)}
html:not(.ux-js) .sec-more{display:none}
html:not(.ux-js) .sec-rest[hidden]{display:block!important;content-visibility:visible}

/* ---------- language switcher: visible, tappable ---------- */
.lang-switcher{font-size:14px;gap:4px;border:1px solid var(--ux-line);border-radius:999px;padding:3px}
.lang-switcher a{padding:6px 12px;border-radius:999px;color:#cfd5e3}
.lang-switcher a.active{background:var(--ux-primary);color:#fff}
.lang-switcher .sep{display:none}
@media (max-width:600px){.lang-switcher{font-size:14px}.lang-switcher a{padding:7px 11px}}

/* Keep the off-screen banner out of the tab order until it is shown. */
.bonus-bar {
  visibility: hidden;
  transform: translateY(calc(100% + max(12px, env(safe-area-inset-bottom))));
  transition: transform .25s ease, visibility 0s linear .25s;
}
.bonus-bar.ux-show {
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
body.ux-bar-on { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (max-width: 440px) {
  body.ux-bar-on { padding-bottom: calc(145px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .bonus-bar { transition: none; }
}

.content .app-actions {
  justify-content: flex-start;
  margin: 16px 0 8px;
}

.content .app-actions-note {
  margin: 0 0 14px;
  color: #b0bdd4;
  font-size: 14px;
}
