<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b107427f-55f2-4c19-8c8b-799eb30850bb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_854d3c00-cac0-496d-974b-d26ec824e1b9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_7ae5159f-0f3e-4e63-bb85-2cd23fafbea5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_06002317-4d0d-4772-ab8c-5edb8454204f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_d920d1c9-63d7-4343-9a92-b69dd8822e84">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_34e05ea4-588d-44f2-872a-7584edba8252">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_52492644-9c9e-4466-b011-b999d29863db">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_743271ad-475e-4e9a-8864-598871dc7363">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_a7055f08-52b8-4609-bce1-377998b20985">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_e9606e6e-8433-45de-8ce4-5c3b2da82f51">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b107427f-55f2-4c19-8c8b-799eb30850bb"
      id="F_d180a9df-43d7-4cff-bd4a-2391741c455c">&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;1,205,493.03&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_b107427f-55f2-4c19-8c8b-799eb30850bb"
      decimals="2"
      id="F_4a0267a1-d908-4c1f-9f70-8c52a83a05fe"
      unitRef="U_USD">1205493.03</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
