<?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_b2d094b0-d845-4711-b32f-6bf1f59d8046">
        <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:FormTp
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_8311f98b-3586-4c25-ab6f-5fa28218000d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_f48e889b-acb2-40f2-a3df-f8554616205e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_b68767c0-5d7c-4328-90f1-808127173094">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_d1301c1e-4801-4a51-93e1-4dfa718d7489">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_66fd5adc-ff99-444a-a0a1-f4754f0d0bde">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_b3bddb41-d5e0-484b-b33e-e67a9ca33633">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_586e6b75-29b5-41b3-8816-e623d9e067f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_20aa0500-d6f9-40c7-b70d-917145728ea6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_a069498e-70cd-45f8-a502-3e6246bd8718">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      id="F_020b55c8-ffa1-4aa5-82c1-dfb0f0ce3357">&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;901,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_b2d094b0-d845-4711-b32f-6bf1f59d8046"
      decimals="-3"
      id="F_b6918ca1-e628-41a2-91f9-cb24e1d27115"
      unitRef="U_USD">901000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
