<?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_e1b29d60-e41b-40b8-aa42-a4743b44a340">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_78b7034f-b4b8-4e37-ace0-17358e242142">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_5fffe0fa-3918-435b-afb4-7c55caa99244">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_1efe202c-8648-4fab-8734-41b6a39c75ec">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_230e16b5-c215-4f5b-a846-032f81154bf4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_36583c41-e4f4-4add-a275-57d66db1e4fd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_92e4c2dc-5c3a-4139-af5d-2aaa46f06d10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_7cf6e69a-6726-48d3-a29b-cd25e54cbece">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_c6481495-a0bf-404f-a530-f6707bf3d5ca">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_e080ba03-0b61-4f06-81fa-7c119a8114df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      id="F_a9237beb-5657-4d58-9121-bc14b5a4d4d6">&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;1,102,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_e1b29d60-e41b-40b8-aa42-a4743b44a340"
      decimals="-3"
      id="F_1519263f-f679-427c-9e81-f1e3039e07be"
      unitRef="U_USD">1102000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
