<?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_b469a764-b0d0-4470-9254-7375e69e82fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_8e1f3f8f-2bdb-43e8-a901-35db7576288f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_e61755a0-ab72-462a-8521-3becd6245b7d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_e855bef9-f3c6-4c4a-a2d9-439c5638e43b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_80afef2c-51e6-4f9d-bdcb-67bd5fd0187a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_eb471b2e-ad50-41a1-a762-1bdd7155a973">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_57a9e7b7-68a9-4ec3-9052-ac88192076d1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_736c2728-b751-45cc-ad29-4395d5e5a849">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_a3ca6921-ce1b-410b-a2df-00325ecf1dc7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_d1baf455-5fa1-4c65-b954-d0b82adceac9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b469a764-b0d0-4470-9254-7375e69e82fb"
      id="F_f83041b5-6787-439e-bb44-18ebd63e3bab">&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;1,500,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_b469a764-b0d0-4470-9254-7375e69e82fb"
      decimals="-3"
      id="F_23ee7dc7-77ea-4bf6-8bdc-625c3f106029"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
