<?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_72ad5b8e-9bd3-4991-be06-f2f635a3e09c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_3d395101-09b2-4e47-b7f3-26dd8cc443ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_7d5adc71-f2ae-479c-931d-4f9e5c8038ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_d3f8a16d-3027-4f89-b414-c27bccd47765">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_faa76181-861c-4c18-9a72-808ed72c5e06">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_77734637-52bc-429d-ac36-e0da09cff661">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_2ff7a1fb-342b-4c6a-9292-82eb3b8f1dcb">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_80c8ee07-5d80-4c39-a127-95449580e787">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_7119621e-981e-47e9-b2bb-5dbd1827da3e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_855f7c71-a8ce-446b-a014-980c9088d2fb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      id="F_0dfa9af0-cbf3-4812-a09d-471917d2f9ad">&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;2,335,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_72ad5b8e-9bd3-4991-be06-f2f635a3e09c"
      decimals="0"
      id="F_400a007a-5db8-4cc6-9ee6-8446d00e7ad9"
      unitRef="U_USD">2335000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
