<?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_d3167da1-fb8c-4817-8139-f6952c077c9a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_5e4af0ce-1d3b-4c4d-8b78-311c107b8d7a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_177676ff-c446-4a04-b311-6db8a7ee333d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_f34ad23a-8ac8-4127-a8c7-c493eeb08f5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_6680a10e-affb-4a9a-82a6-06e7220d8dfa">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_a7ab5873-e21e-4e2d-818e-cf6dcb3993ba">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_58856a71-656f-498a-a661-0dd454e0e7ff">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_bb9e7cbd-e26d-45df-956d-7948fc129b5a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_29a00153-2a73-4d4c-8853-00677f8806ec">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_90bde148-90c1-4088-9d17-99a8dcc6d753">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d3167da1-fb8c-4817-8139-f6952c077c9a"
      id="F_707ebc69-6b47-40f9-a9ae-4bb52a82003b">&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;66,639,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_d3167da1-fb8c-4817-8139-f6952c077c9a"
      decimals="0"
      id="F_8e4ab704-a214-4ed0-a9b0-9b97a64b0319"
      unitRef="U_USD">66639000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
