<?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_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d">
        <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:CombinedProspectusTableNa
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_77c346e6-ddf3-4924-8246-91333cd5f21b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_751c945d-74ae-4da5-b88e-42146b60fa26">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_00d16ef9-1971-4629-88dd-f15e20c81702">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_24530936-cfb1-483a-8d29-c865737da589">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_d73935da-a005-49be-8d18-429d3bbfad50">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_2ee35f10-4163-4cd8-839b-a1b62fa87ad5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_fd629323-be47-4af9-9fbc-8bb5927f069a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_dbeb9a33-c479-4429-be78-e92df46dd470">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_cd3aa456-91bc-4fb1-a026-d73c324a317b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      id="F_33f8fd77-c6e4-4ad2-83e9-3a059a53701e">&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;610,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_7cf43d0c-7b77-4943-ae58-5f77f52e6e1d"
      decimals="0"
      id="F_f805a3b1-ca30-4234-bb1e-0796a60077cc"
      unitRef="U_USD">610000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
