<?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_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_5a7c8fa7-f719-4f58-b0ab-5774e628e6c8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_49cdce9c-dc0c-43e8-a479-cd111554a9ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_572d0f87-42a3-44c6-8038-b359e51cd176">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_da123a00-9f02-4f98-b5f8-71e182770b73">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_a337fe84-4295-42ed-a627-ac4975de43e6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_a3b5420a-0384-4de1-b04d-02ef2e326c23">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_78eb2275-b9ea-4606-911e-72bbf635353b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_0c42d78c-d452-44af-8a3b-b72e67cbdbed">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_4b9ab7f8-c5ce-4548-972e-6c47f0c2c4bf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      id="F_8026e8b6-2e43-4ab0-a408-ba9537f01d51">&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;609,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_9eaab5ea-1de9-4b3b-a0b0-848963d2ae2d"
      decimals="-3"
      id="F_366ad78f-7cda-46b6-8484-6a55664f0379"
      unitRef="U_USD">609000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
