/* Round 23 (Oct 28, 2026): the bar (D92 v3 with v2's two-group Resources menu, D94 the Help-Center hover), the lessons carousel
   in place of the triple panel (D95 a), the count-up figures (D96 a) and the full-height navy close with the mark's arrival (D97 b, D93 a).
   Loaded on every page by includes/head-brand.php after round20.css; the txc-* and ending rules apply only on the homepage. */

/* ---------- the bar: four items beside the buttons, a hairline between (above the hamburger width) ---------- */
@media (min-width:1181px){
  .nav-r23 .nav-left{flex:1 1 auto;justify-content:space-between}
  .nav-r23 .logo-section{flex:1 1 auto;justify-content:space-between}
  .nav-r23 .nav-menu-links{gap:2.25rem;margin-right:0;padding-right:2rem;border-right:1px solid #c9d2dc;line-height:1}
  .nav-r23 .nav-right{padding-left:2rem}
  .nav-r23 .nav-menu-links .nav-link{font-size:15.5px}
  .nav-r23 .nav-res .dropdown-menu{left:auto;right:0}
}
@media (min-width:1181px) and (max-width:1300px){.nav-r23 .nav-menu-links{gap:1.6rem;padding-right:1.4rem}.nav-r23 .nav-right{padding-left:1.4rem}}
/* the dropdowns: square, roomier; Resources in two groups (Nov 1: the gold tick at the top-left removed) */
@media (min-width:1181px){
  .nav-r23 .dropdown-menu{border-radius:0;border:1px solid #d9dee5;box-shadow:0 10px 28px rgba(0,26,51,.14);padding:8px 0;min-width:250px;max-width:none;margin-top:0;top:calc(100% + 14px)}
  .nav-r23 .dropdown-menu::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
  .nav-r23 .dropdown-item{padding:10px 20px;font-size:15px}
  .nav-r23 .dropdown-item:hover{background:#f2f6fb}
  .nav-r23 .tx-dd-2{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;min-width:540px;padding:16px 8px 12px}
  .nav-r23 .nav-dropdown:hover .tx-dd-2{display:grid}
  .nav-r23 .tx-dd-grp{display:flex;flex-direction:column}
  .nav-r23 .tx-dd-grp+.tx-dd-grp{border-left:1px solid #e3e8ee}
}
.nav-r23 .tx-dd-k{display:block;padding:4px 20px 8px;font:700 11px/1 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#5d6875}
@media (max-width:1180px){.nav-r23 .tx-dd-k{padding:8px 0 4px}}
/* D94: the Help-Center hover. A 2-px line the width of the word wipes in from the left in .5 s (fast out, soft landing)
   and wipes back the same way (slow start, quick finish); the cut corner is gone */
.nav-r23 .nav-menu-links .nav-link::after{background-color:#001a33!important;height:2px!important;clip-path:none!important;transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.4,0,.68,.06)!important}
.nav-r23 .nav-menu-links .nav-link:hover::after,.nav-r23 .nav-menu-links .nav-link:focus-visible::after{transform:scaleX(1);transition:transform .5s cubic-bezier(.32,.94,.6,1)!important}

/* ---------- the lessons carousel ---------- */
.txc{background:#fff;padding:clamp(56px,7vw,96px) 0 clamp(56px,7vw,88px);font-family:var(--tx-ui,Inter),system-ui,sans-serif;color:#0a0a0a;overflow:hidden}
.txc-in{max-width:1200px}
.txc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}
.txc .hs-k{margin-bottom:12px}
.txc .section-title{text-align:left;margin:0 0 10px;font-size:clamp(28px,3vw,40px)}
.txc-sub{margin:0;font:400 17px/1.5 var(--tx-ui,Inter),system-ui,sans-serif;color:#3d4652;max-width:56ch}
.txc-arrows{display:flex;gap:8px;flex:0 0 auto}
.txc-arrows button{width:48px;height:48px;display:grid;place-items:center;background:#fff;border:1.5px solid #001a33;color:#001a33;cursor:pointer;transition:background-color .2s ease,color .2s ease,opacity .2s ease}
.txc-arrows button svg{width:12px;height:12px}
.txc-arrows .txc-prev svg{transform:rotate(180deg)}
.txc-arrows button:hover{background:#001a33;color:#fff}
.txc-arrows button:disabled{opacity:.35;cursor:default;background:#fff;color:#001a33}
.txc-arrows button:focus-visible{outline:2px solid #c9a227;outline-offset:2px}
.txc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.txc-pill{appearance:none;border:1.5px solid #d9dee4;background:#fff;color:#0a0a0a;font:600 14px/1 var(--tx-ui,Inter),system-ui,sans-serif;padding:11px 16px;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.txc-pill:hover{border-color:#001a33}
.txc-pill.on{background:#001a33;border-color:#001a33;color:#fff}
.txc-pill:focus-visible{outline:2px solid #c9a227;outline-offset:2px}
.txc-track-wrap{position:relative}
.txc-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 24px 24px;scroll-padding-left:24px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.txc-track::-webkit-scrollbar{display:none}
.txc-pad{flex:0 0 1px}
.txc-c{flex:0 0 380px;scroll-snap-align:start;display:flex;flex-direction:column;gap:14px;min-height:460px;padding:22px 22px 18px;background:#f2f6fb;border:1.5px solid #d9dee4;color:#0a0a0a;text-decoration:none;transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease}
.txc-c:hover{border-color:#001a33;transform:translateY(-3px);box-shadow:0 14px 30px -18px rgba(0,26,51,.35)}
.txc-c:focus-visible{outline:2px solid #c9a227;outline-offset:3px}
.txc-k{display:flex;align-items:center;gap:10px}
.txc-k .h20-chip{width:44px;height:28px;font-size:11px}
.txc-t{font:700 15px/1.3 var(--tx-ui,Inter),system-ui,sans-serif;color:#5d6875}
.txc-line{font:800 clamp(20px,1.7vw,23px)/1.2 "Roboto Slab",Georgia,serif;letter-spacing:-.01em;color:#001a33;text-wrap:balance;min-height:2.4em}
.txc-art{flex:1 0 auto;display:grid;place-items:center;background:#001a33;min-height:190px;position:relative;overflow:hidden;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%)}
.txc-art-fig svg{display:block;width:100%;height:auto}
.txc-art-plate .txc-big{font:800 64px/1 "Roboto Slab",Georgia,serif;color:rgba(255,255,255,.14);letter-spacing:-.02em}
.txc-art-plate i{position:absolute;left:18px;right:18px;border-top:1px dashed rgba(255,255,255,.22)}
.txc-art-plate i:nth-child(2){top:34%}.txc-art-plate i:nth-child(3){top:50%;left:34%}.txc-art-plate i:nth-child(4){top:66%;right:30%}
.txc-art-plate::after{content:"";position:absolute;right:18px;top:18px;width:46px;height:30px;border:1.5px solid #c9a227;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%)}
.txc-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:4px}
.txc-meta{font:500 13px/1 var(--tx-ui,Inter),system-ui,sans-serif;color:#5d6875}
.txc-meta b{color:#001a33;font-weight:700}
.txc-arrow{width:34px;height:34px;display:grid;place-items:center;border:1.5px solid #001a33;color:#001a33;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.txc-arrow svg{width:11px;height:11px}
.txc-c:hover .txc-arrow{background:#c9a227;border-color:#c9a227;color:#001a33}
@media (max-width:820px){
  .txc-head{flex-direction:column;align-items:flex-start}
  .txc-arrows{display:none}
  .txc-c{flex-basis:300px;min-height:420px}
  .txc-track{gap:14px;padding:4px 16px 24px;scroll-padding-left:16px}
}
@media (prefers-reduced-motion:reduce){.txc-c,.txc-c:hover{transform:none}}
/* Oct 31: while the strip drifts, no snapping (the drift would fight it). Nov 1: the strip starts 24 px from the left edge instead of at the heading's margin, so no empty run before the first card */
.txc-track.txc-drift{scroll-snap-type:none}

/* ---------- the count-up figures: nothing to draw; round23.js rolls the numbers once (reduced motion: none) ---------- */

/* ---------- the ending as a full-height navy close: the grain, the mark large behind the words, the gold button ---------- */
.h20-final.tx-end{background:linear-gradient(135deg,#000c1a 0%,#001a33 50%,#000c1a 100%);--te-ink:#fff;min-height:calc(100vh - 72px);display:grid;place-items:center;position:relative;overflow:hidden;padding:72px 0}
.h20-final.tx-end::before{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/220px 220px repeat;pointer-events:none}
.h20-final .tx-end-in{grid-template-columns:1fr;justify-items:center;text-align:center;padding:0 24px;max-width:900px;position:relative;z-index:1;gap:0;align-items:center}
.h20-final .tx-end-copy{padding:0!important;display:flex;flex-direction:column;align-items:center;position:relative;z-index:2}
.h20-final .tx-end-h{display:grid;justify-items:center}
.h20-final .tx-end-h h2{color:#fff;font-size:clamp(40px,5.4vw,70px);max-width:none}
.h20-final .tx-end-under{display:none}
.h20-final .tx-end-act{justify-content:center;margin-top:30px}
.h20-final .tx-end-drop{display:none}
main:has(> .tx-end.h20-final) ~ footer.main-footer{padding-top:60px!important}
@media (max-width:820px){
  .h20-final.tx-end{min-height:0;padding:72px 0 80px}
  .h20-final .tx-end-in{gap:0}
  .h20-final .tx-end-act{margin-top:26px}
  main:has(> .tx-end.h20-final) ~ footer.main-footer{padding-top:48px!important}
}
/* D93 a, adapted to the watermark: a pen draws the outline once the pulse arrives, the gold fills from the ground up, then it settles to 12 % behind the words */
.h20-final .tx-end-mark{position:absolute;left:50%;top:50%;width:min(760px,90vw);transform:translate(-50%,-54%);margin:0;z-index:0;pointer-events:none;color:#c9a227;animation:none!important}
.h20-final .tx-end-mark>svg.tm path{fill:#c9a227;opacity:0;clip-path:inset(100% 0 0 0);transition:none}
.h20-final .tx-end-mark .tx-end-ol{position:absolute;inset:0}
.h20-final .tx-end-mark .tx-end-ol path{fill:none!important;stroke:#e6c968;stroke-width:7!important;stroke-linejoin:miter;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}   /* !important: round13.css fills every .tm path once lit */
.h20-final.is-lit .tx-end-mark .tx-end-ol path{animation:tx23-draw 1.3s cubic-bezier(.45,.05,.2,1) 0s forwards,tx23-fade .6s ease 2.2s forwards}
.h20-final.is-lit .tx-end-mark>svg.tm path{animation:tx23-rise .9s cubic-bezier(.3,.7,.2,1) 1s forwards,tx23-settle .8s ease 2.2s forwards}
@keyframes tx23-draw{0%{opacity:.9;stroke-dashoffset:1}100%{opacity:.9;stroke-dashoffset:0}}
@keyframes tx23-fade{to{opacity:0}}
@keyframes tx23-rise{0%{opacity:.5;clip-path:inset(100% 0 0 0)}100%{opacity:.5;clip-path:inset(0 0 0 0)}}
@keyframes tx23-settle{to{opacity:.12}}
.h20-final .tx-end-bloom,.h20-final .tx-end-race{display:none}
@media (prefers-reduced-motion:reduce){
  .h20-final .tx-end-mark>svg.tm path,.h20-final.is-lit .tx-end-mark>svg.tm path{animation:none!important;opacity:.12!important;clip-path:none!important}
  .h20-final .tx-end-mark .tx-end-ol path,.h20-final.is-lit .tx-end-mark .tx-end-ol path{animation:none!important;opacity:0!important}
}
