/* Dark Single shared CSS
   Scope: only when the Astra Custom Layout prints .uhSingle.
   IMPORTANT: Anything that affects Astra containers/body MUST be gated by :has(.uhSingle)
   so it won't affect other single templates.
*/

/* -------------------------------------------------------
   Astra layout overrides (ONLY when layout exists)
------------------------------------------------------- */

/* Hide Astra’s normal single output only when our layout is on the page */
body.single.ast-page-builder-template:has(.uhSingle) .site-content > .ast-container > #primary{
  display: none !important;
}

/* Full-width container + no side padding only when layout is present */
body.single.ast-page-builder-template:has(.uhSingle) .site-content > .ast-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure no white background bleeds through only when layout is present */
body.single.ast-page-builder-template:has(.uhSingle) .site-content,
body.single.ast-page-builder-template:has(.uhSingle) #content{
  background: transparent !important;
}

/* Dark page background ONLY when layout is present */
body.single:has(.uhSingle){
  background:
    radial-gradient(circle at top, #0c1118 0%, #07090c 60%),
    #07090c;
}
body.single:has(.uhSingle) .site-content,
body.single:has(.uhSingle) #content{
  background: transparent;
}

/* -------------------------------------------------------
   Theme variables + base
------------------------------------------------------- */
.uhSingle{
  --bg0:#06080b;
  --bg1:#0b0e12;

  --panel: rgba(255,255,255,.05);
  --panel2: rgba(12,14,18,.84);

  --line:  rgba(255,255,255,.12);
  --text:  rgba(255,255,255,.92);
  --dim:   rgba(255,255,255,.74);
  --dimmer:rgba(255,255,255,.60);

  --radius: 3px;
  --radius2: 4px;

  font-family: "IBM Plex Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
}

/* Full-width section background (this is safe; only exists when layout prints) */
.uhSingle__bg{
  background:
    radial-gradient(1200px 700px at 10% -20%, rgba(210,40,40,.22), transparent 60%),
    radial-gradient(900px 600px at 90% -10%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(180deg,var(--bg0) 0%, var(--bg1) 60%, var(--bg0) 100%);
  padding: 18px 0 44px;
}

/* -------------------------------------------------------
   Centered content frame (single source of truth)
------------------------------------------------------- */
.uhSingle__wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

@media (min-width: 1200px){
  .uhSingle__wrap{ padding: 22px 24px 0; }
}
@media (min-width: 1500px){
  .uhSingle__wrap{ padding: 26px 28px 0; }
}

/* -------------------------------------------------------
   Header
------------------------------------------------------- */
.uhHeader{
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.uhBar{
  height: 4px;
  background: linear-gradient(90deg, var(--ast-global-color-0), rgba(255,255,255,.08), transparent);
}

.uhHeaderInner{ padding: 14px 0 6px; }

.uhTitle{
  margin: 0 0 8px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-weight: 720;
}

.uhMeta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.uhChip{
  padding: 7px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--dim);
  font-size: 13px;
  line-height: 1;
  display:inline-flex;
  gap: 8px;
  align-items:center;
}

/* -------------------------------------------------------
   Hero (FULL-BLEED, clean)
------------------------------------------------------- */
.uhHero{
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 10px;
  margin-bottom: 14px;

  border: 0;
  border-radius: 0;
  box-shadow: none;

  overflow: hidden;
  background: #000;
  position: relative;
}

.uhHero:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.36) 70%, rgba(0,0,0,.58) 100%);
  pointer-events:none;
}

.uhHero picture,
.uhHero figure{
  display:block;
  width:100%;
  margin:0;
}

.uhHero img{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* -------------------------------------------------------
   Hero caption (use __desc only; hide __cap)
------------------------------------------------------- */
.uhHeroCaption{ margin: 0 0 14px; }

.uhHeroCaption__cap{ display: none !important; }

.uhHeroCaption__desc{
  background: rgba(12,14,18,.84);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0,0,0,.38);

  padding: 12px 14px;

  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.uhHeroCaption__desc p{ margin: 0; }
.uhHeroCaption__desc p + p{ margin-top: 10px; }

.uhHeroCaption__desc br{
  display:block;
  content:"";
  margin-top: 6px;
}

.uhHeroCaption__desc a{
  color: rgba(255,255,255,.90);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.uhHeroCaption__desc a:hover{ color:#fff; }

/* -------------------------------------------------------
   Layout grid
------------------------------------------------------- */
.uhGrid{
  display:grid;
  grid-template-columns: 1.55fr .85fr;
  gap: 16px;
  margin-top: 12px;
  align-items:start;
}

@media (max-width: 980px){
  .uhGrid{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------------
   Cards / typography
------------------------------------------------------- */
.uhCard{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: var(--panel);
  box-shadow: 0 14px 26px rgba(0,0,0,.45);
  overflow:hidden;
}

.uhCardBody{ padding: 14px; }

.uhCardBody :is(p,ul,ol,blockquote){ color: rgba(255,255,255,.92); }
.uhCardBody a{ color: rgba(255,255,255,.92); }
.uhCardBody a:hover{ color:#fff; }

.uhDivider{ border-top: 1px solid rgba(255,255,255,.10); margin: 14px 0; }
.uhH{ margin: 0 0 10px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); }

/* -------------------------------------------------------
   Meta block
------------------------------------------------------- */
.uhMetaBlock{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.35;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}

.uhCopyright{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 800;
}
.uhCopyright:hover{ color:#fff; text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------
   Map + wrappers
------------------------------------------------------- */
.uhMapBelow{
  margin-top: 12px;
  border-radius: 3px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}
.uhMapBelow > *{ border-radius: 0; overflow: hidden; }

.uhMapWrap{
  border-radius: 3px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}
.uhMapWrap #photo-map-sidebar{ border-radius: 0; }

.uhSmallNote{ color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.35; }

/* Remove “stuff above the map” inside the embedded map output */
.uhMapBelow h1,
.uhMapBelow h2,
.uhMapBelow h3,
.uhMapBelow h4{
  display:none !important;
}

/* -------------------------------------------------------
   Pills / tags
------------------------------------------------------- */
.uhPill{
  display:inline-block;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  padding:10px 12px;
  border-radius:3px;
  text-decoration:none;
  color:rgba(255,255,255,.90);
}
.uhPill:hover{ border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); color:#fff; }

.uhTags{ display:flex; flex-wrap:wrap; gap:8px; }
.uhTag{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  text-decoration:none;
  padding: 7px 10px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1;
}
.uhTag:hover{ background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.22); }

/* -------------------------------------------------------
   Related cards (fallback, non-YARPP)
------------------------------------------------------- */
.uhRelGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .uhRelGrid{ grid-template-columns: 1fr; }
}

.uhRelCard{
  display:block;
  text-decoration:none !important;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,12,16,.88);
  border-radius: 3px;
  overflow:hidden;
}
.uhRelCard:hover{ border-color: rgba(255,255,255,.22); background: rgba(16,18,24,.92); }
.uhRelThumb{ background: rgba(0,0,0,.25); }
.uhRelThumb img{ display:block; width:100%; height:auto; }
.uhRelMeta{ padding: 10px 10px; }
.uhRelTitle{ color: rgba(255,255,255,.92); font-weight: 650; font-size: 14px; line-height: 1.2; }
.uhRelDate{ margin-top: 6px; color: rgba(255,255,255,.62); font-size: 12px; }

/* -------------------------------------------------------
   YARPP cohesion
------------------------------------------------------- */
.uhYarppWrap{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.uhSingle .yarpp-related{
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  color: var(--text) !important;
}

.uhSingle .yarpp-related > h3,
.uhSingle h3.yarpp-related,
.uhSingle .yarpp-related h3{
  margin: 0 0 10px 0 !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 650 !important;
  color: var(--dimmer) !important;
  line-height: 1.2 !important;
  position: relative;
  padding-top: 10px;
}

.uhSingle .yarpp-related > h3:before,
.uhSingle .yarpp-related h3:before{
  content:"";
  position:absolute;
  top:0; left:0;
  width:140px; height:2px;
  background: linear-gradient(90deg, var(--ast-global-color-0), rgba(255,255,255,.10), transparent);
  border-radius: 2px;
}

.uhSingle .yarpp-thumbnails,
.uhSingle .yarpp-related .yarpp-thumbnails{
  display:grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap:10px !important;
  margin:0 !important;
}

@media (max-width: 520px){
  .uhSingle .yarpp-thumbnails,
  .uhSingle .yarpp-related .yarpp-thumbnails{
    grid-template-columns: 1fr !important;
  }
}

.uhSingle .yarpp-thumbnail,
.uhSingle .yarpp-related a.yarpp-thumbnail{
  display:block !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background: rgba(10,12,16,.88) !important;
  border-radius: 3px !important;
  overflow:hidden !important;
  text-decoration:none !important;
  box-shadow:none !important;
  margin:0 !important;
}

.uhSingle .yarpp-thumbnail:hover,
.uhSingle .yarpp-related a.yarpp-thumbnail:hover{
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(16,18,24,.92) !important;
}

.uhSingle .yarpp-thumbnail img,
.uhSingle .yarpp-related a.yarpp-thumbnail img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  margin:0 !important;
  border:0 !important;
}

.uhSingle .yarpp-thumbnail-title,
.uhSingle .yarpp-related .yarpp-thumbnail-title,
.uhSingle .yarpp-related a.yarpp-thumbnail .yarpp-thumbnail-title{
  display:block !important;
  padding:10px !important;
  color: rgba(255,255,255,.92) !important;
  font-weight: 650 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration:none !important;
}

/* -------------------------------------------------------
   Nearby wrapper
------------------------------------------------------- */
.uhNearbyWrap{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}