/* Sitemap footer (template/i18n/footer.py). One rhythm for all three templates: 15px/20px column titles,
   14px/20px links, 8px between links, 14px under each title, equal-width left-aligned columns.
   Colours come from the variables at the end of the file, per template. */
.ap-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  column-gap: 28px;
  row-gap: 32px;
  align-items: start;
  width: 100%;
  flex: 1 1 100%;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}
@media (min-width: 1200px) {
  .ap-sitemap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ap-sm-col { min-width: 0; text-align: left; }
.ap-sm-title {
  margin: 0 0 14px;
  color: var(--ap-f-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.ap-sm-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-sm-list li { margin: 0; padding: 0; list-style: none; }
.ap-sm-list a {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--ap-f-link);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.ap-sm-list a:hover, .ap-sm-list a:focus-visible { color: var(--ap-f-hover); }
/* Tablet and phone: compact. The groups flow side by side in two columns (three on tablet) so the footer is short;
   a group is never split across columns. Smaller type, tight spacing, everything left-aligned. */
@media (max-width: 991px) {
  .ap-sitemap { display: block; column-count: 3; column-gap: 24px; row-gap: 0; }
  .ap-sm-col { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 24px; }
  .ap-sm-title { margin: 0 0 6px; font-size: 14px; line-height: 20px; }
  .ap-sm-list { gap: 0; }
  .ap-sm-list a { padding: 4px 0; font-size: 13px; line-height: 18px; }
}
@media (max-width: 575px) {
  .ap-sitemap { column-count: 2; column-gap: 20px; }
}
/* WikiLicense card (drawn by WikiLicense's script in .footer-license, in place of the old badge picture): the
   picture's size, about 170px wide on desktop (data-wl-scale="91") and 130px at 991px and narrower. The card is
   WikiLicense's own link to the Antos Pinnacles page on wikilicense.com (opens in a new tab). */
.footer-license .wl2-card-wrap { display: inline-block; }
@media (max-width: 991px) { .footer-license .wl2-card-wrap { zoom: .77; } }
/* Chinese pages (cn zh-Hans, zn zh-Hant): the Chinese WikiLicense badge picture is what shows; the WikiLicense card
   lies over it, fully transparent, so a click on the badge is a click on the card's link (and its differently
   shaped shield and rim never show). The picture is hidden in every other language. */
.footer-license-zh { display: none; }
:lang(zh) .footer-license { position: relative; display: inline-block; }
:lang(zh) .footer-license-zh { display: block; position: relative; z-index: 1; width: 169px; max-width: none; height: auto; }
:lang(zh) .footer-license .wl2-card-wrap { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; }
:lang(zh) .footer-license:focus-within { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
@media (max-width: 991px) { :lang(zh) .footer-license-zh { width: 130px; } }
:root { --ap-f-title:#000;--ap-f-link:rgba(0,0,0,.65);--ap-f-hover:#000;--ap-f-line:#e7e7e8; }
.footer-grid { flex-wrap: wrap; column-gap: 32px; row-gap: 40px; align-items: flex-start; }
@media (max-width: 991px) { .footer-grid { display: grid; } }
/* Tablet and phone footer (<= 991px): compact, left-aligned, the same type in all three templates.
   44px logo, 14/22 description, 24px social icons, 130px licence badge, 14/20 headings (like the sitemap groups),
   13px legal links, 12/18 copyright and risk text, 28px between blocks. The template's own CSS loads later,
   so these rules use !important. */
@media (max-width: 991px) {
  .footer-content { row-gap: 28px !important; }
  .footer-brand-content { align-items: flex-start !important; gap: 14px !important; max-width: none !important; padding-right: 0 !important; text-align: left !important; }
  .footer-logo-link { display: block !important; width: 44px !important; }
  .footer-brand-image { width: 44px !important; height: 44px !important; }
  .footer-description { font-size: 14px !important; line-height: 22px !important; text-align: left !important; }
  .footer-description a { font-size: inherit !important; line-height: inherit !important; }
  .social-media-link-holder { justify-content: flex-start !important; gap: 0 !important; }
  .social-media-icon { display: flex !important; align-items: center !important; justify-content: center !important; width: 28px !important; height: 28px !important; }
  .social-media-link-image { width: 20px !important; height: 20px !important; object-fit: contain !important; }
  .footer-license-badge { width: 130px !important; max-width: 100% !important; height: auto !important; }
  .footer-grid { row-gap: 8px !important; }
  .footer-grid-content { gap: 10px !important; align-items: flex-start !important; }
  .footer-grid > .footer-grid-content { grid-column: 1 / -1 !important; width: 100% !important; }
  .footer-heading { margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; line-height: 20px !important; color: var(--ap-f-title) !important; }
  .footer-funding-logos { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  .made-by-section { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; margin-top: 20px !important; padding-top: 16px !important; border-top: 1px solid var(--ap-f-line) !important; text-align: left !important; }
  .other-pages-link { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 0 18px !important; }
  .other-pages-link .footer-link { min-height: 32px !important; font-size: 13px !important; font-weight: 400 !important; color: var(--ap-f-link) !important; }
  .copyright-text-holder { margin-top: 4px !important; font-size: 12px !important; line-height: 18px !important; text-align: left !important; color: var(--ap-f-link) !important; }
  .footer-risk-warning { margin-top: 14px !important; padding-top: 0 !important; border-top: 0 !important; text-align: left !important; }
  .footer-risk-warning p { margin: 0 0 8px !important; font-size: 12px !important; line-height: 18px !important; color: var(--ap-f-link) !important; text-align: left !important; }
  .footer-risk-warning strong { font-weight: 600 !important; color: var(--ap-f-title) !important; }
  .footer-risk-warning a { display: inline !important; min-height: 0 !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: var(--ap-f-title) !important; text-decoration: underline !important; }
}

:where(.ap-h1){font-size:2em;margin-block:.67em}:where(.ap-h2){font-size:1.5em;margin-block:.83em}:where(.ap-h3){font-size:1.17em;margin-block:1em}:where(.ap-h4){font-size:1em;margin-block:1.33em}:where(.ap-h5){font-size:.83em;margin-block:1.67em}:where(.ap-h6){font-size:.67em;margin-block:2.33em}
