<?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_40985bd4-6174-42f6-90c1-b4589d6af427">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_844edf30-7337-430b-85f2-fa7906687100">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_5d52ed2e-cdfd-4664-b8f4-9a7606867217">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_d0a75e6d-7efe-4a79-b1dd-ff10fc262354">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_e4d13f42-a0eb-4c14-977f-308a445abbb0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_cd620041-9dfa-41ae-a4cf-4d7efdc9c175">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_d066fb6c-0670-4a89-b5f4-f6b5b868b3d7">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_744c4dde-165b-4044-b21f-caf9ce8cf296">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_16097691-32b0-4d5f-abad-5b56e2d64878">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_149c578a-94ae-4722-82a5-74c37190ec72">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_40985bd4-6174-42f6-90c1-b4589d6af427"
      id="F_f2fcf4e0-b448-4ef4-8613-3c7749dd2c22">&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;1,250,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_40985bd4-6174-42f6-90c1-b4589d6af427"
      decimals="-3"
      id="F_98befd5a-3fe1-47a8-bdb7-7b311091d123"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
