/* COMPANY BRAND ADDITION CSS: scoped brand row + standalone controller. */
.tldigit-company-brand-row{background:#f7f9fc;border-bottom:1px solid #e2e7ee;padding:8px 0}
.tldigit-company-brand-row .wrap{display:flex;align-items:center;min-width:0}
.tldigit-company-brand{--tldigit-hold-progress:0%;display:inline-flex;align-items:center;gap:10px;max-width:100%;min-width:0;position:relative;border-radius:6px;text-decoration:none;color:#1a3557;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.tldigit-company-brand::after{content:"";position:absolute;left:0;bottom:-3px;height:2px;width:var(--tldigit-hold-progress);max-width:100%;background:#0d7377;pointer-events:none}
.tldigit-company-brand>img{display:block;width:36px;height:36px;object-fit:contain;flex:none;pointer-events:none}
.tldigit-company-brand-names{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.tldigit-company-brand-names strong{font-size:14px;font-weight:800;letter-spacing:.07em;overflow-wrap:anywhere}
.tldigit-company-brand-names small{font-size:10px;font-weight:700;letter-spacing:.16em;color:#0d7377}
.tldigit-company-brand:focus-visible,.tldigit-brand-controller button:focus-visible{outline:3px solid #c8860a;outline-offset:3px}
/* The existing EduAI SVG, links, and language buttons are unchanged. Allow their
   existing row to wrap instead of overflowing a 320px/390px viewport. */
@media(max-width:620px){nav .wrap{height:auto;min-height:62px;flex-wrap:wrap;gap:8px 10px;padding-top:10px;padding-bottom:10px}nav .brand{min-width:0;max-width:100%;flex-shrink:1}nav .brand .logo{max-width:100%}nav .about-btn{margin-left:auto}nav .lang{margin-left:auto}}
.tldigit-brand-controller{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #62666c;border-radius:16px;background:#1b1b1d;color:#f4f4f5;padding:16px;box-shadow:0 20px 70px #0008;font:14px/1.5 system-ui,sans-serif}
.tldigit-brand-controller::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
.tldigit-controller-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tldigit-controller-heading h2{margin:0;color:#f4f4f5;font-size:18px}
.tldigit-brand-controller button{box-sizing:border-box;min-width:44px;min-height:44px;border:1px solid #8f9299;border-radius:8px;background:#333438;color:#fff;font:700 16px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.tldigit-brand-controller button:active{background:#65666b}
.tldigit-controller-image{display:block;width:100%;height:auto;border-radius:10px}
.tldigit-brand-controller p{font-size:13px;color:#d5d5d8;margin:12px 0}
.tldigit-controller-keys{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tldigit-controller-keys>button{border-radius:50%;background:#a6222f;flex:none}
.tldigit-controller-dpad{display:grid;grid-template-columns:repeat(3,44px);gap:3px}
.tldigit-controller-dpad [data-brand-key="up"]{grid-column:2}
.tldigit-controller-dpad [data-brand-key="left"]{grid-column:1;grid-row:2}
.tldigit-controller-dpad [data-brand-key="down"]{grid-column:2;grid-row:2}
.tldigit-controller-dpad [data-brand-key="right"]{grid-column:3;grid-row:2}
.tldigit-controller-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}
.tldigit-controller-footer button{padding:8px 14px}
/* END COMPANY BRAND ADDITION CSS */
