<?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_9c8fcd74-a21c-409b-a234-e53a138e83df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_a119b5a6-b165-450d-9989-c4c527ce7956">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_5accf6b6-98a8-4076-ba13-eef525fc5a43">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_7243e9f6-0b19-4bbf-99fb-3d88a2182f37">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_1791f095-a29a-4c8b-9aea-0637c1d82542">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_61162d1d-49b2-4b3c-8bed-43a5b5a05f8f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_3d0cbf7d-e173-4d1c-96e7-077855c9f85a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_a9564588-1eaf-4804-b61e-6dc5d6d0aa51">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_e8a20e71-66a1-462f-98f4-202370f768de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_434956c9-a201-41e2-a0bb-a017cd05554b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9c8fcd74-a21c-409b-a234-e53a138e83df"
      id="F_5e5516a5-65bb-4261-ad0b-98652984d1ff">&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;3,299,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_9c8fcd74-a21c-409b-a234-e53a138e83df"
      decimals="0"
      id="F_d28a0de2-1699-4123-ac8f-d42ab2d0d9a3"
      unitRef="U_USD">3299000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
