<?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_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_51ee57d5-165d-4616-b05c-94c75e96277b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_6a030ba6-6d61-4ed5-bc86-af2ab507d644">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_2b6253d6-168b-4f43-b402-49118343af25">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_b89b4ba2-5d1a-49b3-8c60-9af728f2b8ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_81c0d842-fc5f-4231-a96d-2990f7d3749b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_5b707319-bcb5-44ee-a42a-591081f78b40">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_4cf10e5c-f1d6-4bee-aa47-3329a692773c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_fed1d4b2-e8d4-47c2-a1eb-dd30f73960a8">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_e96cfa7f-8458-4496-ab5f-41676778578c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      id="F_a7ba87df-a094-4e67-873a-e4fc443c05b5">&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;2,000,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_4c2013af-22a2-4fd5-a4b3-8256c1cdb0a0"
      decimals="-6"
      id="F_0a0a9fa6-bb2a-4d23-9d97-b7667d4d0a33"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
