/* Card colors support recognition without changing the familiar grid order. */
.communication-profile{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 14px;padding:5px 10px 5px 5px;background:#fff;border:1px solid #dce5f2;border-radius:18px;color:#365d88;text-align:left;max-width:100%;font-size:14px}.communication-profile .profile-avatar{height:40px;width:40px;border:0;flex:none}.communication-profile strong{display:block}.communication-profile small{display:block;font-size:12px;color:#536579}
.communication-layout .board .caa-card,.card-live-preview .caa-card{border:2px solid var(--caa-color,#a8b6c8);border-bottom-width:4px;background:linear-gradient(150deg,#fff,#f8fbff);padding:0;gap:0;border-radius:19px;box-shadow:0 4px 10px #2445630c;min-height:190px;justify-content:space-between}
.communication-layout .board .caa-card .picture,.card-live-preview .caa-card .picture{display:flex;align-items:center;justify-content:center;flex:1;width:100%;min-width:0;min-height:100px;height:150px;max-height:180px;padding:8px 8px 2px;background:none;border-radius:0;font-size:74px;overflow:hidden}
.communication-layout .board .caa-card .picture>svg,.card-live-preview .picture>svg{width:100%;height:100%;max-height:170px;display:block}
.communication-layout .board .caa-card .picture>img,.card-live-preview .picture>img{width:100%;height:100%;max-height:170px;object-fit:contain;border-radius:9px}
.communication-layout .board .caa-card .card-label,.card-live-preview .caa-card .card-label{align-self:stretch;display:flex;align-items:center;justify-content:center;min-height:47px;flex:none;padding:9px 5px;background:var(--caa-soft,#e9eef5);color:#203b60;font-size:22px;line-height:1.2;border-top:1px solid var(--caa-color,#a8b6c8);overflow-wrap:anywhere}
.communication-layout .board .caa-card:active{box-shadow:inset 0 0 0 3px #3566a8;background:#eaf3ff}
.caa-chip{border:2px solid var(--caa-color,#a8b6c8);background:linear-gradient(#fff 65%,var(--caa-soft,#e9eef5) 65%);padding:7px 15px 8px 8px;min-height:92px;min-width:84px;max-width:150px;border-radius:13px;color:#203b60}.caa-chip .phrase-picture{height:51px;width:67px}.caa-chip .phrase-picture>svg{height:100%;width:100%}.caa-chip .phrase-picture>img{max-width:100%;height:100%;object-fit:contain}
body[data-caa-style=border] .caa-card .card-label,body[data-caa-style=border] .caa-chip{background:#fff;border-top-color:transparent}
body[data-caa-style=off] .caa-card,body[data-caa-style=off] .caa-chip{border-color:#c9d8ed}body[data-caa-style=off] .caa-card .card-label,body[data-caa-style=off] .caa-chip{background:#eaf1fb;border-top-color:#dce5f2}
.profile-summary{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#fff,#eef5ff)}.profile-summary>div:nth-child(2){flex:1;min-width:0}.profile-summary h3{overflow-wrap:anywhere;font-size:24px}.profile-summary p{margin:4px 0 0}.profile-avatar{height:84px;width:84px;border-radius:50%;background:#eaf2ff;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;border:1px solid #cadcf2}.profile-avatar>svg,.profile-avatar>img{width:100%;height:100%;object-fit:cover}.profile-avatar>svg{padding:5px}.profile-avatar-large{width:130px;height:130px;margin:0 auto}.profile-heading{text-align:center;margin-bottom:20px}.profile-heading p:last-child{font-size:14px;color:#536579;margin-top:10px}.caa-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.caa-legend span{display:flex;align-items:center;gap:8px;font-size:14px}.caa-legend i{height:20px;width:20px;border:1px solid #35577933;border-radius:6px;flex:none}.card-live-preview{max-width:230px;width:100%;margin:0 auto;text-align:center}.card-live-preview .caa-card{height:200px}.card-live-preview p{margin:5px 0;font-size:13px}
.mini-picture>svg{width:44px;height:44px;display:block}.mini-picture{flex:none}
.high-contrast .caa-card{box-shadow:inset 0 0 0 1px #203b60}.high-contrast .caa-card .card-label{color:#142a45}.high-contrast .caa-legend{color:#142a45}
@media(min-width:850px){.communication-layout .board.four .caa-card{min-height:235px}.communication-layout .board.four .caa-card .picture{height:180px;max-height:210px}}
@media(max-width:600px){.profile-summary{gap:12px;flex-wrap:wrap}.profile-summary .profile-avatar{width:65px;height:65px}.profile-summary h3{font-size:21px}.profile-summary>.btn{width:100%}.caa-legend{gap:10px;font-size:13px}.caa-legend span{font-size:13px}.communication-profile{margin-bottom:10px}.communication-layout .board .caa-card{min-height:147px;border-radius:16px}.communication-layout .board .caa-card .picture{height:100px;min-height:90px;padding:5px 4px 0;font-size:57px}.communication-layout .board .caa-card .card-label{font-size:16px;min-height:44px;padding:7px 3px}.communication-layout .board.four .caa-card .picture{height:135px}.communication-layout .board.four .caa-card .card-label{font-size:20px}.communication-layout .board.eight .caa-card{min-height:129px;border-radius:13px}.communication-layout .board.eight .caa-card .picture{height:80px;min-height:76px;font-size:40px}.communication-layout .board.eight .caa-card .card-label{font-size:13px;min-height:44px}.communication-layout .board.eight .caa-card .picture>img{width:100%;height:100%}.caa-chip{min-width:73px;max-width:110px;font-size:14px}.caa-chip .phrase-picture{height:43px;width:55px}}
@media(max-width:350px){.communication-layout .board{gap:7px}.communication-layout .board .caa-card .card-label{font-size:14px}.communication-layout .board.eight .caa-card .card-label{font-size:12px}}
/* Match grid specificity so the adult's appearance choice also affects labels. */
body[data-caa-style=border] .communication-layout .board .caa-card .card-label,body[data-caa-style=border] .card-live-preview .caa-card .card-label{background:#fff;border-top-color:transparent}
body[data-caa-style=off] .communication-layout .board .caa-card,body[data-caa-style=off] .card-live-preview .caa-card{border-color:#c9d8ed}
body[data-caa-style=off] .communication-layout .board .caa-card .card-label,body[data-caa-style=off] .card-live-preview .caa-card .card-label{background:#eaf1fb;border-top-color:#dce5f2}

.communication-layout>.section-top>.communication-heading{position:static;width:auto;height:auto;max-width:100%;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;min-width:0}.communication-heading .communication-profile{margin:0;overflow-wrap:anywhere}.communication-heading strong{max-width:240px}

body[data-caa-style="filled"] .communication-layout .board .caa-card,
body[data-caa-style="filled"] .card-live-preview .caa-card,
body[data-caa-style="filled"] .caa-chip { background:var(--caa-soft,#e9eef5); }
body[data-caa-style="filled"] .caa-card .card-label { color:#172b43; }
.communication-layout:has(.board.adaptive) { max-width:none; container-type:inline-size; }
.communication-layout .board.adaptive { --columns:3; display:grid; grid-template-columns:repeat(var(--columns),minmax(0,1fr)); gap:8px; }
@container (max-width:18rem) { .communication-layout .board.adaptive { --columns:2; } }
@container (min-width:32rem) { .communication-layout .board.adaptive { --columns:4; } }
@container (min-width:52rem) { .communication-layout .board.adaptive { --columns:6; } }
@container (min-width:64rem) { .communication-layout .board.adaptive { --columns:8; } }
.communication-layout .board.adaptive .caa-card { min-width:0; min-height:7rem; height:auto; padding:0; }
.communication-layout .board.adaptive .picture { height:clamp(4rem,12vh,7rem); min-height:4rem; font-size:clamp(2.4rem,7vw,4rem); }
.communication-layout .board.adaptive .card-label { min-height:2.8em; font-size:1rem; white-space:normal; overflow-wrap:anywhere; }

.caa-samples { display:flex; gap:10px; margin:14px 0; }
.caa-samples .card-live-preview { max-width:130px; margin:0; }
.caa-samples .caa-card { height:120px; min-height:0; }
.caa-samples .caa-card .picture { height:60px; min-height:0; font-size:40px; }
.caa-samples .caa-card .card-label { font-size:16px; min-height:32px; }
@media (orientation:landscape) and (max-height:500px) {
  .communication-layout .board.adaptive { --columns:4; }
  .communication-layout .board.adaptive .picture { height:3rem; min-height:3rem; }
}
