
/* contrato1 — Astrofotografia alpha1
   Scoped. No global layout resets. */

.cs-astro-detail *,
.cs-astro-catalog *,
.cs-astro-catalog-hero *{box-sizing:border-box}

.cs-astro-detail h1,.cs-astro-detail h2,.cs-astro-detail h3,
.cs-astro-detail strong,.cs-astro-detail dt,.cs-astro-detail button,.cs-astro-detail a,
.cs-astro-catalog h1,.cs-astro-catalog h2,.cs-astro-catalog label,
.cs-astro-catalog-hero h1{
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
}

.cs-astro-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.82rem;color:#8092a8;margin-bottom:24px}
.cs-astro-breadcrumb a{color:#a8b7c9;text-decoration:none}
.cs-astro-breadcrumb a:hover{color:var(--cs-yellow)}

.cs-astro-catalog-hero,.cs-astro-detail-hero{
  padding:54px 0 34px;
  background:radial-gradient(circle at 15% 0%,rgba(255,196,0,.08),transparent 30%),linear-gradient(180deg,#07111f,#050b14);
  border-bottom:1px solid rgba(255,255,255,.06)
}
.cs-astro-catalog-heading,.cs-astro-title-row{display:flex;justify-content:space-between;gap:32px;align-items:flex-end}
.cs-astro-catalog-heading h1,.cs-astro-title-copy h1{margin:.15em 0 .18em;letter-spacing:-.04em}
.cs-astro-catalog-heading h1{font-size:clamp(2.3rem,5vw,4.4rem)}
.cs-astro-title-copy h1{font-size:clamp(2.35rem,5vw,4.35rem);line-height:1.02;max-width:1050px}
.cs-astro-catalog-heading p,.cs-astro-lead{max-width:850px;color:#a8b7c8;line-height:1.65}
.cs-astro-lead{font-size:1.05rem}
.cs-astro-count{min-width:100px;text-align:right}.cs-astro-count strong{display:block;font-size:2.1rem}.cs-astro-count span{color:#8194aa;font-size:.76rem;text-transform:uppercase;letter-spacing:.05em}

.cs-astro-eyebrow-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cs-astro-type-link,.cs-astro-badge{
  display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.045em;text-decoration:none
}
.cs-astro-type-link{color:var(--cs-yellow)!important;border:1px solid rgba(255,196,0,.3);background:rgba(255,196,0,.06)}
.cs-astro-badge{color:#dce6f0;background:#101f31;border:1px solid #263b53}
.cs-astro-hero-meta{display:flex;gap:12px 20px;flex-wrap:wrap;margin-top:18px;color:#8598ad;font-size:.77rem;letter-spacing:.045em}
.cs-astro-hero-meta span{white-space:nowrap}

.cs-astro-share-wrap{position:relative;flex:0 0 auto}
.cs-astro-share-button,.cs-astro-all-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 16px;border-radius:13px;
  border:1px solid rgba(255,196,0,.32);background:rgba(255,196,0,.06);color:var(--cs-yellow)!important;font-weight:700;text-decoration:none;white-space:nowrap
}
.cs-astro-share-menu{
  position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:210px;padding:7px;border:1px solid #263a50;border-radius:14px;background:#071321;box-shadow:0 18px 42px rgba(0,0,0,.4)
}
.cs-astro-share-menu button,.cs-astro-share-menu a{display:flex;width:100%;align-items:center;gap:9px;padding:10px 11px;border:0;background:transparent;color:#dfe8f1;text-decoration:none;text-align:left;border-radius:9px;cursor:pointer}
.cs-astro-share-menu button:hover,.cs-astro-share-menu a:hover{background:#102238}

.cs-astro-detail-body{padding-top:30px}
.cs-astro-gallery{max-width:1400px;margin:0 auto}
.cs-astro-main-image{
  position:relative;width:100%;min-height:320px;max-height:780px;padding:0;border:1px solid #20354d;border-radius:22px;overflow:hidden;background:#02060d;cursor:zoom-in
}
.cs-astro-main-image>img{display:block;width:100%;height:auto;max-height:780px;object-fit:contain;margin:auto;background:#02060d}
.cs-astro-expand{position:absolute;right:14px;bottom:14px;display:flex;gap:7px;align-items:center;padding:8px 10px;border-radius:10px;background:rgba(2,8,16,.82);color:#eaf1f8;font-size:.76rem}
.cs-astro-no-image{min-height:420px;display:flex;align-items:center;justify-content:center;gap:10px;color:#667a91}
.cs-astro-thumbnails{display:flex;gap:9px;margin-top:10px;overflow-x:auto;padding-bottom:4px}
.cs-astro-thumbnails button{flex:0 0 148px;width:148px;height:90px;padding:0;border:1px solid #20354d;border-radius:10px;overflow:hidden;background:#050b14;cursor:pointer}
.cs-astro-thumbnails img{width:100%;height:100%;object-fit:cover;display:block}
.cs-astro-image-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:9px;color:#7e92a8;font-size:.74rem}

.cs-astro-info-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:26px}
.cs-astro-panel{min-width:0;padding:23px 24px;border:1px solid #20354d;border-radius:19px;background:linear-gradient(180deg,#0a1727,#07111e)}
.cs-astro-panel h2,.cs-astro-section-heading h2{margin:.12em 0 16px;font-size:1.55rem}
.cs-astro-data{margin:0}
.cs-astro-data>div{display:grid;grid-template-columns:minmax(140px,.42fr) 1fr;gap:12px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.cs-astro-data>div:last-child{border-bottom:0}
.cs-astro-data dt{font-size:.73rem;color:#8295aa;text-transform:uppercase;letter-spacing:.045em}
.cs-astro-data dd{margin:0;color:#edf3f9}
.cs-astro-prose{color:#c2ceda;line-height:1.76}
.cs-astro-prose p:first-child{margin-top:0}.cs-astro-prose p:last-child{margin-bottom:0}

.cs-astro-section-block{margin-top:30px;padding-top:25px;border-top:1px solid rgba(255,255,255,.07)}
.cs-astro-section-heading{margin-bottom:14px}
.cs-astro-equipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.cs-astro-equipment-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px;padding:16px;border:1px solid #20354d;border-radius:16px;background:#081522}
.cs-astro-equipment-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:rgba(255,196,0,.07);color:var(--cs-yellow)}
.cs-astro-equipment-card span,.cs-astro-equipment-card small{display:block;color:#8296ad;font-size:.73rem}
.cs-astro-equipment-card strong{display:block;color:#f0f5fa;margin:.2em 0;font-size:1rem}
.cs-astro-equipment-card p{color:#99aabd;font-size:.82rem;margin:.45em 0 0;line-height:1.5}

.cs-astro-location-grid{display:grid;grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr);gap:16px}
.cs-astro-location-card{padding:20px;border:1px solid #20354d;border-radius:17px;background:#081522}
.cs-astro-location-card strong{font-size:1.15rem}.cs-astro-location-card p{color:#8da0b4}.cs-astro-location-card div{display:flex;gap:8px;flex-wrap:wrap}.cs-astro-location-card span{padding:5px 8px;border-radius:999px;background:#102238;color:#b6c5d5;font-size:.75rem}
.cs-astro-map{overflow:hidden;border:1px solid #20354d;border-radius:17px;background:#06101d}
.cs-astro-map iframe{width:100%;height:320px;border:0;display:block}
.cs-astro-map>a{display:block;padding:10px 12px;color:var(--cs-yellow)!important;text-decoration:none;font-size:.77rem}

.cs-astro-object-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:11px}
.cs-astro-object-facts>a,.cs-astro-object-facts>div{display:block;padding:14px 15px;border:1px solid #20354d;border-radius:14px;background:#081522;text-decoration:none}
.cs-astro-object-facts span{display:block;color:#8094aa;font-size:.72rem;text-transform:uppercase;letter-spacing:.045em}
.cs-astro-object-facts strong{display:block;color:#eff4f9;margin-top:5px}
.cs-astro-object-facts>a:hover{border-color:rgba(255,196,0,.4)}

.cs-astro-reading{max-width:1000px}
.cs-astro-external-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.cs-astro-external-links a{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:14px 15px;border:1px solid #20354d;border-radius:14px;background:#081522;text-decoration:none}
.cs-astro-external-links span{font-size:.7rem;color:#8295aa}.cs-astro-external-links strong{color:#eef4f9}.cs-astro-external-links i{grid-column:2;grid-row:1/3;align-self:center;color:var(--cs-yellow)}

.cs-astro-tags{display:flex;gap:7px;flex-wrap:wrap}.cs-astro-tags span{color:#9cb0c4;font-size:.73rem}.cs-astro-tags-large span{padding:6px 9px;border-radius:999px;border:1px solid #243950;background:#0a1828}
.cs-astro-credits{display:flex;gap:30px;flex-wrap:wrap;margin-top:30px;padding:18px 0;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}
.cs-astro-credits span{display:block;color:#8093a8;font-size:.7rem;text-transform:uppercase}.cs-astro-credits strong{display:block;margin-top:3px}

.cs-astro-prevnext{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:stretch;margin-top:26px}
.cs-astro-prevnext>div>a{display:flex;min-height:78px;flex-direction:column;justify-content:center;padding:13px 15px;border:1px solid #20354d;border-radius:15px;background:#081522;text-decoration:none}
.cs-astro-prevnext>div.is-next{text-align:right}.cs-astro-prevnext>div>a span{color:#8295aa;font-size:.72rem;text-transform:uppercase}.cs-astro-prevnext>div>a strong{color:#edf3f9;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-astro-all-button{min-height:78px}

.cs-astro-toolbar{margin-bottom:22px}
.cs-astro-search{display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #263a51;border-radius:14px;background:#071522}
.cs-astro-search input{width:100%;min-height:50px;border:0;background:transparent;color:#edf4fa;outline:none}
.cs-astro-filter-row{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;margin-top:10px}
.cs-astro-filter-row label{font-size:.72rem;color:#8396aa}
.cs-astro-filter-row select{display:block;width:100%;margin-top:5px;min-height:42px;padding:0 10px;border:1px solid #263a51;border-radius:11px;background:#081522;color:#e7eef5}
.cs-astro-active-filters{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px}.cs-astro-active-filters>div{display:flex;gap:7px;flex-wrap:wrap}.cs-astro-active-filters span{padding:6px 9px;border-radius:999px;background:rgba(255,196,0,.08);color:var(--cs-yellow);font-size:.74rem}.cs-astro-active-filters button{border:0;background:none;color:#9fb0c1;cursor:pointer}

.cs-astro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cs-astro-card{min-width:0;overflow:hidden;border:1px solid #20354d;border-radius:18px;background:#07131f}
.cs-astro-card-image{display:block;aspect-ratio:3/2;background:#02060d;overflow:hidden}.cs-astro-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.cs-astro-placeholder{height:100%;display:grid;place-items:center;color:#52677f;font-size:2.4rem}
.cs-astro-card-body{padding:16px}.cs-astro-card-taxonomy{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.cs-astro-card-taxonomy>a{font-size:.7rem;text-transform:uppercase;color:var(--cs-yellow)!important;text-decoration:none}
.cs-astro-card-body h2{font-size:1.22rem;line-height:1.2;margin:0}.cs-astro-card-body h2 a{color:#f3f6fa!important;text-decoration:none}.cs-astro-card-body>p{color:#9fb0c1;line-height:1.55;font-size:.88rem}
.cs-astro-card-meta{display:flex;gap:8px 14px;flex-wrap:wrap;color:#7f93aa;font-size:.73rem;margin-top:12px}
.cs-astro-card .cs-astro-tags{margin-top:12px}
.cs-astro-empty{text-align:center;padding:50px 16px;color:#8ea1b6}.cs-astro-empty i{font-size:2rem}.cs-astro-empty h2{color:#eff4f9}.cs-astro-empty button{min-height:42px;padding:0 14px;border-radius:10px;border:1px solid #263a51;background:#0b1b2e;color:#e9f0f6}
.cs-astro-pagination{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:26px}.cs-astro-pagination button{min-width:40px;height:40px;border:1px solid #263a51;border-radius:10px;background:#081522;color:#dbe5ef}.cs-astro-pagination button.is-active{border-color:var(--cs-yellow);color:var(--cs-yellow)}

.cs-astro-lightbox[hidden]{display:none!important}
.cs-astro-lightbox{position:fixed;inset:0;z-index:10000;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;background:rgba(0,4,10,.96);padding:32px 20px}
.cs-astro-lightbox figure{margin:0;min-width:0;text-align:center}.cs-astro-lightbox img{max-width:100%;max-height:calc(100vh - 100px);object-fit:contain}.cs-astro-lightbox figcaption{display:flex;justify-content:space-between;gap:14px;margin-top:8px;color:#9cafc2;font-size:.76rem}
.cs-lightbox-close{position:absolute;right:18px;top:16px}.cs-lightbox-close,.cs-lightbox-nav{width:44px;height:44px;border:1px solid #31455a;border-radius:50%;background:#091522;color:#eef4f9;cursor:pointer}.cs-lightbox-nav{margin:8px}.cs-lightbox-close{font-size:1.1rem}

@media(max-width:1000px){
  .cs-astro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-astro-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-astro-info-grid,.cs-astro-location-grid{grid-template-columns:1fr}
  .cs-astro-title-row,.cs-astro-catalog-heading{align-items:flex-start}
}
@media(max-width:760px){
  .cs-astro-title-row,.cs-astro-catalog-heading{display:block}
  .cs-astro-share-wrap{margin-top:18px}
  .cs-astro-count{text-align:left;margin-top:14px}
  .cs-astro-grid{grid-template-columns:1fr}
  .cs-astro-prevnext{grid-template-columns:1fr}.cs-astro-all-button{min-height:56px;grid-row:2}.cs-astro-prevnext>div.is-next{text-align:left}
}
@media(max-width:560px){
  .cs-astro-filter-row{grid-template-columns:1fr}
  .cs-astro-data>div{grid-template-columns:1fr;gap:3px}
  .cs-astro-main-image{border-radius:15px}
  .cs-astro-lightbox{grid-template-columns:1fr;padding:55px 10px 18px}.cs-lightbox-nav{position:absolute;top:50%}.cs-lightbox-nav.prev{left:5px}.cs-lightbox-nav.next{right:5px}
}
