<?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_db0f241e-acd0-4ddb-9b64-6246326735a3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_18fd1975-75dc-431a-b52a-3a1ee6192db9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_dee30b97-f0f1-4147-a53d-c2193a70a823">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_7a64e98c-1b8d-4bf6-98bc-4ab5e9eefe0f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_c7feae41-a499-41f5-bc28-cf81592a5656">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_1b6fb6df-0a6a-4cda-b55f-5fb876e61c40">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_2f9caf4c-4699-4b32-b1e8-f83f5bcafefe">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_c115ea18-a03b-4ec1-8046-d08776a452aa">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_91ac79e6-ea77-45f4-b236-9af6810ff054">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_b2684fea-e878-44cd-8691-bcd0c5526a1e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_db0f241e-acd0-4ddb-9b64-6246326735a3"
      id="F_121efb6c-d68e-4759-9923-f4a7038fb6ee">&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;4,555,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_db0f241e-acd0-4ddb-9b64-6246326735a3"
      decimals="-3"
      id="F_37fab24a-38f7-4c2b-aeb0-e9176f7bba86"
      unitRef="U_USD">4555000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
