<?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_b45931d7-db86-4c9d-a096-7ce3285a38b1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_3a7fc6df-7468-4ae2-8cea-69c09a871c4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_d8588bde-1857-45f5-8846-961c1edb5848">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_992360ec-c726-4e8c-b616-9b2c9b401a0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_d32244ab-55ed-4927-9545-7ab890884894">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_f491d12d-bd26-4477-a883-f47310525712">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_32996817-3e7c-4663-98ae-6a930bc9353e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_0bd40d26-fb45-469a-a428-2d80bd580a6f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_585845a5-8a4c-41b1-8d40-117323744a4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_fccdb3b6-f94e-41ca-971a-b646b287f9fb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      id="F_9fb966e5-b40e-4eff-b1d2-1539feee9406">&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,662,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_b45931d7-db86-4c9d-a096-7ce3285a38b1"
      decimals="-3"
      id="F_c045fe55-b641-4a75-9628-6cc7155f6243"
      unitRef="U_USD">5662000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
