/* Desktop-only top navigation for the whole Antes application.
   The existing <=760px mobile header and expandable #sidebar remain unchanged. */
@media (min-width:761px) {
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 60;
    width: 100%;
    height: 78px;
    min-height: 78px;
    /* Same 1240px centered container + 46px inset as #home.home-v2. */
    padding: 0 max(46px, calc(50% - 574px));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 2px 12px rgba(16,50,58,.11);
  }

  .sidebar > .brand {
    flex: 0 0 auto;
    font-size: 34px;
    white-space: nowrap;
    line-height: 1;
  }
  .sidebar > .brand > span { font-size: 23px; }

  .sidebar nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 0 auto;
    min-width: 0;
  }
  .sidebar nav button {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 650;
  }
  .sidebar nav button:hover,
  .sidebar nav button.active { background: #284a53; color: #fff; }
  .sidebar nav b { margin-left: 3px; }
  .sidebar-note { display: none; }

  main {
    width: 100%;
    margin-inline: auto;
    min-height: calc(100vh - 78px - 57px);
  }
  .app-legal-footer { margin-left: 0; padding: 18px 0; }
  .app-legal-footer nav {
    width: 100%;
    max-width: 1240px;
    box-sizing: border-box;
    padding-inline: 46px;
  }
  html { scroll-padding-top: 90px; }
  #report { scroll-margin-top: 94px; }
}
@media (min-width:761px) and (max-width:1080px) {
  /* Homepage switches to 28px content inset at <=1080px. */
  .sidebar { padding-inline: 28px; }
  .app-legal-footer nav { padding-inline: 28px; }
}
@media (min-width:761px) and (max-width:900px) {
  .sidebar { gap: 12px; }
  .sidebar > .brand { font-size: 30px; }
  .sidebar > .brand > span { font-size: 21px; }
  .sidebar nav { gap: 2px; }
  .sidebar nav button { font-size: 12px; padding: 11px 10px; gap: 6px; }
}
@media print {
  .sidebar { display: none !important; }
}

/* Footer V3: source transparency is a secondary destination, still available globally. */
.app-legal-footer.footer-v3{background:#10323a;color:#d8e8e7;padding:0;margin-top:0}
.footer-v3 .footer-v3-inner{max-width:1240px;margin:0 auto;padding:44px 46px 22px;box-sizing:border-box}
.footer-v3 .footer-v3-columns{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(130px,1fr));gap:32px;align-items:start}
.footer-v3 .footer-v3-brand{font-size:30px;color:#fff;letter-spacing:-.065em;line-height:1;font-weight:850}
.footer-v3 .footer-v3-brand span{color:#bcf24b;letter-spacing:0;margin-left:5px}
.footer-v3 .footer-v3-tagline{font-size:14px;font-weight:750;color:#fff;margin:17px 0 9px}
.footer-v3 p{line-height:1.55;margin:0;color:#b9cbcf;font-size:13px}
.footer-v3 h2{font-size:13px;color:#fff;font-weight:800;margin:0 0 14px}
.footer-v3 .footer-v3-links{display:flex;flex-direction:column;align-items:flex-start;gap:11px;margin:0;padding:0;width:auto;max-width:none;box-sizing:border-box}
.footer-v3 .footer-v3-links h2{margin-bottom:3px}
.footer-v3 a,.footer-v3 .footer-v3-link{display:inline-flex;text-align:left;background:none;border:0;padding:0;color:#d8e8e7;font-size:13px;font-weight:500;line-height:1.45;text-decoration:none}
.footer-v3 a:hover,.footer-v3 .footer-v3-link:hover{text-decoration:underline;color:#fff}
.footer-v3 a:focus-visible,.footer-v3 .footer-v3-link:focus-visible{outline:2px solid #bcf24b;outline-offset:4px;border-radius:2px}
.footer-v3 .footer-v3-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #35545b;margin-top:34px;padding-top:19px;font-size:12px;color:#b9cbcf}
/* Reset the legacy legal footer's margin-left:auto on every span. */
.footer-v3 .footer-v3-bottom span{margin-left:0;color:inherit;font-size:inherit}
.footer-v3 .footer-v3-bottom span:last-child{text-align:right}
@media(min-width:761px) and (max-width:1080px){
 .footer-v3 .footer-v3-inner{padding-inline:28px}
 .footer-v3 .footer-v3-columns{gap:22px}
}
@media(max-width:760px){
 .app-legal-footer.footer-v3{margin-left:0}
 .footer-v3 .footer-v3-inner{padding:34px 20px 24px}
 .footer-v3 .footer-v3-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}
 .footer-v3 .footer-v3-about{grid-column:1/-1}
 .footer-v3 .footer-v3-brand{font-size:29px}
 .footer-v3 .footer-v3-bottom{flex-direction:column;margin-top:30px}
 .footer-v3 .footer-v3-bottom span:last-child{text-align:left}
}
@media(max-width:380px){.footer-v3 .footer-v3-columns{grid-template-columns:1fr}.footer-v3 .footer-v3-about{grid-column:auto}}
@media print{.app-legal-footer.footer-v3{display:none!important}}


/* Footer navigation links are not top-navigation pills. Reset generic nav
   hover/padding rules across Abre Aquí, Fuentes, and Información pages. */
.footer-v3 nav.footer-v3-links a{
  display:inline;min-height:0;padding:0;border-radius:0;
  color:#d8e8e7;background:transparent;line-height:1.5;
}
.footer-v3 nav.footer-v3-links a:hover{
  color:#fff;background:transparent;text-decoration:underline;text-underline-offset:3px;
}
.footer-v3 nav.footer-v3-links a:focus-visible{
  color:#fff;background:transparent;outline:2px solid #bcf24b;outline-offset:4px;
}

/* At tablet widths the legacy nav stylesheet sets main to width:100%.
   Preserve the same 28px page gutters as the rest of Antes. */
@media(min-width:761px) and (max-width:1199px){
  body > main#main{width:calc(100% - 56px);margin-inline:auto}
}

/* Legal pages still use the legacy CSS bundle. Supply the shared responsive
   header styles here so its desktop menu stays hidden and mobile menu works. */
body.legal-page .site-header{height:78px;background:#f8fbf9;border-bottom:1px solid #d8e5de;box-shadow:0 2px 12px #10323a0e;color:#11313b}
body.legal-page .header-inner{max-width:1148px;height:100%;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}
body.legal-page .site-header .brand{font-size:34px;white-space:nowrap;line-height:1;display:inline-flex;align-items:baseline;gap:5px;text-decoration:none;color:#11313b}
body.legal-page .site-header .brand span{font-size:23px;color:#bcf24b}
body.legal-page .site-global-nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto}
body.legal-page .site-global-nav a{display:flex;align-items:center;gap:8px;min-height:44px;padding:12px 14px;border-radius:10px;font-size:13px;font-weight:650;text-decoration:none;color:#11313b}
body.legal-page .site-global-nav a:hover{background:#edf4ee}
body.legal-page .site-global-nav a[aria-current]{background:#e7f2e9}
body.legal-page .site-global-nav svg{width:17px;height:17px}
body.legal-page #menu-toggle,body.legal-page .mobile-route{display:none}
@media(max-width:760px){
  body.legal-page .site-header{height:64px;position:relative;z-index:5}
  body.legal-page .header-inner{padding:0 18px;gap:16px}
  body.legal-page .site-header .brand{font-size:32px}
  body.legal-page .mobile-route{display:block;margin-left:auto;font-size:12px;color:#567076}
  body.legal-page #menu-toggle{display:grid;place-items:center;border:0;background:transparent;border-radius:8px;width:44px;height:44px;padding:0;flex:none}
  body.legal-page #menu-toggle svg{width:20px;height:20px}
  body.legal-page .site-global-nav{display:none;position:absolute;top:63px;left:0;right:0;padding:12px 18px 18px;margin:0;background:#f8fbf9;box-shadow:0 14px 22px #10323a1c;border-bottom:1px solid #dce7e4}
  body.legal-page .site-global-nav.open{display:flex;flex-direction:column;align-items:stretch}
  body.legal-page .site-global-nav a{min-height:44px}
}

/* Shared Antes arrow artwork on the dark footer. */
.footer-v3 .footer-v3-brand span{display:inline-flex;vertical-align:baseline;align-items:center}
.footer-v3 .footer-v3-brand span svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
