<?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_cb86c095-a3f3-4771-9451-f8664d98ce3b">
        <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:RegnFileNb
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_fe5e01db-e7c2-440d-842a-b7d7520565ca">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_00e9b403-4b30-4d54-b94b-a90e67a1ce83">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_a66ba65c-49a0-4938-b499-449b779e85a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_e069ae20-0088-4ddd-8d9c-6f3a43b29cf2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_88109307-8dad-45c6-b543-2370619a9bc9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_ff42af95-4c5e-4310-8d6f-c6f934907b21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_5c34fa37-c412-466b-a504-8b5ced9bdf0c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_fe875411-6138-4fb2-995a-17827dc15abf">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_3fb13427-0fbb-467c-b01b-8a19c3fe1e1b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      id="F_d9685b9c-3b1d-4d83-b115-436800fe2174">&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;1,408,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_cb86c095-a3f3-4771-9451-f8664d98ce3b"
      decimals="-3"
      id="F_de9ec2f2-0812-4449-97aa-e36217e029b1"
      unitRef="U_USD">1408000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
