/* I.E.BAT V5.19 — document library and explicit PDF language choices. */
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at top, #203b56, #091322 70%); color: #fff; font-family: Arial, sans-serif; min-height: 100dvh; isolation: isolate; }
main { padding: 105px 4vw 16px; max-width: 1600px; margin: auto; min-height: calc(100dvh - 30px); display: flex; flex-direction: column; }
.intro { text-align: center; margin-bottom: 16px; }
.intro h1 { font-size: clamp(22px, 3vh, 36px); margin: 0 0 7px; }
.intro p { font-size: 13px; line-height: 1.5; max-width: 1050px; margin: 0 auto 12px; color: #c6d0df; }
.docs-bundle { display: flex; justify-content: center; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.docs-bundle a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid #f5c928; border-radius: 7px; background: #f5c928; color: #101c30; font-size: 13px; line-height: 1.3; font-weight: 700; text-decoration: none; }
.docs-bundle small { color: #c6d0df; font-size: 12px; white-space: nowrap; }
.docs-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; gap: 12px; flex: 1; }
.docs-card { padding: 12px; gap: 8px; min-width: 0; min-height: 0; text-align: center; background: rgba(19,32,52,.94); }
.docs-card img { width: 100%; height: clamp(110px, calc((100dvh - 620px) / 2), 235px); object-fit: contain; transition: transform .2s; }
.docs-card:hover img { transform: scale(1.025); }
.docs-card h3 { font-size: 15px; line-height: 1.3; min-height: 2.6em; margin: 0; }
.docs-card small { font-size: 12px; line-height: 1.4; }
.docs-card .doc-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.doc-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; font-size: 12px; padding: 7px 11px; border: 1px solid #f5c928; border-radius: 5px; text-decoration: none; }
.doc-actions a[download] { background: #f5c928; color: #101c30; }
.doc-language-options { border-top: 1px solid #63758b55; padding-top: 8px; }
.doc-language-label { display: block; color: #c6d0df; font-size: 11px; line-height: 1.4; margin-bottom: 3px; }
.doc-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 7px; }
.doc-languages a { display: inline-flex; justify-content: center; align-items: center; min-height: 28px; padding: 4px; font-size: 12px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; color: #dce5f2; }
.doc-languages a.is-current { color: #f5c928; font-weight: 700; }
.docs-card a:hover, .docs-bundle a:hover { filter: brightness(1.12); }
.docs-card a:focus-visible, .docs-bundle a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
footer { text-align: center; font-size: 11px; padding: 5px; }
footer button { background: none; color: #fff; border: 0; cursor: pointer; }
.docs-video-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #101c30; }
.docs-video-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .36; }
.docs-video-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,19,34,.48), rgba(9,19,34,.76)); }
@media (max-width: 1100px) {
  main { padding-top: 100px; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-card img { height: 200px; }
}
@media (max-width: 600px) {
  main { padding-right: 5vw; padding-left: 5vw; }
  .docs-grid { grid-template-columns: 1fr; gap: 16px; }
  .docs-card { padding: 16px; }
  .docs-card img { height: 230px; }
  .docs-card h3 { font-size: 17px; min-height: 0; }
  .doc-actions a { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .doc-languages a { min-height: 44px; padding: 8px; font-size: 13px; }
  .docs-bundle a { min-height: 44px; width: 100%; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-video-bg video { display: none; }
  .docs-card img { transition: none; }
  .docs-card:hover img { transform: none; }
}
