<?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_77687841-eb9d-4560-911b-aaa3d1d64d97">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_79339967-9741-4c03-a9bb-e9991d8f674f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_209743c2-3c7e-4ca6-bd24-a6cdd448b4d7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_9d26a0f6-b116-4727-a7c8-dd208150e0c7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_9744da18-88a6-4618-af84-3ff1c6be9594">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_c8d61c66-ec11-4f0f-8275-475659951898">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_698e72b5-a0f5-4430-ab28-686da39d07e2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_6ade878f-87f8-40a8-bb86-d48e85ad15cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_6ecd21dc-0655-402e-8772-ec20f6bc0700">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_d4e0185a-92e5-400d-9410-7d5311b29d8a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_77687841-eb9d-4560-911b-aaa3d1d64d97"
      id="F_f590befa-8ef5-4d2b-9f30-78c7de431a5a">&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;715,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_77687841-eb9d-4560-911b-aaa3d1d64d97"
      decimals="-3"
      id="F_1d465854-c337-4c4a-ac80-1aeadc5f6eba"
      unitRef="U_USD">715000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
