<?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_8af591c6-d8fd-4f61-bab1-a82fec8438c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_fb3e3798-2d42-46c4-8228-7aabf1b11f97">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_e21afee6-4ffa-4e42-97c4-4b6d94889721">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_fa5f7b0f-990a-4d93-ad62-e39d9091083f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_e70da822-2aba-43b0-a6e4-e3c491f915d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_a9ee9a40-f300-4a04-b406-e44f960ee2d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_9e2170fb-51e1-412c-8572-fdcdb4e6507a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_8b6baa49-f31e-4a4a-bfaa-d3b9b2df4e42">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_9ab76da3-2418-4705-8016-7f6ee08c5274">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_27e96442-9737-46a1-a035-ccd01e560967">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      id="F_aea9e5a9-68bc-4c29-8b34-2508c22b569f">&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;10,215,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_8af591c6-d8fd-4f61-bab1-a82fec8438c6"
      decimals="-3"
      id="F_41aa0528-736b-471c-a455-220861e679c3"
      unitRef="U_USD">10215000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
