<?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_f548f3a5-030b-45f4-ad69-18e0a924d6eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_9f6b0696-81a4-4782-b0b2-a36573eadfe5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_063be829-3480-4af2-8066-7c7ce00b57ef">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_e796c9e7-a423-477e-9fa2-7fdf691c0d26">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_15f88fba-254e-4a74-bd0b-5672d0285c2a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_12e8410c-978a-45e2-ba4d-22fe948116dd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_e8d2af7f-4745-4941-bcc5-0b51bbd1077a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_22ce3784-64b0-4330-89ee-267b9415699b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_998a7f11-2eb5-4140-a4c4-02c7822362f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_5ad11a26-762f-4808-b140-7e854504e332">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      id="F_e116e9ff-e25d-4383-bbd8-62bb35bace83">&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;493,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_f548f3a5-030b-45f4-ad69-18e0a924d6eb"
      decimals="-3"
      id="F_23298be0-d919-4ae6-8732-b5ed82ad4249"
      unitRef="U_USD">493000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
