/* Brand v2 (5.10.0): HD crest + full school name, navy & gold glass */
body.rd5-brand2 .site-header .b2-brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0;flex:0 1 auto}
body.rd5-brand2 .b2-crest{position:relative;flex:0 0 auto;display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:linear-gradient(150deg,rgba(255,255,255,.75),rgba(255,248,234,.35));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(200,154,72,.45),0 10px 24px -12px rgba(6,29,59,.45);-webkit-backdrop-filter:blur(10px) saturate(1.3);backdrop-filter:blur(10px) saturate(1.3);transition:width .35s var(--ease-cine,ease),height .35s var(--ease-cine,ease)}
body.rd5-brand2 .b2-crest img.b2-crest-img{width:52px!important;height:52px!important;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(6,29,59,.25));transition:width .35s var(--ease-cine,ease),height .35s var(--ease-cine,ease)}
body.rd5-brand2 .b2-names{display:flex;flex-direction:column;gap:3px;min-width:0;padding-inline-start:12px;border-inline-start:1.5px solid rgba(200,154,72,.55);line-height:1.25}
body.rd5-brand2 .b2-n{display:block;white-space:nowrap}
body.rd5-brand2 .b2-names .b2-n:first-child{font-weight:800;color:#0b2d57;font-size:1rem;letter-spacing:.005em}
body.rd5-brand2 .b2-names .b2-n:last-child{font-weight:600;color:#9a7330;font-size:.8rem}
body.rd5-brand2 .b2-n-en{font-family:inherit}
body.rd5-brand2 .b2-names .b2-n-en:last-child{letter-spacing:.02em}
body.rd5-brand2 .site-header .b2-brand:hover .b2-crest{box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px rgba(200,154,72,.8),0 14px 28px -12px rgba(6,29,59,.5)}
body.rd5-brand2 .site-header.is-scrolled .b2-crest{width:50px;height:50px;border-radius:15px}
body.rd5-brand2 .site-header.is-scrolled .b2-crest img.b2-crest-img{width:42px!important;height:42px!important}
@media (max-width:1280px){body.rd5-brand2 .b2-names .b2-n:first-child{font-size:.9rem}body.rd5-brand2 .b2-names .b2-n:last-child{font-size:.72rem}}
@media (max-width:900px){
  body.rd5-brand2 .site-header .b2-brand{gap:9px}
  body.rd5-brand2 .b2-crest{width:46px;height:46px;border-radius:14px}
  body.rd5-brand2 .b2-crest img.b2-crest-img{width:39px!important;height:39px!important}
  body.rd5-brand2 .site-header.is-scrolled .b2-crest{width:42px;height:42px}
  body.rd5-brand2 .site-header.is-scrolled .b2-crest img.b2-crest-img{width:35px!important;height:35px!important}
  body.rd5-brand2 .b2-names{padding-inline-start:9px;gap:2px}
  body.rd5-brand2 .b2-n{white-space:normal;text-wrap:balance}
  body.rd5-brand2 .b2-names .b2-n:first-child{font-size:.78rem;line-height:1.3}
  body.rd5-brand2 .b2-names .b2-n:last-child{font-size:.64rem;line-height:1.3}
}
@media (max-width:420px){body.rd5-brand2 .site-header .b2-brand{max-width:calc(100vw - 200px)}}
/* drawer */
body.rd5-brand2 .b2-dr-brand{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:14px 16px;border-radius:20px;background:linear-gradient(150deg,rgba(255,255,255,.14),rgba(255,255,255,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 1px rgba(226,191,122,.35);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
body.rd5-brand2 .b2-dr-brand .b2-crest{width:64px;height:64px;border-radius:18px;background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(255,248,234,.8))}
body.rd5-brand2 .b2-dr-brand .b2-crest img.b2-crest-img{width:54px!important;height:54px!important}
body.rd5-brand2 .b2-dr-brand .b2-names{border-color:rgba(226,191,122,.6)}
body.rd5-brand2 .b2-dr-brand .b2-n{white-space:normal}
body.rd5-brand2 .b2-dr-brand .b2-names .b2-n:first-child{color:#fff;font-size:1rem}
body.rd5-brand2 .b2-dr-brand .b2-names .b2-n:last-child{color:#e2bf7a;font-size:.8rem}
/* footer */
body.rd5-brand2 .b2-foot-brand{display:flex;align-items:center;gap:16px;margin:0 0 22px}
body.rd5-brand2 .b2-foot-brand .b2-crest{width:80px;height:80px;border-radius:22px;background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(255,248,234,.82));box-shadow:0 0 0 1px rgba(226,191,122,.55),0 18px 36px -16px rgba(0,0,0,.55)}
body.rd5-brand2 .b2-foot-brand .b2-crest img.b2-crest-img{width:68px!important;height:68px!important}
body.rd5-brand2 .b2-foot-brand .b2-names{border-color:rgba(226,191,122,.55)}
body.rd5-brand2 .b2-foot-brand .b2-n{white-space:normal}
body.rd5-brand2 .b2-foot-brand .b2-names .b2-n:first-child{color:#fff;font-size:1.08rem}
body.rd5-brand2 .b2-foot-brand .b2-names .b2-n:last-child{color:#e2bf7a;font-size:.86rem}
body.rd5-brand2 .site-footer .footer-title{display:none}
/* layout fit (5.10.0) */
@media (min-width:1101px){body.rd5-brand2 .site-header .nav-row.site-shell{width:min(1380px,calc(100% - 40px));max-width:none}}
body.rd5-brand2 .site-header .nav-row{gap:14px}
body.rd5-brand2 .site-header :is(.n6-toggle,.nav-actions){flex-shrink:0}
body.rd5-brand2 .b2-names .b2-n:first-child{font-size:.92rem}
body.rd5-brand2 .b2-names .b2-n:last-child{font-size:.74rem}
@media (max-width:1439px) and (min-width:901px){
  body.rd5-brand2 .b2-crest{width:54px;height:54px;border-radius:16px}
  body.rd5-brand2 .b2-crest img.b2-crest-img{width:46px!important;height:46px!important}
  body.rd5-brand2 .site-header .b2-names{max-width:200px}
  body.rd5-brand2 .site-header .b2-n{white-space:normal;text-wrap:balance}
  body.rd5-brand2 .b2-names .b2-n:first-child{font-size:.86rem;line-height:1.25}
  body.rd5-brand2 .b2-names .b2-n:last-child{font-size:.7rem}
}
@media (max-width:900px){
  body.rd5-brand2 .b2-names .b2-n:first-child{font-size:.76rem}
  body.rd5-brand2 .b2-names .b2-n:last-child{font-size:.6rem;letter-spacing:0}
}
@media (max-width:420px){body.rd5-brand2 .site-header .b2-brand{max-width:calc(100vw - 205px);gap:8px} body.rd5-brand2 .site-header .nav-row{gap:8px} body.rd5-brand2 .b2-names{padding-inline-start:8px} body.rd5-brand2 .b2-crest{width:42px;height:42px;border-radius:13px} body.rd5-brand2 .b2-crest img.b2-crest-img{width:36px!important;height:36px!important}}
html[dir="ltr"] body.rd5-brand2 .b2-n-ar{text-align:left}
html[dir="rtl"] body.rd5-brand2 .b2-n-en{text-align:right}
html:not([dir="rtl"]) body.rd5-brand2 .b2-n-ar{text-align:left}
