<?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_7bb3456b-25f2-45c1-a388-691565c1504b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_7783be1f-0040-4390-8872-8f6082d548b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_ef602314-1ab5-4703-84c5-d607bb87be54">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_4ba0b5cc-898b-4650-ad63-ec870e36e933">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_1fb8f8a7-044d-496d-ab6e-627a339009cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_07d3dada-f6f1-4115-bcb3-6a0613ae73df">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_7edd04c1-efad-4075-b507-eef9fcf66f95">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_98687f44-9b37-41b7-b90b-8a83f0d71e6e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_e3dd312b-3ac5-4bab-bf10-b46154b14663">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_697000dc-03b8-499c-88c7-ef9ac643324a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7bb3456b-25f2-45c1-a388-691565c1504b"
      id="F_c7f2e39b-4156-4a61-91d7-560cccbbda95">&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;2,000,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_7bb3456b-25f2-45c1-a388-691565c1504b"
      decimals="-6"
      id="F_9930dcbb-81f3-451e-b937-4bfd2eaeff7a"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
