<?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_0faf2ebe-3c83-4e8a-b319-73a51763c66e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_071eb999-4453-4d19-a6eb-e2d3d5b745c6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_b2355d30-b802-4ad6-a7a9-9e4e44e8d24c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_4abc0b87-30f1-476f-9d90-cb297e934195">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_af69d3e3-e238-46d2-b39a-72602f7cd3a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_113a96af-47d4-4340-a99d-b562eeedf717">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_d1207ece-588b-4727-8076-694615b1b0d4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_1ca073f9-43ce-4922-b082-eff5ec157dff">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_8a75cb44-257f-467e-9b09-88e801624858">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_2f18af59-bd26-45f6-bdcd-3af30c0d7e10">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      id="F_58353bd8-1af0-4c01-ae00-c8c68ac0551b">&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;6,155,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_0faf2ebe-3c83-4e8a-b319-73a51763c66e"
      decimals="-3"
      id="F_b9bc7abd-18ce-4d62-8400-d257612fbaa4"
      unitRef="U_USD">6155000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
