<?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_0c63e3a6-6fad-4ed9-aae5-d54360686006">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-08</startDate>
            <endDate>2026-04-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_210373e9-a05e-4ee2-84c4-b75a60804e9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_f5c4cf03-0ba9-473c-b072-226965a307d9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_37757428-a4e7-4d8b-a978-f042ff4c3bcd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_7fe7ba04-77ad-4fc4-af79-88ca1e80439d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_a68b72b0-b913-42dd-a076-b8fe9f3b326f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_2ed41439-38b8-437d-bac7-274ca98d9de4">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_f0a4fc1f-4685-4c20-96e5-0b8aeecebced">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_19fbc1a1-3794-4a8e-bce3-391ef1b8c7ab">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_f735340b-44c3-47e2-aada-3192e81b09be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      id="F_f79358cf-97f9-40d1-b050-07a3d8e39a05">&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;422,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_0c63e3a6-6fad-4ed9-aae5-d54360686006"
      decimals="0"
      id="F_d9914083-1e72-4740-81fa-46226e444ec1"
      unitRef="U_USD">422000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
