<?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_344d26e8-6570-4982-89b3-7292adea1f4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_66b90b4c-168d-49fb-be9c-f9eae44c7128">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_fa693ee0-f053-49f2-ad2c-aea96ffee830">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_ccd5ede1-3512-4dce-b40c-b1ed328f519e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_1b9208a4-8768-4f21-8ab5-7465048f2f92">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_c6c23e92-4317-4417-b02c-92cc34094cad">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_42aef741-3107-4b4f-9929-a401f94e9b62">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_463aa45a-183b-49e9-a303-02ffc28ce009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_22693caa-099f-4868-a628-ff8c8ada0ae8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_c59e1b22-1dac-4050-bfee-812d8a474946">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_344d26e8-6570-4982-89b3-7292adea1f4e"
      id="F_9c0ee728-a765-45d2-a4c2-74b9d04ad16a">&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;130,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_344d26e8-6570-4982-89b3-7292adea1f4e"
      decimals="-3"
      id="F_2bb9e15b-6077-4086-a7c3-25f3eee9d928"
      unitRef="U_USD">130000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
