<?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_440da56c-acaa-4a06-b525-7b237b5881fb">
        <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>
    <ffd:SubmissnTp
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_36ab200e-739f-4015-b679-98c71d920e13">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_c85671cb-774e-4ff9-b94f-11526c33dca0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_6fd35fd9-8c26-4b83-b7b3-98f32a1537e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_76af64d3-4cae-4855-94b4-254bc07228d2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_a7e1eb67-f95b-428c-8f44-3ca495f8e1bf">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_8090f232-0c6d-4c42-81fa-ce334b683305">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_2380a0c5-3dc6-4dff-8869-eefaf74c3aa0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_b17b469d-1f8b-403e-80e3-5747a33cd713">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_43df594c-499a-4872-8bc9-8b0d80aac490">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_440da56c-acaa-4a06-b525-7b237b5881fb"
      id="F_33708254-7202-4c38-b308-43f276cceb7e">&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,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_440da56c-acaa-4a06-b525-7b237b5881fb"
      decimals="-6"
      id="F_1c0f12e6-9e01-47f2-a7f0-3d5223e3fa0b"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
