/* Keep the standalone credits page styles out of the app that shares this sheet. */
body:has(>main>ul>li>a[href^="https://commons.wikimedia.org/wiki/File:"]){font:17px/1.7 system-ui,sans-serif;background:#f1f7fb;color:#24364b;margin:0;padding:30px}
body:has(>main>ul>li>a[href^="https://commons.wikimedia.org/wiki/File:"]) main{max-width:900px;margin:auto}
body:has(>main>ul>li>a[href^="https://commons.wikimedia.org/wiki/File:"]) li{margin:20px 0}
body:has(>main>ul>li>a[href^="https://commons.wikimedia.org/wiki/File:"]) a{color:#536b80}
.cl-language-card.cl-language-detail{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1480px,calc(100vw - 32px));max-width:1480px;max-height:94dvh;overflow:auto;overscroll-behavior:contain;padding:0;border:0;border-radius:24px;background:#fff;color:#14202b;box-shadow:0 24px 85px #14202b50;font-family:system-ui,sans-serif;scrollbar-color:#d9b33d #fff6d9}
.cl-language-card.cl-language-detail::backdrop{background:#16202b85;backdrop-filter:blur(5px)}
.cl-language-card.cl-language-detail [hidden]{display:none!important}
.cl-language-card.cl-language-detail .cl-language-photo{position:relative;margin:0;padding:0;background:#f5eedb;height:clamp(220px,34dvh,390px);overflow:hidden}
.cl-language-card.cl-language-detail .cl-language-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cl-language-card.cl-language-detail .cl-language-photo figcaption{position:absolute;top:22px;left:26px;max-width:calc(100% - 116px);box-sizing:border-box;padding:10px 17px;border:3px solid #14202b;border-radius:18px;background:#fff3cf;color:#111;font-size:clamp(17px,1.7vw,25px);font-weight:800;line-height:1.25;box-shadow:0 3px 0 #14202b30}
.cl-language-card.cl-language-detail>.cl-language-detail-body{position:relative;display:grid;grid-template-columns:minmax(200px,.78fr) minmax(260px,1.13fr) minmax(250px,1fr);grid-template-rows:auto repeat(3,auto);column-gap:22px;row-gap:18px;margin-top:-5px;padding:24px 30px 30px;border:5px solid #14202b;border-radius:29px;background:#fff}
.cl-language-card.cl-language-detail header{grid-column:1/3;grid-row:1;display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:0;margin:0 0 2px;min-width:0}
.cl-language-card.cl-language-detail header img{box-sizing:border-box;width:clamp(64px,8.7vw,122px);height:clamp(44px,5.2vw,75px);flex-shrink:0;border-radius:7px;object-fit:contain;background:none;border:1px solid #14202b}
.cl-language-card.cl-language-detail h2{font-size:clamp(34px,4.5vw,70px);line-height:1.06;letter-spacing:-.035em;margin:0;color:#14202b;overflow-wrap:anywhere}
.cl-language-card.cl-language-detail .cl-language-autonym{flex-basis:100%;font-size:16px;line-height:1.2;color:#5d6267;margin:-6px 0 0}
.cl-language-card.cl-language-detail .cl-language-facts,.cl-language-card.cl-language-detail .cl-language-description{display:contents}
.cl-language-card.cl-language-detail .cl-language-facts>div{position:relative;grid-column:1;display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start;align-self:start;box-sizing:border-box;min-width:0;height:144px;min-height:144px;padding:0 16px 16px 4px;overflow:hidden;border:4px solid #14202b;border-radius:24px;background:linear-gradient(to bottom,#ffd44e 0 44px,#fffaf0 44px 100%);box-shadow:0 6px 0 #14202b30}
.cl-language-card.cl-language-detail [data-fact=family]{grid-row:2}
.cl-language-card.cl-language-detail [data-fact=script]{grid-row:3}
.cl-language-card.cl-language-detail [data-fact=speakers]{grid-row:4}
.cl-language-card.cl-language-detail dt{display:contents;margin:0;color:#14202b;font-weight:800}
.cl-language-card.cl-language-detail dt>span:not(.cl-language-fact-mark){grid-column:2;grid-row:1;display:flex;align-items:center;min-height:44px;font-size:clamp(17px,1.7vw,24px);line-height:1.2}
.cl-language-card.cl-language-detail .cl-language-fact-mark{position:relative;grid-column:1;grid-row:1/3;align-self:center;display:grid;place-items:center;width:72px;height:94px;color:#9e6800}
.cl-language-card.cl-language-detail .cl-language-fact-mark svg{width:68px;height:82px;fill:#fff3ce;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(1px 1px 0 #14202b);color:#14202b}
.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph] svg{position:absolute;width:72px;height:86px;fill:#fff9eb}
.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph]::after{content:attr(data-script-glyph);position:relative;font-size:52px;line-height:1;font-weight:800;color:#14202b}
.cl-language-card.cl-language-detail dd{grid-column:2;grid-row:2;align-self:center;margin:10px 0 0;color:#14202b;font-size:clamp(16px,1.5vw,22px);font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.cl-language-card.cl-language-detail .cl-language-description p{grid-column:2;margin:0;padding:7px 0 14px;font-size:clamp(16px,1.55vw,23px);line-height:1.28;border-bottom:2px solid #ffd44e;align-self:stretch;overflow-wrap:anywhere}
.cl-language-card.cl-language-detail .cl-language-description p:nth-child(1){grid-row:2}
.cl-language-card.cl-language-detail .cl-language-description p:nth-child(2){grid-row:3}
.cl-language-card.cl-language-detail .cl-language-description p:nth-child(3){grid-row:4;border-bottom:0;padding-bottom:0}
.cl-language-card.cl-language-detail .cl-language-portrait{grid-column:3;grid-row:1/5;position:relative;align-self:stretch;min-height:480px;margin:0;overflow:hidden;border:5px solid #14202b;border-radius:21px;background:#fff4d7}
.cl-language-card.cl-language-detail .cl-language-portrait img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cl-language-card.cl-language-detail .cl-language-portrait[data-missing=true]::after{content:'Fotografía pendiente';position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;font-size:17px;color:#716441}
.cl-language-card.cl-language-detail .cl-language-card-close{position:absolute;z-index:2;top:18px;right:20px;width:48px;height:48px;min-width:48px;padding:0;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#ed3247;cursor:pointer;transition:background .15s ease,transform .15s ease}
.cl-language-card.cl-language-detail .cl-language-card-close svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round}
.cl-language-card.cl-language-detail .cl-language-card-close:hover{background:#fff3cfb0}
.cl-language-card.cl-language-detail .cl-language-card-close:active{transform:scale(.93)}
.cl-language-card.cl-language-detail button:focus-visible{outline:3px solid #b58409;outline-offset:3px}
/* Exact central newsletter bell surface; the app owns its markup and action. */
.cl-upcoming-inline .cl-language-notify{background:linear-gradient(140deg,#fc6375,#e91d42);box-shadow:0 5px 15px #e91d4222}
.cl-language-notify svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;animation:none}
.cl-language-notify:is(:hover,:focus-visible) svg{animation:cl-notify-ring 2.8s ease-in-out infinite}
/* The picker owns vote actions; this sidecar only styles its existing target.
   Leave breathing room at the row edge and keep the site's gold/ink artwork. */
body.cl-guest-v2 #language-dialog .cl-language-row .cl-language-request-control.is-vote{flex:0 0 40px;width:40px;height:40px;margin-inline-end:12px;padding:7px;border:0;border-radius:0;background:transparent;color:#232930;box-shadow:none}
body.cl-guest-v2 #language-dialog .cl-language-row .cl-language-request-control.is-vote svg{width:26px;height:26px;fill:#ffda70;stroke:#232930;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.cl-guest-v2 #language-dialog .cl-language-row .cl-language-request-control.is-vote:hover svg{fill:#ffc83d}
@media(max-width:980px){.cl-language-card.cl-language-detail>.cl-language-detail-body{grid-template-columns:minmax(185px,.85fr) minmax(0,1.2fr);column-gap:18px;padding:22px}.cl-language-card.cl-language-detail .cl-language-portrait{grid-column:1/3;grid-row:5;min-height:360px;max-height:520px;aspect-ratio:4/3}.cl-language-card.cl-language-detail .cl-language-facts>div{grid-template-columns:64px minmax(0,1fr);padding-right:10px}.cl-language-card.cl-language-detail .cl-language-fact-mark{width:60px}.cl-language-card.cl-language-detail .cl-language-fact-mark svg{width:55px}.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph] svg{width:60px}.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph]::after{font-size:44px}.cl-language-card.cl-language-detail .cl-language-description p{font-size:18px;line-height:1.45}}
@media(max-width:560px){.cl-language-card.cl-language-detail{width:calc(100vw - 16px);max-height:96dvh;border-radius:16px}.cl-language-card.cl-language-detail .cl-language-photo{height:220px}.cl-language-card.cl-language-detail .cl-language-photo figcaption{top:14px;left:14px;padding:8px 10px;border-width:2px;border-radius:12px;font-size:16px;max-width:calc(100% - 78px)}.cl-language-card.cl-language-detail .cl-language-card-close{top:12px;right:10px;width:40px;min-width:40px;height:40px}.cl-language-card.cl-language-detail .cl-language-card-close svg{width:34px;height:34px}.cl-language-card.cl-language-detail>.cl-language-detail-body{display:flex;flex-direction:column;gap:16px;padding:20px 16px 22px;border-width:3px;border-radius:20px}.cl-language-card.cl-language-detail header{gap:12px}.cl-language-card.cl-language-detail header img{width:65px;height:45px}.cl-language-card.cl-language-detail h2{font-size:34px}.cl-language-card.cl-language-detail .cl-language-facts>div{min-height:114px;width:100%;box-sizing:border-box;grid-template-columns:78px minmax(0,1fr);padding-bottom:12px}.cl-language-card.cl-language-detail .cl-language-fact-mark{width:72px;height:86px}.cl-language-card.cl-language-detail .cl-language-fact-mark svg{width:66px}.cl-language-card.cl-language-detail dt>span:not(.cl-language-fact-mark){font-size:21px}.cl-language-card.cl-language-detail dd{font-size:18px}.cl-language-card.cl-language-detail .cl-language-description p{font-size:17px;line-height:1.5;padding:0 0 16px}.cl-language-card.cl-language-detail [data-fact=family]{order:1}.cl-language-card.cl-language-detail .cl-language-description p:nth-child(1){order:2}.cl-language-card.cl-language-detail [data-fact=script]{order:3}.cl-language-card.cl-language-detail .cl-language-description p:nth-child(2){order:4}.cl-language-card.cl-language-detail [data-fact=speakers]{order:5}.cl-language-card.cl-language-detail .cl-language-description p:nth-child(3){order:6}.cl-language-card.cl-language-detail .cl-language-portrait{order:7;min-height:420px;width:100%;box-sizing:border-box;aspect-ratio:3/4}.cl-language-card.cl-language-detail .cl-language-portrait img{height:100%}}
@media(prefers-reduced-motion:reduce){.cl-language-card.cl-language-detail .cl-language-card-close{transition:none}.cl-language-notify:is(:hover,:focus-visible) svg{animation:none}}
/* Compact version of the supplied three-column card, retaining its outline. */
.cl-language-card.cl-language-detail{width:min(1120px,calc(100vw - 28px));max-width:1120px;max-height:90dvh}
.cl-language-card.cl-language-detail[open]{animation:cl-language-arrive .32s cubic-bezier(.2,.8,.25,1) both}
.cl-language-card.cl-language-detail .cl-language-photo{height:clamp(165px,25dvh,270px)}
.cl-language-card.cl-language-detail>.cl-language-detail-body{grid-template-columns:minmax(170px,.8fr) minmax(210px,1.2fr) minmax(205px,1fr);gap:14px 18px;padding:20px 22px 22px}
.cl-language-card.cl-language-detail h2{font-size:clamp(28px,3.7vw,50px)}
.cl-language-card.cl-language-detail header img{width:90px;height:60px;object-fit:cover;border:3px solid #14202b;background:transparent;overflow:hidden}
.cl-language-card.cl-language-detail .cl-language-facts>div{height:112px;min-height:112px;grid-template-columns:64px minmax(0,1fr);grid-template-rows:36px 1fr;padding:0 10px 8px 3px;border-width:3px;border-radius:18px;background:linear-gradient(to bottom,#ffd44e 0 36px,#fffaf0 36px 100%)}
.cl-language-card.cl-language-detail dt>span:not(.cl-language-fact-mark){min-height:36px;font-size:18px}
.cl-language-card.cl-language-detail .cl-language-fact-mark{width:58px;height:78px;align-self:center}
.cl-language-card.cl-language-detail .cl-language-fact-mark svg{width:55px;height:60px}
.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph] svg{width:58px;height:68px}
.cl-language-card.cl-language-detail .cl-language-fact-mark[data-script-glyph]::after{font-size:38px}
.cl-language-card.cl-language-detail dd{margin:6px 0 0;font-size:16px;line-height:1.25}
.cl-language-card.cl-language-detail .cl-language-description p{font-size:16px;line-height:1.4;padding:4px 0 10px}
.cl-language-card.cl-language-detail .cl-language-portrait{min-height:380px;border-width:4px}
@keyframes cl-language-arrive{from{opacity:0;transform:translateY(12px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:980px){.cl-language-card.cl-language-detail>.cl-language-detail-body{grid-template-columns:minmax(170px,.8fr) minmax(0,1.2fr)}.cl-language-card.cl-language-detail .cl-language-portrait{min-height:300px}}
@media(max-width:560px){.cl-language-card.cl-language-detail{width:calc(100vw - 16px)}.cl-language-card.cl-language-detail>.cl-language-detail-body{display:flex;padding:16px 12px;gap:12px}.cl-language-card.cl-language-detail .cl-language-photo{height:170px}.cl-language-card.cl-language-detail .cl-language-facts>div{height:100px;min-height:100px}.cl-language-card.cl-language-detail .cl-language-portrait{min-height:320px}}
@media(prefers-reduced-motion:reduce){.cl-language-card.cl-language-detail[open]{animation:none}}
/* Shared geometry: square outer silhouette, matched photo controls, full fact column. */
.cl-language-card.cl-language-detail{--cl-card-control:48px;--cl-card-inset:12px;border:3px solid #14202b;border-radius:0;background:#fff;box-shadow:0 20px 70px #14202b40}
body.cl-guest-v2 .cl-language-card.cl-language-detail{border-color:#14202b}
.cl-language-card.cl-language-detail .cl-language-photo{height:clamp(205px,30dvh,320px)}
.cl-language-card.cl-language-detail .cl-language-photo figcaption{top:var(--cl-card-inset);left:var(--cl-card-inset);display:flex;align-items:center;min-height:var(--cl-card-control);max-width:calc(100% - 88px);padding:4px 10px;border:2px solid #14202b;border-radius:10px;font-size:14px;line-height:18px;overflow-wrap:anywhere;box-shadow:none}
.cl-language-card.cl-language-detail .cl-language-card-close{top:var(--cl-card-inset);right:var(--cl-card-inset);box-sizing:border-box;width:var(--cl-card-control);height:var(--cl-card-control);min-width:var(--cl-card-control);min-height:var(--cl-card-control)}
.cl-language-card.cl-language-detail .cl-language-card-close svg{width:40px;height:40px;stroke:none}
.cl-language-card.cl-language-detail .cl-language-card-close path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cl-language-card.cl-language-detail .cl-language-photo-context{position:absolute;bottom:10px;left:12px;right:12px;width:fit-content;max-width:calc(100% - 24px);box-sizing:border-box;margin:0;padding:5px 8px;background:#14202be8;color:#fff;font-size:12px;line-height:1.35;border:0;border-radius:3px;overflow-wrap:anywhere}
.cl-language-card.cl-language-detail>.cl-language-detail-body{grid-template-rows:auto auto;align-content:stretch;margin-top:0;border:0;border-top:3px solid #14202b;border-radius:0;box-shadow:none}
.cl-language-card.cl-language-detail .cl-language-facts{display:grid;grid-template-rows:repeat(3,minmax(132px,1fr));align-self:stretch;grid-column:1;grid-row:2;gap:14px;margin:0;min-width:0}
.cl-language-card.cl-language-detail .cl-language-facts>div{align-self:stretch;grid-row:auto;width:100%;height:auto;min-height:132px;box-shadow:none}
.cl-language-card.cl-language-detail .cl-language-description{display:grid;grid-template-rows:repeat(3,1fr);grid-column:2;grid-row:2;gap:12px;min-width:0}
.cl-language-card.cl-language-detail .cl-language-description p:nth-child(n){grid-row:auto;grid-column:auto;padding:0 0 12px;margin:0}
.cl-language-card.cl-language-detail .cl-language-description p:last-child{padding-bottom:0;border-bottom:0}
.cl-language-card.cl-language-detail .cl-language-portrait{grid-row:1/3;min-height:0}
.cl-language-card.cl-language-detail .cl-language-fact-mark{width:60px;height:80px;place-self:center}
.cl-language-card.cl-language-detail .cl-language-fact-mark svg{width:52px;height:60px;overflow:visible;filter:none;stroke-width:1.45}
@media(min-width:561px) and (max-width:980px){.cl-language-card.cl-language-detail .cl-language-portrait{grid-row:3;min-height:300px}}
@media(max-width:560px){
 .cl-language-card.cl-language-detail .cl-language-photo{height:205px}
 .cl-language-card.cl-language-detail .cl-language-facts,.cl-language-card.cl-language-detail .cl-language-description{display:contents}
 .cl-language-card.cl-language-detail .cl-language-facts>div{height:132px;min-height:132px}
 .cl-language-card.cl-language-detail .cl-language-portrait{min-height:320px}
}
