@media(max-width:900px){
  html{scroll-padding-top:100px}
  body.ame-site{-webkit-text-size-adjust:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  body.ame-site .topline{display:none}
  body.ame-site .header{top:0!important;height:auto;padding:0;z-index:100}
  body.ame-site.admin-bar .header{top:32px!important}
  body.ame-site .header-main{height:82px;padding:0 max(18px,env(safe-area-inset-left));gap:12px}
  body.ame-site .header-signature{display:none}
  body.ame-site .header-main .brand-symbol{height:76px}
  body.ame-site .menu-toggle{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;margin-left:auto;border:1px solid #ffffff55;border-radius:4px}
  body.ame-site .menu-toggle span{font-size:22px;line-height:1}
  body.ame-site #main-nav{top:100%;left:0;right:0;margin:0;padding:12px 18px 20px;max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;z-index:110}
  body.ame-site #main-nav>a{display:flex;align-items:center;width:100%;min-height:48px;padding:12px 10px;font-size:16px;line-height:1.4;white-space:normal;letter-spacing:0}
  body.ame-site .languages summary{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:8px;font-size:14px}
  body.ame-site .languages>div{max-height:calc(100dvh - 110px);overflow-y:auto;top:calc(100% + 8px);z-index:120}
  body.ame-site .languages:not([open])>div{display:none}
  body.ame-site .languages a{display:flex;align-items:center;min-height:44px;padding:10px 14px;font-size:15px}
  body.ame-site .wrap{width:calc(100% - 36px);min-width:0}
  body.ame-site h1,body.ame-site h2,body.ame-site h3{letter-spacing:0;overflow-wrap:break-word}
  body.ame-site .hero{display:block;min-height:0;height:auto}
  body.ame-site .hero-image{height:100%;object-position:center}
  body.ame-site .hero-overlay{inset:0}
  body.ame-site .hero-content,body.ame-site .hero:has(.repsol-related-card) .hero-content{padding:42px 0 32px}
  body.ame-site .hero h1{font-size:38px;line-height:1.15}
  body.ame-site .hero h1 .hero-brand{display:flex;align-items:center;gap:12px;max-width:100%;font-size:38px;line-height:1.15}
  body.ame-site .hero h1 .hero-brand:before{width:36px;height:44px;flex-basis:36px;transform:none}
  body.ame-site .hero h1>.hero-slogan{margin-top:20px;font-size:28px;line-height:1.2}
  body.ame-site .hero h1>.hero-slogan br{display:block}
  body.ame-site .urgent{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;min-height:64px;padding:8px 18px;text-align:left}
  body.ame-site .urgent>a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;margin:0;padding:0!important;border:0!important;background:transparent;font-size:12px;line-height:1.35}
  body.ame-site .hero-intro{margin-top:20px;font-size:16px;line-height:1.65}
  body.ame-site .hero .actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
  body.ame-site .hero .actions>a{width:100%;min-width:0;min-height:48px;padding:12px 18px;line-height:1.45}
  body.ame-site .hero-bottom{position:relative;inset:auto;width:100%;height:auto;min-height:54px;padding:14px 18px;gap:10px;flex-wrap:wrap;background:#00274de6;font-size:10px;letter-spacing:0}
  body.ame-site .repsol-related-card{position:relative;inset:auto;width:min(100% - 36px,320px);height:auto;margin:0 18px 26px;border-radius:8px}
  body.ame-site .repsol-related-image{height:80px}
  body.ame-site .repsol-related-copy{height:auto;min-height:104px;padding:12px}
  body.ame-site .repsol-related-copy strong{font-size:16px}
  body.ame-site .repsol-related-copy>span{font-size:13px}
  body.ame-site .repsol-related-copy b{font-size:12px;margin-top:12px}
  body.ame-site .page-hero{padding-block:36px}
  body.ame-site .page-hero h1,body.ame-site .journal-hero h1,body.ame-site .contact-hero h1{font-size:36px;line-height:1.18}
  body.ame-site .section{padding-block:48px}
  body.ame-site .section-head{display:block;margin-bottom:28px}
  body.ame-site .section-head>p{max-width:none;margin-top:18px}
  body.ame-site .section-head h2{font-size:30px;line-height:1.2}
  body.ame-site .contact-layout,body.ame-site .service-layout,body.ame-site .map-section{grid-template-columns:minmax(0,1fr);gap:28px}
  body.ame-site .contact-layout>*,body.ame-site .service-layout>*,body.ame-site .map-section>*{min-width:0}
  body.ame-site input:not([type="checkbox"]):not([type="radio"]),body.ame-site select,body.ame-site textarea{min-height:48px;font-size:16px;max-width:100%}
  body.ame-site textarea{min-height:140px;resize:vertical}
  body.ame-site .button,body.ame-site .text-link,body.ame-site summary{min-height:44px;max-width:100%;white-space:normal}
  body.ame-site .category-tabs{display:flex;flex-wrap:wrap;gap:8px}
  body.ame-site .category-tabs a{min-height:44px;display:flex;align-items:center;padding:10px 12px;font-size:13px;white-space:normal}
  body.ame-site .work-category-heading{display:block;min-width:0}
  body.ame-site .work-category-heading h2{width:100%;max-width:100%;font-size:28px;line-height:1.25;overflow-wrap:anywhere}
  body.ame-site .work-category-menu a{min-width:0}
  body.ame-site .work-category-menu a strong{min-width:0;overflow-wrap:anywhere}
  body.ame-site .prose{overflow-wrap:anywhere}
  body.ame-site .prose table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.ame-site .floating-tools{right:max(12px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
  body.ame-site.mobile-keyboard-open .floating-tools,body.ame-site:has(.cky-consent-container:not(.cky-hide)) .floating-tools{display:none}
  .cky-consent-container{max-height:70dvh;overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:782px){body.ame-site.admin-bar .header{top:46px!important}}
@media(max-width:380px){
  body.ame-site .hero h1,body.ame-site .hero h1 .hero-brand{font-size:32px}
  body.ame-site .hero h1>.hero-slogan{font-size:26px}
  body.ame-site .page-hero h1,body.ame-site .journal-hero h1,body.ame-site .contact-hero h1{font-size:32px}
  body.ame-site .contact-phone{display:block;margin:16px 0 0;font-size:20px}
}
@media(max-width:900px) and (max-height:500px){
  body.ame-site .header-main{height:64px}
  body.ame-site .header-main .brand-symbol{height:60px}
  body.ame-site #main-nav{max-height:calc(100dvh - 76px)}
}
