<?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_8f7103ef-073d-45d7-8bf8-42808af6d6d9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_703c8c18-b40a-4e08-bf2b-3e0832d6553c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_b4cf3718-927b-46e9-b807-e7497ec1ebc0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_e3824309-dcd7-4b49-af00-6cc738b23c1c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_cb1d48aa-e16f-4ad7-8286-43b38f4ac55d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_2347340c-4053-407c-9b6e-ff439cdc7713">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_25720c03-e8b8-4214-a87a-035d82a0308e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_43718681-7aba-474e-8b7a-ba62a3e95da1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_eeaf3e71-86ce-4c62-ad29-3fad63022281">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_dacc54b9-8672-4225-ad7e-f8d6391d55f8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      id="F_e550ab83-db0b-44d6-93fc-c8949b675310">&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;921,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_8f7103ef-073d-45d7-8bf8-42808af6d6d9"
      decimals="-3"
      id="F_7b4edf55-26a5-4041-bc6c-2bb64c0c36b6"
      unitRef="U_USD">921000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
