/* FERZ Education: docs-style service inside the site's fixed header and footer.
   Two themes on <html data-theme>: light (white) and dark. The site header stays black in both. */
:root[data-theme=dark]{--bg:#000;--fg:#f4f4f4;--fg2:#c4c4c4;--muted:#8a8a8a;--line:#1f1f1f;--line2:#2e2e2e;--surf:#0c0c0c;--surf2:#151515;--hover:#121212}
:root[data-theme=light]{--bg:#fff;--fg:#0b0b0b;--fg2:#3a3a3a;--muted:#6f6f6f;--line:#ececec;--line2:#dcdcdc;--surf:#f7f6f3;--surf2:#efede8;--hover:#f3f2ee}
@font-face{font-family:Vegawanty;src:url("https://cdn.prod.website-files.com/66eeb2005ace47283a6a149d/6890488e80a6432ed7c33696_Vegawanty.ttf") format("truetype");font-display:block}
:root{--red:#c51028;--sq-l:#f2efe9;--sq-d:#c51028}
html[data-theme] body{background:var(--bg)}
/* The site header scrolls away with the page here and takes the theme colours */
html[data-theme] .header{position:relative;background:var(--bg)}
html[data-theme=light] .header .logo{filter:invert(1)}
html[data-theme=light] .header-menu-item,html[data-theme=light] .header .cart-button,html[data-theme=light] .header-cart-text-block{color:#0b0b0b;border-color:#0b0b0b}
html[data-theme=light] .header-burger-line{background-color:#0b0b0b}
html[data-theme=light] .mobile-menu{background:#fff;color:#0b0b0b}
html[data-theme=light] .mobile-menu-link,html[data-theme=light] .mobile-menu-small-link{color:#0b0b0b}
html[data-theme=light] .mobile-menu-small-link{opacity:.6}
html[data-theme=light] .mobile-menu-logo{filter:invert(1)}
.mobile-menu-link.is-edu,.header-menu-item.is-edu{color:var(--red)!important;border-color:var(--red)!important}
.edu{--text:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;--top:0px;
  display:grid;grid-template-columns:272px minmax(0,1fr);max-width:1520px;margin:0 auto;padding-top:8px;background:var(--bg);color:var(--fg);font-family:var(--text);text-transform:none;letter-spacing:0;font-weight:400;font-size:16px;line-height:1.5}
.edu svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.edu .edu-board,.edu .edu-diagram svg,.edu .edu-thumb svg{stroke:none}
.edu-label{font-family:var(--sofia);font-weight:600;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}

/* Footer: site links and legal links on the page background */
.edu-footer{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 28px;padding:40px 20px 48px;border-top:1px solid var(--line);background:var(--bg);height:auto}
.edu-footer .prefooter_nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;flex:0 0 100%;width:100%;max-width:none;margin:0 0 6px;padding:0;border:0}
.edu-footer .prefooter_nav-link{color:var(--fg2)}
.edu-footer .footer-link{color:var(--muted)}
.edu-footer a:hover{color:var(--red)}

/* Sidebar */
.edu-side{position:sticky;top:0;align-self:start;height:100vh;padding-top:24px!important;overflow:auto;box-sizing:border-box;border-right:1px solid var(--line);padding:6px 20px 48px 24px;scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.edu-side-top{display:flex;align-items:center;gap:8px;margin:0 0 22px}
.edu-search-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:8px;margin:0;color:var(--muted)}
.edu-search-wrap svg{width:16px;height:16px;flex:none}
.edu-search{flex:1;min-width:0;background:none;border:0;border-radius:0;color:var(--fg);padding:6px 0;font:400 14px var(--text);outline:none;-webkit-appearance:none}
.edu-search::placeholder{color:var(--muted)}
.edu-search-wrap:focus-within{color:var(--fg)}
.edu-search-wrap kbd{display:none}
.edu-group{margin-bottom:14px}
.edu-group summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:9px 0;font-family:var(--sofia);font-weight:600;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--fg)}
.edu-group summary::-webkit-details-marker{display:none}
.edu-group summary em{flex:none;display:grid;place-items:center;width:14px;height:14px;color:var(--muted)}
.edu-group summary em:after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateX(-1.5px) rotate(-45deg);transition:transform .2s}
.edu-group[open] summary em:after{transform:translateY(-1.5px) rotate(45deg)}
.edu-sub{margin:10px 0 4px;font-size:11px;font-weight:500;color:var(--muted)}
.edu-group ul{list-style:none;margin:0;padding:0}
.edu-group li a{display:block;padding:6px 0;margin:0 0 1px;font-size:14px;line-height:1.35;color:var(--fg2);text-decoration:none}
.edu-group li a:hover{color:var(--fg)}
.edu-group li a.on{color:var(--red);font-weight:600}

.edu-group summary,.edu-side a{-webkit-user-select:none;user-select:none}

/* Top bar: menu button (mobile), breadcrumbs, theme toggle */
.edu-main{min-width:0;padding:0 56px 120px}
.edu-top{display:flex;align-items:center;gap:16px;min-height:34px;margin:24px 0 36px}
.edu-crumbs{flex:1;min-width:0}
.edu-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 2px;list-style:none;margin:0;padding:0;font-size:13px}
.edu-crumbs li{position:relative;display:flex;align-items:center}
.edu-crumbs .sep{color:var(--line2);padding:0 6px}
.edu-crumbs a{color:var(--muted);text-decoration:none;padding:4px 2px;border-radius:4px}.edu-crumbs a:hover{color:var(--fg)}
.edu-crumbs .cur{color:var(--fg);font-weight:500;padding:4px 2px}
.edu-crumbs .dd{display:grid;place-items:center;width:22px;height:22px;margin-left:1px;border:0;border-radius:5px;background:none;color:var(--muted);cursor:pointer;padding:0}
.edu-crumbs .dd svg{width:14px;height:14px}
.edu-crumbs .dd:hover,.edu-crumbs .dd[aria-expanded=true]{background:var(--surf2);color:var(--fg)}
.edu-crumbs .ddm{display:none;position:absolute;top:calc(100% + 6px);left:0;z-index:50;min-width:220px;padding:6px;background:var(--bg);border:1px solid var(--line2);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.edu-crumbs .dd[aria-expanded=true]+.ddm{display:block}
.edu-crumbs .ddm a{display:block;padding:8px 10px;color:var(--fg2);white-space:nowrap;font-size:14px}
.edu-crumbs .ddm a:hover{background:var(--hover);color:var(--fg)}
.edu-crumbs .ddm a.on{color:var(--fg);font-weight:600}
.edu-crumbs .ddm a.on:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin:0 8px 1px 0}
.edu-theme{flex:none;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:none;color:var(--fg);cursor:pointer;padding:0}
.edu-theme svg{width:17px;height:17px}.edu-theme:hover{border-color:var(--fg2)}
[data-theme=dark] .edu-theme .moon,[data-theme=light] .edu-theme .sun{display:none}
.edu-menu-btn,.edu-scrim{display:none}

/* Guide */
.edu-doc{display:grid;grid-template-columns:minmax(0,740px) 260px;gap:64px;justify-content:space-between}
.edu-head{margin:0 0 28px}
.edu-eyebrow{font-family:var(--sofia);font-weight:600;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--red);margin:0 0 14px}
.edu-h1{font-family:Vegawanty,serif;font-weight:400;text-transform:uppercase;letter-spacing:.02em;word-spacing:.15em;font-size:64px;line-height:1;margin:0 0 20px;color:var(--fg)}
.edu-lead{font-size:21px;line-height:1.45;color:var(--fg2);max-width:680px;margin:0 0 22px}
.edu-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.edu-meta span{font-size:12px;font-weight:500;color:var(--fg2);border:1px solid var(--line2);border-radius:60px;padding:5px 12px}
.edu-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 44px;border:1px solid var(--line2);border-radius:12px;overflow:hidden}
.edu-facts div{padding:14px 18px;border-bottom:1px solid var(--line);margin:0}
.edu-facts div:nth-child(odd){border-right:1px solid var(--line)}
.edu-facts div:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
.edu-facts div:last-child,.edu-facts div:nth-last-child(2):nth-child(odd){border-bottom:0}
.edu-facts dt{font-family:var(--sofia);font-weight:600;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin:0 0 4px}
.edu-facts dd{margin:0;font-size:15px;line-height:1.4;color:var(--fg)}
.edu-article{font-size:17px;line-height:1.7;color:var(--fg2)}
.edu-article h2{font-family:Vegawanty,serif;font-weight:400;font-size:32px;letter-spacing:.02em;word-spacing:.15em;text-transform:uppercase;color:var(--fg);margin:64px 0 18px;line-height:1.1;scroll-margin-top:24px}
.edu-article h3{font-weight:650;font-size:19px;color:var(--fg);margin:34px 0 8px;line-height:1.3}
.edu-article p{margin:0 0 18px}.edu-article strong{color:var(--fg);font-weight:600}
.edu-article a{color:var(--fg);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:3px}
.edu-article ul,.edu-article ol{padding-left:22px;margin:0 0 22px}.edu-article li{margin-bottom:8px}
.edu-article li::marker{color:var(--red)}
.edu-article table{width:100%;border-collapse:collapse;margin:8px 0 28px;font-size:15px}
.edu-article th,.edu-article td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}
.edu-article th{font-family:var(--sofia);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:11px;color:var(--muted)}
.edu-article figure{margin:30px 0 38px}
.edu-diagram svg{display:block;width:100%;max-width:520px;height:auto;margin:0 auto;border-radius:12px}
.edu-diagram figcaption{text-align:center;font-size:14px;color:var(--muted);margin-top:8px}
.edu-faq{border-bottom:1px solid var(--line)}
.edu-faq:first-of-type{border-top:1px solid var(--line)}
.edu-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:18px 0;font-weight:600;font-size:17px;color:var(--fg)}
.edu-faq summary::-webkit-details-marker{display:none}
.edu-faq summary:after{content:"+";font-weight:300;font-size:24px;line-height:1;color:var(--muted)}
.edu-faq[open] summary:after{content:"\2212"}
.edu-faq div{padding:0 0 10px}
.edu-sources{list-style:none;padding:0!important;font-size:14px}.edu-sources li{padding-left:0}

/* Move viewer */
.ev{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;align-items:start;padding:20px;border:1px solid var(--line2);border-radius:14px;background:var(--surf)}
.evb{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;border-radius:4px;overflow:hidden;user-select:none}
.evb i{position:relative;display:block}
.evb i.l{background:var(--sq-l)}.evb i.d{background:var(--sq-d)}
.evb i.hl:before{content:"";position:absolute;inset:7%;box-shadow:0 0 0 2px #0a0a0a;z-index:1}
.evb i.d.hl:before{box-shadow:0 0 0 2px #f2efe9}
.evb img{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:2}
.evb b{position:absolute;font:400 10px/1 Vegawanty,serif;text-transform:uppercase;pointer-events:none;z-index:3;opacity:.8}
.evb .rk{left:3px;top:3px}.evb .fl{right:3px;bottom:2px}
.evb i.l b{color:var(--sq-d)}.evb i.d b{color:var(--sq-l)}
.evside{display:flex;flex-direction:column;min-height:100%;gap:14px}
.edu-article .ev figcaption{font-size:15px;line-height:1.5;color:var(--fg);margin:0;text-align:left}
.evp{white-space:nowrap;margin-right:4px}
.evm{flex:1;max-height:280px;overflow:auto;font-size:14px;line-height:1.9;color:var(--fg2);scrollbar-width:thin}
.evn{color:var(--muted);margin:0 4px 0 6px;font-variant-numeric:tabular-nums}
.evm button{border:0;background:none;padding:1px 5px;border-radius:4px;font:500 14px var(--text);color:var(--fg);cursor:pointer}
.evm button:hover{background:var(--surf2)}
.evm button.on{background:var(--fg);color:var(--bg)}
.evc{display:flex;gap:6px}
.evc button{flex:1;height:36px;border:1px solid var(--line2);border-radius:8px;background:var(--bg);color:var(--fg);font-size:13px;cursor:pointer;padding:0}
.evc button:hover{border-color:var(--fg2)}
.evg{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.evg div{display:flex;flex-direction:column}.evg div:last-child{text-align:right}
.evg b{font-size:15px;color:var(--fg)}.evg span{font-size:12px;color:var(--muted)}
.evg em{font-style:normal;font-family:var(--sofia);font-weight:600;font-size:16px;color:var(--fg)}
.evmeta{font-size:12px;color:var(--muted);margin:-6px 0 0!important}
/* Master statistics */
.evs{border:1px solid var(--line2);border-radius:14px;overflow:hidden}
.evs figcaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;background:var(--surf);border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.evs figcaption span:first-child{color:var(--fg);font-weight:600}
.evs-scroll{overflow-x:auto}
.edu-article .evs table{margin:0;font-size:14px}
.edu-article .evs td,.edu-article .evs th{padding:10px 16px}
.edu-article .evs tr:last-child td{border-bottom:0}
.evs .mv{font-weight:600;color:var(--fg);white-space:nowrap}
.evs .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.evs td:last-child{width:46%;min-width:180px}
.bar{display:flex;height:22px;border-radius:4px;overflow:hidden;font:600 11px/22px var(--text)}
.bar span{text-align:center;white-space:nowrap;overflow:hidden}
.bar .w{background:#f1ede6;color:#222;box-shadow:inset 0 0 0 1px #d8d2c8}.bar .dr{background:#6b6b6b;color:#fff}.bar .b{background:#1a1a1a;color:#fff}

/* Right rail: contents and the study pack */
.edu-rail{position:sticky;top:24px;align-self:start;display:flex;flex-direction:column;gap:28px;max-height:calc(100vh - 48px);overflow:auto;scrollbar-width:none}
.edu-toc a{display:block;padding:5px 0 5px 12px;border-left:1px solid var(--line2);font-size:13px;line-height:1.35;color:var(--muted);text-decoration:none}
.edu-toc a:hover{color:var(--fg)}
.edu-toc a.on{color:var(--fg);border-left:2px solid var(--red);padding-left:11px;font-weight:500}
.edu-offer{border:1px solid var(--line2);border-radius:14px;padding:20px;background:var(--surf)}
.edu-offer .edu-label{color:var(--red)}
.edu-offer h4{font-family:Vegawanty,serif;font-weight:400;text-transform:uppercase;word-spacing:.15em;font-size:22px;line-height:1.05;margin:0 0 12px;color:var(--fg)}
.edu-offer ul{list-style:none;margin:0 0 16px;padding:0;font-size:13px;color:var(--fg2)}
.edu-offer li{padding:4px 0 4px 18px;position:relative}
.edu-offer li:before{content:"";position:absolute;left:2px;top:10px;width:7px;height:4px;border-left:1.5px solid var(--red);border-bottom:1.5px solid var(--red);transform:rotate(-45deg)}
.edu-buy{display:flex;justify-content:space-between;align-items:center;background:var(--fg);color:var(--bg);border-radius:60px;padding:12px 18px;text-decoration:none;font-family:var(--sofia);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase}
.edu-buy:hover{background:var(--red);color:#fff}
.edu-buy b{font-size:15px;letter-spacing:.04em}
.edu-bundle{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding:10px 4px 0;border-top:1px solid var(--line);font-size:13px;color:var(--fg2);text-decoration:none}
.edu-bundle:hover{color:var(--fg)}
.edu-bundle s{color:var(--muted)}.edu-bundle b{color:var(--fg)}
.edu-offer-inline{display:none;margin:48px 0 0}
.edu-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:10000;pointer-events:none}
.edu-progress span{display:block;height:100%;width:0;background:var(--red)}
.edu-pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:64px}
.edu-pager a{display:block;border:1px solid var(--line2);border-radius:12px;padding:16px 18px;text-decoration:none;color:var(--fg);font-size:16px;font-weight:500}
.edu-pager a small{display:block;margin-bottom:4px;font-size:12px;color:var(--muted);font-weight:400}
.edu-pager a:hover{border-color:var(--fg2)}.edu-pager .next{text-align:right;grid-column:2}

/* Cards (hub and section pages) */
.edu-list{max-width:1080px}
.edu-sec-h{font-family:var(--sofia);font-weight:600;font-size:13px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);margin:40px 0 16px}
.edu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.edu-card{display:block;text-decoration:none;color:var(--fg)}
.edu-card .edu-thumb{border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:#0a0a0a}
.edu-card svg{display:block;width:100%;height:100%;transition:transform .4s}
.edu-card:hover svg{transform:scale(1.03)}
.edu-card h3{font-weight:600;font-size:17px;margin:14px 0 4px;line-height:1.3}
.edu-section{margin-bottom:64px}
.edu-section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:20px}
.edu-section-head h2{margin:0;font-family:var(--sofia);font-weight:600;font-size:20px;letter-spacing:.18em;text-transform:uppercase}
.edu-more{font-size:14px;color:var(--muted);text-decoration:none}.edu-more:hover{color:var(--fg)}

@media (max-width:1359px){
  .edu-doc{grid-template-columns:minmax(0,740px);justify-content:start}
  .edu-rail{display:none}.edu-offer-inline{display:block}
  .edu-main{padding:0 40px 96px}
}
@media (max-width:991px){
  .edu{grid-template-columns:1fr;}
  .edu-main{padding:0 20px 72px}
  .edu-top{gap:10px;margin-bottom:28px}
  .edu-menu-btn{display:inline-flex;flex:none;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:60px;padding:8px 14px;color:var(--fg);font:600 11px var(--sofia);letter-spacing:.2em;text-transform:uppercase;cursor:pointer}
  .edu-menu-btn svg{width:16px;height:16px}
  /* Guides button stays pinned to the top while reading */
  .edu-menu-btn{position:sticky;top:10px;z-index:9;margin:16px 0 0;background:var(--bg);padding:7px 12px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
  .edu-top{margin-top:16px}
  .edu-side{position:fixed;top:0;bottom:0;left:0;z-index:1001;width:min(320px,86vw);height:auto;background:var(--bg);padding:24px 20px 40px;transform:translateX(-100%);transition:transform .25s;border-right:1px solid var(--line2)}
  .edu-toggle:checked~.edu-side{transform:none}
  .edu-toggle:checked~.edu-scrim{display:block;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.45)}
  .edu-h1{font-size:46px}.edu-lead{font-size:18px}
  .edu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media (max-width:767px){
  .edu-top{flex-wrap:wrap}
  .edu-crumbs{order:3;flex-basis:100%}
  .edu-crumbs li:nth-last-child(-n+2){display:none}
  .edu-h1{font-size:38px}
  .edu-article{font-size:16px}
  .edu-article h2{font-size:26px;margin-top:52px}
  .edu-facts{grid-template-columns:1fr}
  .edu-facts div:nth-child(odd){border-right:0}
  .edu-facts div:nth-last-child(2):nth-child(odd){border-bottom:1px solid var(--line)}
  .ev{grid-template-columns:1fr;padding:12px;gap:14px;margin-left:-8px;margin-right:-8px}
  .evm{max-height:150px}
}
@media (max-width:560px){.edu-grid{grid-template-columns:1fr}.edu-pager{grid-template-columns:1fr}.edu-pager .next{grid-column:1}}

/* Chess clock */
.fc{--h:min(56vh,480px);display:grid;grid-template-columns:1fr 1fr;gap:12px;height:var(--h);margin-bottom:16px;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.fc-side{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:16px;background:var(--surf2);color:var(--fg);border:1px solid var(--line2);cursor:pointer;transition:background .15s}
.fc-side.is-active{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.fc-side.is-low.is-active,.fc-side.is-flag{background:var(--red);color:#fff;border-color:var(--red)}
.fc-time{font-family:var(--sofia);font-weight:600;font-size:clamp(64px,11vw,168px);line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.fc-meta{margin-top:14px;font-size:12px;letter-spacing:.24em;text-transform:uppercase;opacity:.6}
.fc-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:56px}
.fc-bar button,.fc-bar input{background:transparent;border:1px solid var(--line2);border-radius:60px;color:var(--fg);padding:10px 16px;font:600 12px var(--sofia);letter-spacing:.2em;text-transform:uppercase;cursor:pointer}
.fc-bar button:hover{border-color:var(--fg)}
.fc-bar button.is-on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.fc-bar input{width:72px;cursor:text;text-align:center}
.fc-bar label{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:8px}
.fc-sep{flex:1}
.fc:fullscreen{--h:100vh;background:#000;padding:12px;margin:0}
@media (max-width:767px){.fc{grid-template-columns:1fr;grid-template-rows:1fr 1fr;--h:78vh}.fc-side.top{transform:rotate(180deg)}}

/* No browser focus rings on clicks; keyboard focus shows as red text instead */
.edu summary,.edu button,.edu a,.edu input{outline:none;-webkit-tap-highlight-color:transparent}
.edu summary:focus-visible .edu-group-title,.edu a:focus-visible,.edu button:focus-visible{color:var(--red)}
/* Markdown tables (posts.mjs .fz-mdt embed is dark-only): theme colours */
.edu-article .fz-mdt{margin:8px 0 32px}
.edu-article .fz-mdt table{font-size:15px;font-family:var(--inter,Inter),sans-serif}
.edu-article .fz-mdt th{color:var(--muted);border-bottom:1px solid var(--line);font-size:11px;padding:10px 10px}
.edu-article .fz-mdt td{color:var(--fg2);border-bottom:1px solid var(--line2,var(--line));padding:11px 10px;white-space:nowrap}
.edu-article .fz-mdt td:first-child{color:var(--fg);font-weight:600}
.edu-article .fz-mdt td:nth-child(2){white-space:normal;min-width:180px}
@media (max-width:767px){.edu-article .fz-mdt th,.edu-article .fz-mdt td{padding:10px 8px}.edu-article .fz-mdt td:nth-child(2){min-width:130px}}
/* Trainer */
.ev-drill .evb{touch-action:none;cursor:pointer}
.ev-drill .evb img{will-change:transform}
.evb i.sel:after,.evb i.bad:after,.evb i.dot:after,.evb i.cap:after,.evb i.chk:after{content:"";position:absolute;z-index:1;pointer-events:none}
.evb i.sel:after{inset:0;background:rgba(11,11,11,.22)}
.evb i.dot:after{left:36%;top:36%;width:28%;height:28%;border-radius:50%;background:rgba(11,11,11,.32)}
.evb i.cap:after{inset:4%;border-radius:50%;box-shadow:inset 0 0 0 4px rgba(11,11,11,.32)}
.evb i.chk:after{inset:0;background:radial-gradient(circle,rgba(197,16,40,.9) 0,rgba(197,16,40,.5) 40%,transparent 72%)}
.evb i.bad:after{inset:0;background:rgba(11,11,11,.5);animation:evbad .45s}
@keyframes evbad{0%,50%{transform:translateX(-3px)}25%,75%{transform:translateX(3px)}}
.ev-ghost{position:fixed;z-index:9999;pointer-events:none;transform:scale(1.08);filter:drop-shadow(0 6px 10px rgba(0,0,0,.35))}
.ev-drill.solved .evb{box-shadow:0 0 0 3px var(--red)}
.ev-drill.thinking .evm:after{content:"\2026";color:var(--muted);margin-left:4px}
.evd{display:flex;flex-direction:column;max-height:300px;overflow:auto;scrollbar-width:thin}
.evd button{border:0;background:none;text-align:left;padding:5px 0;font:500 14px var(--text);color:var(--fg2);cursor:pointer;user-select:none}
.evd button:hover{color:var(--fg)}
.evd button.on{color:var(--red);font-weight:600}
.evd button.done:after{content:" \2713";color:var(--red)}
.ev-drill .evm{min-height:60px;max-height:120px}
.evd-m{color:var(--fg);font-weight:500}
.evd-r{display:inline-block;margin-left:6px;color:var(--red)}
.evl{display:none;gap:6px}
.ev-drill.vs .evl{display:flex}
.evl button{flex:1;height:30px;border:0;border-radius:8px;background:var(--surf2);color:var(--fg2);font:600 13px var(--text);cursor:pointer}
.evl button.on{background:var(--fg);color:var(--bg)}
.ev-drill.vs [data-do=play]{display:none}
.ev-drill .evc button{font-size:12px}
@media (max-width:767px){.evd{flex-direction:row;overflow-x:auto;gap:16px;max-height:none}.evd button{white-space:nowrap}}
.ev>*{min-width:0}
/* Translations: Vegawanty is Latin-only, so headings take a font with the script; Arabic and Devanagari
   drop letter-spacing (it breaks joined letters); boards, move lists, controls and the site chrome stay left to right */
html[lang=ru] .edu-h1,html[lang=ru] .edu-article h2,html[lang=ru] .edu-offer h4{font-family:"Sofia Sans Condensed",sans-serif;font-weight:600;letter-spacing:.01em;word-spacing:0}
html[lang=ar] .edu{--text:"Noto Sans Arabic",-apple-system,sans-serif;--sofia:"Noto Sans Arabic",sans-serif}
html[lang=hi] .edu{--text:"Noto Sans Devanagari",-apple-system,sans-serif;--sofia:"Noto Sans Devanagari",sans-serif}
html[lang=ar] .edu-h1,html[lang=ar] .edu-article h2,html[lang=ar] .edu-offer h4{font-family:"Noto Sans Arabic",sans-serif;font-weight:700;text-transform:none;word-spacing:0;line-height:1.3}
html[lang=hi] .edu-h1,html[lang=hi] .edu-article h2,html[lang=hi] .edu-offer h4{font-family:"Noto Sans Devanagari",sans-serif;font-weight:700;word-spacing:0;line-height:1.3}
html[lang=ar] .edu *,html[lang=hi] .edu *{letter-spacing:0!important}
html[dir=rtl] header.header,html[dir=rtl] section.footer,html[dir=rtl] .evb,html[dir=rtl] .evm,html[dir=rtl] .evc,html[dir=rtl] .evl,html[dir=rtl] .bar,html[dir=rtl] .fc,html[dir=rtl] .fc-bar,html[dir=rtl] .edu-diagram svg{direction:ltr}
html[dir=rtl] .edu-facts dd{unicode-bidi:plaintext;text-align:right}
/* Language switcher in the sidebar top row */
.edu-lang{position:relative;flex:none}
.edu-lang summary{list-style:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;cursor:pointer;font-family:var(--sofia);font-weight:600;font-size:12px;letter-spacing:.08em;color:var(--fg)}
.edu-lang summary::-webkit-details-marker{display:none}
.edu-lang summary:hover{background:var(--hover)}
.edu-lang>div{position:absolute;top:calc(100% + 6px);right:0;z-index:60;min-width:150px;padding:6px;background:var(--bg);border:1px solid var(--line2);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.18)}
html[dir=rtl] .edu-lang>div{right:auto;left:0}
.edu-lang a{display:block;padding:8px 10px;color:var(--fg2);white-space:nowrap;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans Arabic","Noto Sans Devanagari",sans-serif}
.edu-lang a:hover{background:var(--hover);color:var(--fg)}
.edu-lang a.on{color:var(--fg);font-weight:600}
/* Language rows in the site mobile menu and the footer */
.edu-langs{display:flex;flex-wrap:wrap;gap:6px 18px;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans Arabic","Noto Sans Devanagari",sans-serif;font-size:14px;letter-spacing:0;text-transform:none}
.edu-langs a{color:inherit;opacity:.55;text-decoration:none}
.edu-langs a.on,.edu-langs a:hover{opacity:1}
.edu-langs-menu{padding:24px 0 0;margin:20px 0 32px;border-top:1px solid rgba(127,127,127,.25)}
.edu-langs-foot{flex-basis:100%;justify-content:center;margin:0 0 16px}

/* Figurine notation */
.fig{font-family:'Noto Sans Symbols 2',var(--text),sans-serif;font-weight:400;font-size:1.08em;line-height:1}

/* Played by: round portraits on the FERZ red */
.edu-players{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:4px}
.edu-players>a,.edu-players>span{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.edu-players img{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block}
.edu-players>a:hover span{color:var(--red)}

/* History gallery */
.edu-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:28px 0}
.edu-gallery figure{margin:0}
.edu-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:6px;filter:grayscale(1) contrast(1.08)}
.edu-gallery figcaption{margin-top:8px;font-size:14px;opacity:.7}
