/* Gallery and landing refinements — designed against the published Full19 run. */

/* Keep the three upper cards aligned, including editorial warning placeholders. */
.category-grid .category-card:nth-child(-n+3){
  min-height:292px;display:flex;flex-direction:column;align-items:flex-start;
}
.category-grid .category-card:nth-child(-n+3) .category-top{width:100%;flex:0 0 auto}
.category-grid .category-card:nth-child(-n+3) .category-warning{
  display:inline-flex;align-self:flex-start;min-height:22px;margin:9px 0 0;
  padding:2px 7px;align-items:center;
}
.category-grid .category-card:nth-child(-n+3) .category-warning-spacer{
  visibility:hidden;pointer-events:none;border-color:transparent;
}
.category-grid .category-card:nth-child(-n+3) .category-graphic{
  width:100%;height:96px;flex:0 0 96px;margin:12px 0 13px;
  padding:0;background:none;overflow:hidden;
}
.category-grid .category-card:nth-child(-n+3) h3{margin:0 0 6px}
.category-grid .category-card:nth-child(-n+3) p{margin:0 0 16px}
.category-grid .graphic-document img.extraction-svg,
.category-grid .graphic-landscape img.scene-svg{
  width:min(245px,100%);height:96px;max-height:100%;display:block;
  object-fit:contain;object-position:left center;
}
.category-grid .graphic-document i{display:none}
.category-grid .graphic-document{border:0;border-radius:0}
.category-grid .graphic-bars{align-items:flex-end;padding:7px 5px!important}
@media(max-width:690px){
  .category-grid .category-card:nth-child(-n+3){min-height:278px}
  .category-grid .category-card:nth-child(-n+3) .category-graphic{height:91px;flex-basis:91px}
  .category-grid .graphic-document img.extraction-svg,
  .category-grid .graphic-landscape img.scene-svg{height:91px}
}

/* Gallery: four evidence summary cards. */
html[data-page=gallery] header.header .counters{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;margin:30px 0 24px;width:100%;
}
html[data-page=gallery] header.header .counter{
  --stat-accent:#84eac7;min-width:0;position:relative;overflow:hidden;
  min-height:185px;border:1px solid #416575;border-radius:18px;
  padding:19px 20px 18px;background:linear-gradient(135deg,#1c3544,#142632);
  box-shadow:0 12px 29px #07182420;display:flex;flex-direction:column;gap:8px;
}
html[data-page=gallery] .counter.stat-en{--stat-accent:#90e9c6}
html[data-page=gallery] .counter.stat-vi{--stat-accent:#8cbfeb}
html[data-page=gallery] .counter.stat-images{--stat-accent:#f3ca8f}
html[data-page=gallery] .counter.stat-groups{--stat-accent:#cea9ff}
html[data-page=gallery] header.header .counter:before{
  content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,var(--stat-accent),transparent);
}
html[data-page=gallery] .counter-top{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
html[data-page=gallery] .counter-kicker{
  font:750 9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:1px;text-transform:uppercase;color:#b6d2d9;
}
html[data-page=gallery] .counter-symbol{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:#294958;border:1px solid #527483;color:var(--stat-accent);
}
html[data-page=gallery] .counter-symbol svg{width:18px;height:18px;display:block}
html[data-page=gallery] .counter-value{
  display:flex;align-items:baseline;gap:8px;min-height:45px;
}
html[data-page=gallery] .counter-value strong{
  font:780 clamp(26px,2.8vw,36px)/1.18 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:-1.3px;color:#f5fbfa;font-variant-numeric:tabular-nums;
}
html[data-page=gallery] .counter-value small{
  font:750 10px/1.3 ui-monospace,monospace;
  color:var(--stat-accent);letter-spacing:.6px;
}
html[data-page=gallery] .counter-label{
  display:block;color:#e4f0f3;font-size:13px;line-height:1.42;font-weight:760;
}
html[data-page=gallery] .counter-description{
  margin:0;color:#b5cbd3;font-size:11px;line-height:1.58;font-weight:450;
}
html[data-page=gallery] header.header .notice{
  margin-top:2px;line-height:1.8;
}
@media(max-width:1100px){
  html[data-page=gallery] header.header .counters{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-page=gallery] header.header .counter{min-height:175px}
  html[data-page=gallery] .counter-value strong{font-size:34px}
}
@media(max-width:520px){
  html[data-page=gallery] header.header .counters{grid-template-columns:1fr;gap:10px}
  html[data-page=gallery] header.header .counter{min-height:0;padding:16px 17px;gap:6px}
  html[data-page=gallery] .counter-value strong{font-size:31px}
}

/* Identical common footer on landing and Gallery, with an extra evidence row only in Gallery. */
.site-footer{border-top:1px solid #294452;background:#09131d;color:#e9f4f5}
.site-footer .wrap{width:min(1220px,calc(100% - 64px));margin-inline:auto}
.site-footer .footer-inner{
  display:flex;align-items:center;justify-content:space-between;gap:32px;
  padding-top:33px;padding-bottom:33px;
}
.site-footer .footer-brand{display:grid;gap:6px}
.site-footer .footer-brand strong{
  font-size:18px;line-height:1.3;letter-spacing:-.7px;color:#eaf6f7;
}
.site-footer .footer-brand span{font-size:11px;line-height:1.65;color:#a4c1ce}
.site-footer .footer-credit{
  display:flex;gap:5px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:#c4d6dd;
}
.site-footer .footer-credit strong{color:inherit}
.site-footer .footer-credit a{text-decoration:underline;text-underline-offset:3px;color:inherit}
.site-footer .footer-links{
  display:flex;gap:19px;align-items:center;flex-wrap:wrap;
  font-size:11px;line-height:1.5;font-weight:730;color:#b0cad4;
}
.site-footer .footer-links a{color:inherit;text-decoration:none}
.site-footer .footer-links a:hover,.site-footer .footer-credit a:hover{color:#86ecc9}
.site-footer .gallery-evidence-links{
  border-top:1px solid #2b4755;padding-top:20px;padding-bottom:26px;
}
.site-footer .gallery-evidence-links h3{
  margin:0 0 4px;font-size:13px;font-weight:770;color:#eaf7f5;
}
.site-footer .gallery-evidence-links p{
  font-size:11px;line-height:1.7;color:#a9c4ce;margin:0 0 13px;
}
.site-footer .gallery-evidence-links .download-links{
  display:flex;flex-wrap:wrap;gap:9px 18px;margin-bottom:14px;
}
.site-footer .gallery-evidence-links .download-links a{
  font-size:11px;font-weight:700;color:#8de8cc;
  text-decoration:underline;text-underline-offset:3px;
}
.site-footer .gallery-evidence-links #footerNote{
  font-size:11px;line-height:1.7;color:#adc8d1;
}
html[data-theme=light] .site-footer{
  background:#e8f1f4;color:#193a4c;border-top-color:#b9cdd6;
}
html[data-theme=light] .site-footer .footer-brand strong,
html[data-theme=light] .site-footer .gallery-evidence-links h3{color:#17394c}
html[data-theme=light] .site-footer .footer-brand span,
html[data-theme=light] .site-footer .footer-credit,
html[data-theme=light] .site-footer .footer-links{color:#34586d}
html[data-theme=light] .site-footer .gallery-evidence-links{
  border-top-color:#b9cdd6;
}
html[data-theme=light] .site-footer .gallery-evidence-links p,
html[data-theme=light] .site-footer .gallery-evidence-links #footerNote{color:#34566b}
html[data-theme=light] .site-footer .gallery-evidence-links .download-links a{color:#075f51}
html[data-theme=light] header.header .counter{
  background:#ffffff;border-color:#bccfd6;box-shadow:0 12px 30px #19435712;
}
html[data-theme=light] .counter-kicker{color:#3c5b6a}
html[data-theme=light] .counter-symbol{background:#eff5f7;border-color:#c4d5da;color:#116b5b}
html[data-theme=light] .counter.stat-en{--stat-accent:#08715f}
html[data-theme=light] .counter.stat-vi{--stat-accent:#2a6093}
html[data-theme=light] .counter.stat-images{--stat-accent:#8c541d}
html[data-theme=light] .counter.stat-groups{--stat-accent:#7153a3}
html[data-theme=light] .counter-value strong{color:#183a50}
html[data-theme=light] .counter-value small{color:var(--stat-accent)}
html[data-theme=light] .counter-label{color:#24465a}
html[data-theme=light] .counter-description{color:#38596b}
@media(max-width:950px){
  .site-footer .footer-inner{flex-wrap:wrap;gap:19px}
  .site-footer .footer-credit{order:3;width:100%}
}
@media(max-width:690px){
  .site-footer .wrap{width:calc(100% - 36px)}
  .site-footer .footer-inner{align-items:start;flex-direction:column}
  .site-footer .footer-credit{order:0}
}
