<?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_537f938d-dbcc-40aa-b457-0f7e12406e23">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_87f14598-8ece-4a81-acde-a09479e7b2ef">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_16557988-d5a6-442e-bedc-fdcec2bfbd7b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_7459d9a0-9f8e-4126-b79d-be4d34a73be2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_3578a74e-4dd7-4096-9d03-a17b0c45a528">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_9752e3b0-bba0-432f-ad91-65ff9260af4a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_49eeff09-1783-4869-aef9-e8fa39289dc1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_88cee5aa-378a-4242-8cf3-f2830b2bb03b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_026508d1-d446-4b34-8912-0152e6320cb1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_64af028b-bb7f-40ec-be70-4c74748158db">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_537f938d-dbcc-40aa-b457-0f7e12406e23"
      id="F_2cba52ce-b45f-48be-a4b9-b2dd7a4695da">&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;6,843,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_537f938d-dbcc-40aa-b457-0f7e12406e23"
      decimals="-3"
      id="F_b1e77cbf-884b-4de2-a49f-dddcfa679aeb"
      unitRef="U_USD">6843000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
