<?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_845eb477-1d81-4f72-9957-653f1fedc329">
        <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>
    <ffd:RegnFileNb
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_85389767-f397-4fa7-967f-8433d197621a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_e0d281aa-70f1-4860-9f97-d517cdd261d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_7edcb7dc-62b4-4ca6-b939-66b206a48baa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_7a856d7c-04a2-4f36-b8eb-60244bfd390a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_78d96dc3-6e54-4c95-95ae-86e50f91aee5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_c0d09c43-34fb-43c5-abe6-d01aabce81e8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_19f382dd-5197-4954-b0e6-01efb0c2ee5b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_3f728d40-7c3f-4207-9627-2dd770c5b6c3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_1a130b70-1807-4760-b1bc-707a1e8ee6be">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_845eb477-1d81-4f72-9957-653f1fedc329"
      id="F_19af9aff-0cbb-44dd-a5fa-e2373bdfe19d">&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;349,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_845eb477-1d81-4f72-9957-653f1fedc329"
      decimals="-3"
      id="F_b7b61266-935c-4067-9a3e-c0a4bf16c55b"
      unitRef="U_USD">349000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
