<?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_62432c9b-6227-41e5-8c34-a7a23aa6d4c7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_4f7f0a5f-4f6a-4b01-8746-b96f83ada9ac">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_67288a62-39f8-416c-90b0-423a26a27e04">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_7c1b05e5-a94b-4651-9689-d5e2781f16a9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_859587a5-caff-4852-9b88-4155b78d1fcd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_4c8e72dc-0920-4127-8f4c-206baca85ecd">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_346ec08d-36b3-44d6-98c3-42945d0dd9b2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_31e74476-da6e-468e-8495-3e70cfa5333c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_70bcfa3c-920f-417b-a16f-a76ce53512af">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_ccfe1269-691c-4381-a443-fdeb3a394d05">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      id="F_9f6eb5d1-764c-41f6-90ff-f78968f4ef1b">&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;640,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_62432c9b-6227-41e5-8c34-a7a23aa6d4c7"
      decimals="-3"
      id="F_0fd9fb08-528a-40c1-8844-7fdb5e096c6f"
      unitRef="U_USD">640000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
