/* Changes for the AIMAITES copy only. Keep the reference layout. */
.brand-logo{position:relative!important;display:block!important;width:190px!important;height:79px!important;overflow:hidden;flex-shrink:0}
.brand-logo img{position:absolute!important;max-width:none!important;width:206.7px!important;height:auto!important;left:-13px!important;top:-32.7px!important;object-fit:initial!important}
.hero-mini-actions>a,.ait-login-link,.nav-cta,.ait-preapp-cta-row>a{display:none!important}
@media(max-width:700px){.brand-logo{width:150px!important;height:62px!important}.brand-logo img{width:163.2px!important;left:-10.3px!important;top:-25.7px!important}}
/* Lighter white edge on both the animated and settled AIMAITES wordmark. */
.ait-panel-brand .ait-word-ai,.ait-panel-brand .ait-word-rest,.ait-preapp-hero .ait-word-ai,.ait-preapp-hero .ait-word-rest{-webkit-text-stroke:2.5px #fff!important;paint-order:stroke fill!important;text-shadow:0 2px 6px rgba(10,27,45,.18)!important}
@media(max-width:760px){.ait-panel-brand .ait-word-ai,.ait-panel-brand .ait-word-rest,.ait-preapp-hero .ait-word-ai,.ait-preapp-hero .ait-word-rest{-webkit-text-stroke:2px #fff!important}}
.aimaites-learning-hub{text-decoration:none}

/* Portfolio follows the existing translucent navigation and orange selection. */
.aimaites-portfolio{margin:0;color:#fff;text-align:left;min-width:0}
.aimaites-portfolio summary{position:relative;display:block;list-style:none;cursor:pointer;font-family:inherit;font-weight:800;line-height:1.45;border-radius:12px}
.aimaites-portfolio summary::-webkit-details-marker{display:none}
.aimaites-portfolio summary::after{content:"";position:absolute;right:18px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);transition:transform .18s}
.aimaites-portfolio details[open]>summary::after,.aimaites-portfolio[open]>summary::after{transform:translateY(-30%) rotate(225deg)}
.aimaites-portfolio>summary{min-height:58px;box-sizing:border-box;padding:18px 40px 18px 18px;font-size:15px}
.aimaites-portfolio summary:hover,.aimaites-project-list button:hover{background:rgba(255,255,255,.12)}
.aimaites-portfolio-menu{margin:0 10px 10px;padding-left:8px;border-left:2px solid rgba(255,255,255,.28)}
.aimaites-portfolio-menu summary{padding:12px 30px 12px 10px;font-size:13px}
.aimaites-portfolio-menu summary::after{right:12px;width:6px;height:6px}
.aimaites-project-list{display:grid;gap:4px;padding:4px 0 4px 4px}
.aimaites-project-list button{width:100%;padding:12px 10px;border:0;border-radius:12px;background:transparent;color:#fff;text-align:left;font-family:inherit;font-size:13px;font-weight:800;line-height:1.5;cursor:pointer}
.aimaites-project-list button[aria-pressed="true"]{background:#f58424;box-shadow:0 5px 16px rgba(20,32,51,.1)}
.aimaites-portfolio summary:focus-visible,.aimaites-project-list button:focus-visible{outline:3px solid #f58424;outline-offset:2px}
.ait-feature-card.has-portfolio-project>:not(.aimaites-project-panel){display:none!important}
.aimaites-project-panel{box-sizing:border-box;width:min(720px,100%);padding:28px;color:#fff;text-align:center}
.aimaites-project-panel[hidden]{display:none!important}
.aimaites-project-panel small{color:#fff;font-size:13px;font-weight:800;line-height:1.5}
.aimaites-project-panel h2{color:#fff!important;font-family:inherit;font-weight:900;font-size:clamp(28px,4vw,54px);line-height:1.1;letter-spacing:-.035em;margin:20px 0}
.aimaites-project-panel p{color:#fff;font-size:18px;line-height:1.6;max-width:560px;margin:0 auto 24px}
.aimaites-project-panel a{display:inline-block;padding:14px 22px;border-radius:12px;background:#f58424;color:#fff;font-weight:800;text-decoration:none;box-shadow:0 5px 16px rgba(20,32,51,.1)}
.aimaites-project-panel a:hover{background:#df7017}
@media(max-width:760px){.ait-feature-tabs{overflow:visible!important}.aimaites-portfolio{position:relative;flex:1;min-width:0}.aimaites-portfolio>summary{min-height:44px;padding:12px 23px 12px 6px;text-align:center;font-size:13px}.aimaites-portfolio>summary::after{right:9px}.aimaites-portfolio-menu{position:absolute;z-index:30;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(290px,85vw);margin:6px 0 0;padding:8px;background:#35658d;border:1px solid rgba(255,255,255,.46);border-radius:18px;box-shadow:0 12px 30px rgba(10,27,45,.25)}.aimaites-project-panel{padding:16px}.aimaites-project-panel p{font-size:16px}}
.aimaites-question-bank-link{text-decoration:none}
.aimaites-org-section{width:min(1160px,100%);box-sizing:border-box;margin:0 auto;padding:56px 24px 64px}
.aimaites-org-section[hidden]{display:none!important}
.aimaites-org-section>h2{font-size:clamp(30px,4vw,48px);line-height:1.12;color:#142033;margin:12px 0 22px;letter-spacing:-.03em}
.aimaites-org-section>p{max-width:850px;line-height:1.7}
.aimaites-org-section .aimaites-mission{font-size:clamp(20px,2.4vw,28px);font-weight:700;line-height:1.5;color:#24547b;max-width:960px}
.aimaites-org-grid,.aimaites-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:32px 0}
.aimaites-org-section .card{padding:26px;border:1px solid #dce5eb;border-radius:22px;background:#fff;box-shadow:0 8px 24px #14203308}
.aimaites-org-section .card h3{font-size:20px;color:#24547b;line-height:1.3;margin:0 0 12px}
.aimaites-org-section .card p{color:#52657a;line-height:1.65;margin:0 0 16px}
.aimaites-org-section a{color:#24547b;font-weight:800;text-underline-offset:4px}
.aimaites-principles{grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;counter-reset:principle}
.aimaites-principles li{counter-increment:principle}
.aimaites-principles li::before{content:counter(principle,decimal-leading-zero);display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff0e3;color:#b84b00;font-size:18px;font-weight:900;margin-bottom:18px}
.aimaites-org-note{margin-top:30px}.ait-content-tab:focus-visible{outline:3px solid #24547b;outline-offset:2px}
@media(max-width:760px){.aimaites-org-grid,.aimaites-principles{grid-template-columns:1fr}.aimaites-org-section{padding:36px 18px}.aimaites-org-section .card{padding:22px}}
.aimaites-org-section .aimaites-product-card{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:32px;padding:36px;background:linear-gradient(135deg,#fff 55%,#fff0e3)}
.aimaites-product-logo{width:200px;height:156px;object-fit:contain;display:block;margin-bottom:12px}
.aimaites-product-lex{display:block;width:100%;max-width:330px;height:auto;justify-self:center}
.aimaites-product-copy{max-width:520px}.aimaites-org-section .aimaites-product-copy h3{font-size:32px}.aimaites-org-section .aimaites-product-copy p{font-size:21px}
.aimaites-org-section .aimaites-client{display:inline-block;background:#fff0e3;color:#9a4300;font-size:13px;font-weight:800;padding:7px 12px;border-radius:999px;margin-bottom:18px}
@media(max-width:640px){.aimaites-org-section .aimaites-product-card{grid-template-columns:1fr;padding:24px}.aimaites-product-lex{max-width:240px}}
/* Consistent calls to action within organisation and portfolio content. */
.aimaites-org-section .card a,.aimaites-org-note a{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;padding:14px 22px;border:0;border-radius:12px;background:#f58424;color:#fff!important;font-family:inherit;font-size:15px;font-weight:800;line-height:1.4;text-align:center;text-decoration:none;box-shadow:0 5px 16px rgba(20,32,51,.1);transition:background .18s,box-shadow .18s}
.aimaites-org-section .card a:hover,.aimaites-org-note a:hover{background:#df7017;box-shadow:0 7px 20px rgba(20,32,51,.16)}
.aimaites-org-section .card a:focus-visible,.aimaites-org-note a:focus-visible{outline:3px solid #24547b;outline-offset:3px}
.aimaites-org-note a{margin:8px 0 8px 8px}
.aimaites-hero-product{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;align-items:center;text-align:left}
.aimaites-hero-product-logo{width:150px;height:auto;display:block;background:#fff;border-radius:12px;padding:8px}
.aimaites-hero-product-lex{display:block;width:100%;max-width:250px;height:auto}
.aimaites-hero-product h2{font-size:clamp(28px,3.4vw,44px)}
@media(max-width:640px){.aimaites-hero-product{grid-template-columns:1fr 100px;gap:12px}.aimaites-hero-product-logo{width:100px}.aimaites-hero-product h2{font-size:26px}.aimaites-hero-product p{font-size:14px}.aimaites-hero-product a{padding:10px 12px;font-size:13px}}
.aimaites-legal-language{margin-left:auto;border:1px solid #dce5eb;border-radius:12px;background:#fff;color:#142033;font:inherit;padding:10px 14px}
html[lang^="cy"] .subject-track::before{content:"Rhowch gynnig ar y Banc Cwestiynau nawr"!important}

@media(max-width:760px){
 .ait-feature-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;width:100%!important;box-sizing:border-box}
 .ait-feature-tabs>.ait-feature-tab,.ait-feature-tabs>.aimaites-portfolio{width:auto!important;min-width:0!important;margin:0!important;position:relative!important;flex:none!important;white-space:normal!important}
 .ait-feature-tabs>.ait-feature-tab,.ait-feature-tabs>.aimaites-portfolio>summary{font-size:14px!important;line-height:1.4!important;padding:12px!important;min-height:48px!important;box-sizing:border-box;overflow-wrap:normal!important;text-align:center}
 .ait-feature-tabs>.aimaites-portfolio>summary{padding-right:25px!important}
 .ait-feature-card{margin-top:16px!important;min-height:390px!important}
 .ait-why-title{font-size:28px!important}
}
