<?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_2a62892a-c7a0-412b-b8c7-1215f954dafb">
        <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:OffsetTableNa
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_fa714448-00d2-4b38-a77d-6c0e7024d15a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_ed51d988-c209-42d3-be05-6c1aad46e22b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_75e370c3-f775-4268-9372-df958832fcc4">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_2558bf58-69d7-4477-9fc0-a96ea887fa16">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_b6914947-4a5a-4ca6-a140-220a6150c148">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_161fda22-115f-4068-9572-f8734b18d957">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_11ebf1f9-58f2-48b9-a96a-660d88540e7f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_f226ac73-f00f-4192-8456-07d95862f756">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_e5210358-7c5b-4955-b420-c9b931410284">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      id="F_962536f5-2e41-43fc-ab1c-a86a655536e2">&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;11,824,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_2a62892a-c7a0-412b-b8c7-1215f954dafb"
      decimals="0"
      id="F_b55a42cf-1f8a-4d84-b14b-3744c64bd74c"
      unitRef="U_USD">11824000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>