<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_f283092a-d0ea-4619-ae28-14b9940c6256">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_323aed79-1903-4005-9d5e-fcdf198a8cfa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_84222dba-ca6b-4992-9d48-a7dd35922c02">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_72bd43fd-1e1f-4bee-a085-01f7435d84f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_bde8cc2b-5c98-4d80-bf59-c4ba5d0431bd">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_a7bb9e94-b480-4ece-8b80-b6d684b86f06">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_5b24105a-b00a-4112-96d4-2584879aee07">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_ed62c048-6a4b-4e95-be48-b69924f5f332">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_dee82d3b-623a-4029-9710-79800a46190a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_8e914f67-0459-44fa-b1d2-7e6b084f194c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f283092a-d0ea-4619-ae28-14b9940c6256"
      id="F_9b31a96d-6fd9-446f-8be5-cac5f358a01a">&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;12,613,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_f283092a-d0ea-4619-ae28-14b9940c6256"
      decimals="0"
      id="F_98df3372-89b0-4719-8fff-2d839a2c3cdf"
      unitRef="U_USD">12613000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
