<?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_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_0c33150e-62e4-4931-9498-1cb8bdd0df56">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_a9dc7f66-488b-4836-ae69-85813189c4db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_8f1035ab-ec68-4e39-9766-5462c2c26876">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_b8b52070-f3cc-4806-8ef4-da044f9d9693">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_d2ca5c12-2b15-4abb-a304-2e99ff829c89">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_f043cd27-fee7-4707-8b49-5a1ed0df848e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_f846ceb5-061f-4ae9-a7ea-9544884abf8b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_e66f74a1-4af2-43c3-8a46-6724c5d2aa60">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_2e5437f2-6317-4479-b894-3ce0c88900a0">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      id="F_2401ce1a-b2d4-4aec-b416-ef8f59ed1618">&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;5,294,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_5a1e9431-0272-4e3a-8f4c-c60dd5a9beaf"
      decimals="-3"
      id="F_7facf33e-3535-4b0d-91f1-adbd77813304"
      unitRef="U_USD">5294000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
