<?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_de4988bf-d47b-4516-ba47-9c05058c38ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_0819ba1f-9e29-4036-96d1-968252f4043c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_f19d7016-1003-44a3-a71d-13d6f8f81fa1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_83b89f47-0639-4487-96d9-eb4525acd7c9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_d0938df2-6e9e-4ea4-96c1-01fd18a28349">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_9e7f4309-5ce3-4d5a-b1a4-cb5d1c579d94">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_2ca4c52d-1e66-4f33-9dd2-89fb059a73cf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_dcf65169-3e2b-4753-a88e-606f4e96c5a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_6c17135a-4d9f-4dc6-be7f-d3ade39a216b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_d258c6fc-63e8-49f0-a686-3717d2ed1a37">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_de4988bf-d47b-4516-ba47-9c05058c38ef"
      id="F_4bc8603d-fc77-4f4f-b83e-419a703a893a">&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;500,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_de4988bf-d47b-4516-ba47-9c05058c38ef"
      decimals="-3"
      id="F_ff1c9cdd-fc43-48b7-8a1f-906383b82d1b"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
