<?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_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-27</startDate>
            <endDate>2026-07-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_b4d3f43e-5339-44c7-b75a-17019a1d68a3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_76679329-605f-4be2-9dd7-8884745809a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_817b5411-980b-44e8-8fa4-d2df532f4dcd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_9522bdca-a5f8-4031-b631-406ecfe02cb3">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_257c63f3-4365-4c29-8ed1-f61aab9ef15b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_cc00cc6f-e729-459d-aa81-90c8fa3c12ec">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_5d93ddbc-155e-4186-a2d2-ceb79127083c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_04e3705c-39e9-4907-95ae-bd2905e284ce">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_daf5d24c-25a1-46a2-b5c7-996de31ca4e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      id="F_5e332e05-fb56-478d-9e4b-e8a6abdfda79">&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;1,637,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_ea3c5aaa-4d1e-4c5b-97e0-f96ea478e2a6"
      decimals="-3"
      id="F_160e5b02-caef-4581-9ce2-42b474d614fe"
      unitRef="U_USD">1637000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
