<?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_92098984-170b-42c8-8c6a-23a956abdefc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_72911911-6902-4ad8-8d47-6799e21ad56d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_61450680-71f1-4509-851d-e76e0a16dbd6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_6d1fb943-86c7-435e-828f-18aebb0effbc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_c40510b5-6fb4-4a4a-8820-823421b40b99">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_ed1246b1-ac48-40c1-bce5-d12bd2a30631">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_70b77a2e-6c4d-485c-bc1a-84da0d4748d6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_3f469268-e157-4efe-a579-45566f581f1a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_d19fa6fc-af4c-43c4-8879-3060ca23fb40">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_da93706c-1136-40e4-9802-96387efa9f89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_92098984-170b-42c8-8c6a-23a956abdefc"
      id="F_3c5bbae6-ee76-4c58-aed2-7e26e71d4248">&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;850,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_92098984-170b-42c8-8c6a-23a956abdefc"
      decimals="-3"
      id="F_a73d327f-ad8f-4ea3-99d2-0f4d2898db33"
      unitRef="U_USD">850000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
