.ba-docs .ba-doc-heading{display:grid;justify-items:center;text-align:center;margin:0 auto clamp(22px,3vw,40px)}
.ba-doc-heading h2,.ba-doc-grid h3{margin:0;text-wrap:balance}
.ba-docs .ba-doc-heading p{margin:.75rem auto 0;color:#46615c;max-width:49ch;font-size:clamp(1.06rem,2vw,1.32rem);line-height:1.4}
.ba-doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:clamp(14px,2vw,28px)}
.ba-doc{display:flex;flex-direction:column;align-items:stretch;border-radius:16px;overflow:hidden;background:#f7f9f8;border:1px solid #d7e1de;text-align:center;text-decoration:none;color:#17342e}
.ba-doc:hover,.ba-doc:focus-visible{border-color:#498774}
.ba-doc>img{width:100%;height:auto;aspect-ratio:1.58;object-fit:contain;background:#edf2ef;padding:clamp(12px,2vw,24px);box-sizing:border-box}
.ba-doc>div{padding:1.1rem}
.ba-doc h3{font-size:clamp(1.16rem,2vw,1.45rem);line-height:1.25}
.ba-doc time{display:block;font-size:.83rem;font-variant-numeric:tabular-nums;color:#526961;margin:.4rem auto 0}
.ba-doc-modal{position:fixed;inset:0;width:min(92vw,64rem);max-width:none;max-height:none;margin:auto;padding:0;overflow:visible;border:0;border-radius:18px;color:#1c352e;background:#fff}
.ba-doc-modal::backdrop{background:rgba(9,24,21,.74)}
.ba-doc-shell{max-height:88vh;max-height:88dvh;overflow:auto;overscroll-behavior:contain;border-radius:inherit;padding:clamp(14px,3vw,28px);box-sizing:border-box}
.ba-doc-shell header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:0;background:white;z-index:1;padding:.3rem 0}
.ba-doc-shell header h3{font-size:clamp(1.3rem,2.5vw,1.9rem);margin:0}
.ba-doc-shell button{appearance:none;color:#204e40;background:#f0f5f2;border:1px solid #cedbd4;border-radius:10px;padding:.55rem .9rem;font:inherit;cursor:pointer;min-height:44px}
.ba-doc-shell button[data-close]{font-size:1.65rem;line-height:1;width:44px;padding:0}
.ba-doc-tools{display:flex;justify-content:flex-end;margin:.45rem 0}
.ba-doc-paper{width:100%;max-height:52vh;max-height:52dvh;overflow:auto;background:#edf2ef;border:1px solid #c7d5ce;border-radius:8px;box-sizing:border-box;overscroll-behavior:contain}
.ba-doc-paper img{width:100%;height:auto;max-width:none;display:block}
.ba-doc-paper.is-expanded img{width:max(145%,1200px)}
.ba-doc-notes{max-width:70ch;margin:1rem auto 0;text-align:left}
.ba-doc-notes .ba-doc-ref{color:#4c6d61;margin:0;font-size:.95rem}
.ba-doc-notes dl{margin:.8rem 0 0}.ba-doc-notes dt{font-weight:700;margin:1rem 0 .2rem}
.ba-doc-notes dd{margin:0;font-size:1.02rem;line-height:1.55}
@media(max-width:600px){.ba-doc-modal{width:95vw}.ba-doc-grid{gap:18px}}

.ba-doc-context{width:100%;height:clamp(140px,24vh,235px);display:block;object-fit:cover;border-radius:10px;margin:1rem 0}.en-modal.en-modal-sheet>img{object-fit:contain;background:#eef3ef;width:100%;height:auto;max-height:50dvh}
