<?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_57800311-92fc-473d-848a-8d4682856e4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_314fec8a-20d9-4c2d-9641-d4c47b39d6e5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_69b12270-9e2c-4796-9316-f00bf060d8f5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_bc544ca0-33d9-4e15-911a-aa3a8e92cc05">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_e3f8d212-3a75-4fe7-a5e1-0df3ee2ff278">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_2185f081-4eb2-45ce-a072-4215f300d3c7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_cef3f997-d4dd-4470-8824-00992e3c27da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_8b1ffa8e-f870-442e-8fbb-d6b40b8c4d2e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_546c51b0-2bcd-4d0f-9d35-c27e7d693450">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_264135b5-07bc-43c6-a916-cbd2d1917dbc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_57800311-92fc-473d-848a-8d4682856e4d"
      id="F_44fde05d-29e9-4870-9db9-a1a3e7a18e13">&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;19,326,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_57800311-92fc-473d-848a-8d4682856e4d"
      decimals="-3"
      id="F_d2c0f666-9bac-4bcd-9c3c-0fa35a60c86f"
      unitRef="U_USD">19326000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
