<?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_d449287a-c7e6-4567-b501-5fd256ceff3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_b2c21a3b-4428-449d-a8ec-d486ed7139c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_a76d951c-26ec-460b-9366-dfdbc187c7f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_db14bda1-2446-4816-94b2-47cdff8ca13a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_39ab8777-f47e-4d47-9836-a6989963ce0b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_8cd8dfd5-ae1c-426e-a5c7-0d2cf111e8bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_fc108874-9c6c-4a06-a43c-ec9a0d2f4dd7">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_9a347cd4-ca0e-4a10-9465-133a13ab56fd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_51be7483-6fa5-4087-a3c1-9cfb22ed93dc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_40f1f817-8e8f-4487-a9a1-a5edd69d630b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d449287a-c7e6-4567-b501-5fd256ceff3b"
      id="F_35ad502e-d27e-462c-bcf3-f382be728f0e">&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,647,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_d449287a-c7e6-4567-b501-5fd256ceff3b"
      decimals="-3"
      id="F_77b08e76-90a0-40cf-8a3f-fe5dc0bec48f"
      unitRef="U_USD">1647000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
