<?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_82f781e3-566b-46f8-96d1-711e20684955">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_79001bbe-21a8-45d2-8c35-3a8eb4991930">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_517701c1-9928-4a82-ab43-299e34fdcc11">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_a03d8171-5119-4c12-991e-37e220d499ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_541739f0-79dc-4d3c-b913-462c2d90a864">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_5a4ea2d3-973a-4b07-a037-2e0bd59cc92e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_0ba688fb-25e2-4e6e-b58e-f508dc53e72c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_2dd91d39-724c-44a4-a533-fff99991b66c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_eaca1492-7de8-4d25-be86-8c9ea3a5d381">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_0913ac42-4b51-498e-9394-a79d3228637f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_82f781e3-566b-46f8-96d1-711e20684955"
      id="F_432b0bba-1442-4bd1-a63a-d2c9c3cc8bde">&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;3,142,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_82f781e3-566b-46f8-96d1-711e20684955"
      decimals="0"
      id="F_0cd135f4-b060-4f89-b8db-413c3fd1c536"
      unitRef="U_USD">3142000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
