<?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_bb5003c5-5f6b-4402-b466-2c26cc99176c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_9733bf04-821d-43bc-bd06-d1f9767b1542">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_9b870451-f2b0-4ce1-a430-ea03ada69e72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_ce40dff8-5d36-42bc-a811-afd0b48423d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_abfe4285-0c2f-4993-a613-c3a93f8410bb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_aa6d53f4-9da5-4387-a306-9a7638825b0f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_0271cf44-0501-49bc-bbb4-ebb763dcd190">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_7531207c-b04d-4b74-af7f-8a7860e11acb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_84527564-891f-4cdc-9b82-3151e784a47c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_470421fb-c804-47a2-9fcc-b36e6e3844b3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      id="F_4620b10f-7387-46b7-bf8e-5c0448668d0c">&lt;p style="tab-size:26.66px;font-size:12pt;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;50,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_bb5003c5-5f6b-4402-b466-2c26cc99176c"
      decimals="-6"
      id="F_4b1de113-ece1-4efe-be6c-5a314e796f3b"
      unitRef="U_USD">50000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
