body{background:white}.top{background:#af182a;color:white}.top .wrap{padding-block:5px}header{background:linear-gradient(115deg,#571021,#881829 75%,#651321);border-bottom:0}header .brand small,header .brand strong{color:white}header .brand img{background:white;border-radius:7px;mix-blend-mode:normal;padding:3px;width:58px;height:58px}header .wrap{display:flex;flex-wrap:wrap;gap:12px 26px;min-height:auto;padding-top:10px}.site-search{flex:1;position:relative}.site-search input{width:100%;border:0;border-radius:24px;padding:11px 20px;font:inherit;font-size:14px}.search-results{position:absolute;background:white;border:1px solid #ddd;top:100%;left:0;right:0;z-index:30;box-shadow:0 5px 15px #0002}.search-results:empty{display:none}.search-results a,.search-results span{display:block;padding:7px 16px;color:#421321}.search-results a:hover{background:#fff2d6}.mast-library{font-weight:bold;color:white}
@media(min-width:651px){header{border-bottom:4px solid #edba4e}header .wrap{padding-bottom:0}header #nav{flex:0 0 100%;width:100%;justify-content:space-between;align-items:center;position:relative;z-index:6;background:#a71930;box-shadow:none;padding:7px 0;margin:0}header #nav>a,header #nav summary{color:white}header #nav .nav-consult{background:#ffdc87;color:#521125}header #nav .nav-dropdown{background:white;color:#391921}}
.tournament-slider{position:relative;background:#40121c}.slide{position:relative;display:block;height:clamp(325px,36vw,540px);overflow:hidden}.slide[hidden]{display:none}.slide img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}.slide:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#210a17ee,transparent 54%)}.slide>div{position:absolute;z-index:1;bottom:8%;left:8%;color:white}.slide small,.slide span{font-weight:700}.slide small{color:#ffdc8d;text-transform:uppercase;letter-spacing:.14em}.slide h1,.slide h2{font:800 clamp(34px,4.6vw,76px)/1.14 'TNV Sans',sans-serif;letter-spacing:-.036em;margin:5px 0;color:white}.tournament-slider button{position:absolute;z-index:2;top:44%;border:1px solid #fffc;border-radius:50%;height:42px;width:42px;background:#290e18a8;color:white;font:30px/1 sans-serif}.tournament-slider button:first-of-type{left:2%}.tournament-slider button:last-of-type{right:2%}
.front-news{max-width:1300px;padding:0 18px 40px;margin:auto}.news-title{text-align:center;position:relative;border-top:4px solid #efbc49;margin:0 0 15px;padding:10px 0}.news-title h2{font:800 23px 'TNV Sans',sans-serif;text-transform:uppercase;margin:0;color:#541425}.news-title>a{position:absolute;right:0;top:14px;font-size:13px;font-weight:700;color:#83182c}.news-row{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.poster{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;aspect-ratio:2.7;background:#6a1826;color:white;text-align:center}.poster:after{content:"♞";font-size:clamp(100px,13vw,200px);color:#ffffff24;position:absolute;right:0;bottom:-45%;z-index:-1}.poster span,.poster i{font-size:11px;letter-spacing:.15em;font-style:normal;font-weight:bold}.poster strong{font-size:clamp(22px,2.5vw,42px);line-height:1.25;margin:4px 0}.clock{background:linear-gradient(120deg,#6c122b,#a62d35)}.clock i{background:#ffdb91;color:#371321;padding:2px 7px}.silver{background:linear-gradient(130deg,#173f61,#355c80)}.biel{background:linear-gradient(115deg,#285149,#12332d)}.news-row h3{margin:9px 0;font-size:18px;line-height:1.4}.news-row a:hover h3{text-decoration:underline}
@media(max-width:650px){header .wrap{padding:8px 0;gap:8px}.mast-library{display:none}.site-search{order:3;flex-basis:100%}header #nav{order:4;background:white}.menu{background:white}.slide{height:290px}.slide>div{left:7%;bottom:6%}.tournament-slider button{height:34px;width:34px}.front-news{padding-inline:12px}.news-title h2{font-size:18px}.news-row{grid-template-columns:1fr;gap:12px}.news-row>a{display:grid;grid-template-columns:38% 1fr;gap:12px;align-items:center}.poster{aspect-ratio:1.6}.poster strong{font-size:15px}.poster span,.poster i{font-size:8px}.news-row h3{font-size:15px}.news-title>a{font-size:11px;top:12px}}
.club-drawers{border-block:1px solid #d6d4ce;box-shadow:0 2px 5px #50432422}.club-drawers details+details{border-top:1px solid #dedbd5}.club-drawers summary{display:flex;align-items:center;gap:16px;min-height:54px;padding:12px max(16px,2vw);list-style:none;cursor:pointer;text-transform:uppercase;font-size:clamp(15px,1.4vw,21px);color:#293441}.club-drawers summary::-webkit-details-marker{display:none}.club-drawers summary:before{content:"";width:11px;height:11px;border:solid #74818a;border-width:0 3px 3px 0;transform:translateY(-3px) rotate(45deg);flex:none}.club-drawers details[open] summary:before{transform:rotate(225deg)}.club-drawers details[open]{background:#fffaf1}.club-drawers details>div{margin:0 max(50px,4.4vw);max-width:78ch;padding:0 0 20px}.club-drawers p{margin:0 0 7px}.club-drawers details a,.live-board>a,.entry-links>a{color:#75172e;text-decoration:underline;text-underline-offset:3px}.club-columns-home{max-width:1440px;margin:auto;padding:30px 18px 38px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start}.club-columns-home h2{font:800 clamp(18px,1.8vw,26px)/1.25 'TNV Sans',sans-serif;text-transform:uppercase;text-align:center;margin:0 0 22px;color:#47212a}.class-poster{display:block;overflow:hidden;background:#ffda71}.poster-top{background:#761630;color:white;padding:15px 18px}.poster-top span{font-size:12px}.poster-top strong{display:block;font:800 clamp(22px,2.7vw,39px)/1.12 'TNV Sans',sans-serif;margin-top:4px;color:#ffda71}.class-poster img{display:block;width:100%;aspect-ratio:2.1;object-fit:cover}.class-poster b{display:block;padding:8px 18px}.live-board iframe{display:block;width:100%;aspect-ratio:1/1.09;border:0}.entry-links>div{display:grid;grid-template-columns:1fr 1fr;gap:14px}.entry-links img{width:100%;aspect-ratio:1.45;object-fit:cover}.entry-links strong{display:block;line-height:1.4;margin:5px 0 16px}.live-board>a,.entry-links>a{font-size:14px}@media(max-width:720px){.club-columns-home{grid-template-columns:1fr;gap:30px}.club-drawers summary{gap:12px}.club-drawers details>div{margin-inline:40px 16px}.club-columns-home h2{margin-bottom:12px}.live-board iframe{max-width:480px;margin:auto}}

header .mast-library{
 display:inline-flex;align-items:center;justify-content:center;
 padding:10px 20px;border:1px solid #ffe3a1;border-radius:8px;
 background:#ffda83;color:#531326;font-size:18px;font-weight:800;
 box-shadow:0 3px 12px #29061333;white-space:nowrap;
}
header .mast-library:hover{background:#ffe9b5;box-shadow:0 5px 18px #ffce6155}
@keyframes library-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:no-preference){header .mast-library{animation:library-float 3s ease-in-out infinite}}
.news-title>a,.poster span,.poster i{font-size:14px}
.site-search input{font-size:16px}
@media(max-width:650px){
 header .mast-library{display:inline-flex;margin-left:auto;font-size:16px;padding:8px 12px}
 .poster span,.poster i{font-size:12px;letter-spacing:.04em}
 .news-title>a{font-size:14px}
}

.news-row .world-news-card>img{width:100%;aspect-ratio:2.7;object-fit:cover}
@media(max-width:650px){.news-row .world-news-card>img{aspect-ratio:1.6}}

/* Homepage news follows the club's editorial layout. */
.news-editorial{max-width:1300px;margin:0 auto;padding:30px 24px 42px;border-top:4px solid #d9b573;background:#fff}
.editorial-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.95fr);gap:30px}
.national-column{padding-right:26px;border-right:1px solid #e1dcd5}
.editorial-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #e2ddd7;margin-bottom:20px}
.editorial-heading h2{position:relative;margin:0;padding:0 0 12px;font:700 clamp(23px,2.1vw,29px)/1.25 'TNV Serif',Georgia,serif;color:#431521}
.editorial-heading h2:after{content:"";position:absolute;height:2px;background:#8b2438;bottom:-1px;left:0;right:0}
.editorial-more{font-size:14px;color:#786652;white-space:nowrap}
.news-editorial h3{font:700 23px/1.35 'TNV Serif',Georgia,serif;color:#2b2325;margin:0 0 12px}
.news-editorial p{font-size:16px;line-height:1.65;color:#6c6260;margin:0}
.news-editorial a:hover h3,.editorial-heading a:hover,.editorial-more:hover{color:#a21c36}
.news-photo{display:block;overflow:hidden}
.news-photo img{display:block;width:100%;height:auto;object-fit:cover;transition:transform .3s}
.news-photo:hover img{transform:scale(1.025)}
.national-lead .news-photo{margin-bottom:14px}
.national-lead .news-photo img{aspect-ratio:1.65}
.national-brief{border-top:1px solid #e2ddd7;margin-top:22px;padding-top:20px}
.national-brief h3{font-size:21px;margin-bottom:9px}
.world-features{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}
.world-lead .news-photo{margin-bottom:18px}
.world-lead img{aspect-ratio:1.5;object-position:center 42%}
.world-lead h3{font-size:clamp(24px,2.3vw,31px);line-height:1.25}
.world-secondary{padding-left:22px;border-left:1px solid #e2ddd7}
.world-secondary .news-photo{margin-bottom:15px}
.world-secondary img{aspect-ratio:1.55}
.world-secondary h3{font-size:23px}
.editorial-elo{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f6f1e8;border-block:1px solid #e5d9c6;padding:17px 20px;margin:26px 0}
.editorial-elo>span:first-child>span{display:block;font-size:14px;color:#76634f;margin-top:4px}
.editorial-elo strong{font:700 22px 'TNV Serif',Georgia,serif;color:#541425}
.elo-categories{font-size:14px;color:#665954;line-height:1.6}
.elo-arrow{font-size:27px;color:#946a33}
.editorial-elo:hover{background:#f0e3cb}
.editorial-club .editorial-heading{margin-bottom:16px}
.club-story{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}
.club-story img{width:100%;height:auto;aspect-ratio:1.45;object-fit:cover}
.club-story h3{font-size:23px;margin-bottom:8px}
@media(max-width:1000px){
 .editorial-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:22px}
 .national-column{padding-right:20px}
 .world-features{grid-template-columns:1fr}
 .world-secondary{padding:18px 0 0;border-left:0;border-top:1px solid #e2ddd7}
 .world-secondary .news-photo{float:right;width:35%;margin:0 0 8px 16px}
 .world-secondary:after{content:"";display:block;clear:both}
 .club-story{grid-template-columns:125px 1fr;gap:14px}
}
@media(max-width:650px){
 .news-editorial{padding:24px 18px 30px}
 .editorial-layout{grid-template-columns:1fr;gap:30px}
 .national-column{padding-right:0;border-right:0}
 .national-lead .news-photo{float:left;width:40%;margin:0 16px 8px 0}
 .national-lead:after{content:"";display:block;clear:both}
 .national-lead .news-photo img{aspect-ratio:1.3}
 .news-editorial h3{font-size:23px}
 .national-brief h3{font-size:21px}
 .national-brief{margin-top:18px;padding-top:16px}
 .world-lead h3{font-size:27px}
 .world-secondary h3{font-size:22px}
 .editorial-elo{padding:16px 14px;gap:10px}
 .editorial-elo strong{font-size:21px}
 .elo-categories{display:none}
 .club-story{grid-template-columns:110px 1fr}
 .club-story h3{font-size:21px}
 .club-story p{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.news-photo img{transition:none}.news-photo:hover img{transform:none}}

.club-drawers summary{transition:background-color .18s,color .18s}
.club-drawers summary:hover,.club-drawers details[open]>summary{background:#fbf1df;color:#64182c}
@media(prefers-reduced-motion:no-preference){
 .club-drawers details[open]>div{animation:club-panel-in .2s ease-out}
 @keyframes club-panel-in{from{opacity:.4;translate:0 -4px}to{opacity:1;translate:0 0}}
}

.tournament-slider .hero-admissions{
 position:absolute;z-index:3;right:5%;top:24px;
 display:flex;align-items:center;justify-content:center;
 width:116px;height:116px;border-radius:50%;
 background:radial-gradient(circle at 32% 25%,#ffeaa8,#f6c45d 70%);
 border:3px solid #fff1c4;outline:1px solid #a86d24;
 color:#72162c;box-shadow:0 7px 24px #35121c55;
 text-align:center;text-decoration:none;
}
.hero-admissions span{font:800 23px/1.18 'TNV Sans',Arial,sans-serif;letter-spacing:.5px}
.tournament-slider .hero-admissions:hover{background:#fff0b5;color:#a11a37;box-shadow:0 9px 28px #35121c66}
@media(prefers-reduced-motion:no-preference){
 .hero-admissions{animation:admissions-beacon 2.5s ease-in-out infinite}
 @keyframes admissions-beacon{0%,100%{transform:scale(1);box-shadow:0 7px 24px #35121c55,0 0 0 0 #ffe3a177}50%{transform:scale(1.035);box-shadow:0 7px 24px #35121c55,0 0 0 10px #ffe3a100}}
 .hero-admissions:hover{animation-play-state:paused}
}
@media(max-width:650px){
 .tournament-slider .hero-admissions{width:82px;height:82px;right:18px;top:18px;border-width:2px}
 .hero-admissions span{font-size:17px}
}

/* Partners keep their native shapes without decorative frames. */
.school-partners{padding:8px 0 22px}.school-partners h3{font-size:25px;color:#641b30;margin:0 0 12px}.school-partners-grid{display:flex;flex-wrap:wrap;gap:24px;margin:25px 0 12px}.school-partner{flex:0 1 160px;min-width:0;margin:0;text-align:center}.school-logo{height:125px;display:flex;align-items:center;justify-content:center;background:transparent}.school-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;max-width:100%;margin:0;box-shadow:none}.school-logo-clean{clip-path:inset(6% 0)}.school-partner figcaption{font-size:17px;font-weight:600;line-height:1.5;color:#641b30;margin-top:14px;border:0;padding:0}.school-partner:has(img[alt="Logo CodeMath"]){flex-basis:260px}.partners-strip{background:#fff;border-top:1px solid #e8dbc6;padding:30px 0 35px}.partners-strip h2{font:600 23px/1.3 'TNV Sans',sans-serif;color:#641b30;margin:0 0 26px}.partners-strip-logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 48px}.partners-strip-logos figure{margin:0;width:120px;height:120px;display:flex;align-items:center;justify-content:center}.partners-strip-logos img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:0}.partners-strip-logos .partner-wide{width:260px}.partners-strip-logos figure.school-logo-clean{clip-path:none}.partners-strip-logos .school-logo-clean img{clip-path:inset(6% 0)}@media(max-width:650px){.school-partners-grid{gap:24px 16px}.school-partner{flex-basis:calc(50% - 8px)}.school-logo{height:110px}.partners-strip-logos{gap:24px 28px}.partners-strip-logos figure{width:95px;height:95px}.partners-strip-logos .partner-wide{width:220px}.partners-strip{padding:26px 0}.partners-strip h2{font-size:21px}}

/* Match the masthead red and use transparent partner assets. */
.partners-strip{background:linear-gradient(115deg,#571021,#881829 75%,#651321);border-top:1px solid #b98c47}.partners-strip h2{color:#ffdc8d}.school-logo-clean,.partners-strip-logos .school-logo-clean img{clip-path:none}

.partners-strip-logos figure[title="Chess Zone"]{width:190px}.partners-strip-logos figure[title="Trường Bạch Dương"]{width:150px}@media(max-width:650px){.partners-strip-logos figure[title="Chess Zone"]{width:150px}.partners-strip-logos figure[title="Trường Bạch Dương"]{width:120px}}

.cantho-thumb{display:block;width:100%;aspect-ratio:1.9;object-fit:cover;margin:0 0 12px}

/* Compact partner marks in the footer, retaining original proportions. */
.partners-strip-logos{gap:24px 36px}.partners-strip-logos figure{width:100px;height:100px}.partners-strip-logos .partner-wide{width:215px}.partners-strip-logos figure[title="Chess Zone"]{width:158px}.partners-strip-logos figure[title="Trường Bạch Dương"]{width:125px}
@media(max-width:650px){.partners-strip-logos{gap:20px 22px}.partners-strip-logos figure{width:80px;height:80px}.partners-strip-logos .partner-wide{width:180px}.partners-strip-logos figure[title="Chess Zone"]{width:125px}.partners-strip-logos figure[title="Trường Bạch Dương"]{width:100px}}

.olympiad-brief{border-top:1px solid #e5ded5;margin-top:22px;padding:20px 0}.olympiad-brief>a{display:grid;grid-template-columns:160px 1fr;gap:20px;color:inherit}.olympiad-brief img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover}.olympiad-brief h3{font:600 23px/1.35 'TNV Serif',serif;margin:0 0 8px}.olympiad-brief p{margin:0;font-size:15px;color:#746a68}.olympiad-brief a:hover h3{color:#881829}@media(max-width:650px){.olympiad-brief>a{grid-template-columns:110px 1fr;gap:14px}.olympiad-brief h3{font-size:20px}.olympiad-brief p{font-size:14px}}

.editorial-layout>.editorial-club{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 30px;align-items:start}
.editorial-layout>.editorial-club>.editorial-heading{grid-column:1/-1;margin:0}
.editorial-layout>.editorial-club>.tnv-pinned{margin-top:0}
.club-stories{display:grid;gap:16px;align-content:start;min-width:0}
@media(max-width:650px){.editorial-layout>.editorial-club{grid-template-columns:1fr}}

@media (min-width: 651px) {
  .site-search input,
  .site-search .search-results {
    width: 66.666667%;
    box-sizing: border-box;
    margin-inline: auto;
  }
  .site-search input { display: block; }
  .site-search .search-results { inset-inline: 0; }
}

/* Thông tin CLB trên trang chủ */
.club-drawers {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
  border: 0;
  box-shadow: none;
}
.club-drawers > details {
  min-width: 0;
  border: 1px solid #ded5c8;
  border-radius: 8px;
  background: #fffcf7;
  overflow: hidden;
}
.club-drawers > details > summary {
  justify-content: space-between;
  min-height: 60px;
  padding: 14px 22px;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  color: #611b32;
  text-transform: none;
}
.club-drawers summary::before {
  order: 1;
  width: 8px;
  height: 8px;
  border-width: 0 2px 2px 0;
  border-color: #94713e;
}
.club-drawers summary:focus-visible { outline: 2px solid #75172e; outline-offset: -4px; }
.club-drawers > details > div { margin: 0 22px; max-width: none; padding: 14px 0 18px; }
@media (max-width: 700px) {
  .club-drawers { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-block: 16px; }
  .club-drawers > details > summary { min-height: 52px; padding: 12px 16px; }
  .club-drawers > details > div { margin-inline: 16px; }
}
