<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_aaa3781b-41a3-411e-862d-c733237bfa01">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_70ce6d5e-fa7f-496c-933c-822efed53a87">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_848d14cf-752d-4390-a39f-586987413a62">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_089ea256-6eca-48d2-bce9-2853e67b818b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_642ae21b-65b3-4e88-9402-118250ba9e38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_9661742a-7904-4082-9226-1e90f47cae55">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_90ab2f62-ee83-48e2-9aa8-f36b113d1c90">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_25c97061-e5ac-4994-b34d-2406ba738670">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_792ca254-d012-447d-945c-bf658bdfdb39">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_82b5b963-1335-4ee6-b50f-ccac379c917f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      id="F_0074d725-27f0-4eae-b387-ec98de5c1840">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;55,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_aaa3781b-41a3-411e-862d-c733237bfa01"
      decimals="-6"
      id="F_ad21f118-ee8c-4568-ab53-f5ef3de1c954"
      unitRef="U_USD">55000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
