<?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_0d68dec1-6d6a-4eda-bc69-d79c097a4674">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_62508943-1f09-4ec7-8c8e-a7d4503cd850">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_17edbcb2-6357-42e6-bea8-e717c3a56ce2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_05199fa4-4846-42e3-a63d-e77522d20bd3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_8b0b99d0-7ddf-4c84-8dad-8a2df7f42847">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_066ab7ef-b61d-4993-90b9-e814383dd56a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_3fea9517-456f-40e5-bf41-d7e039bc4b2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_fd79b64f-7f88-434e-abcc-e1b64764f83a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_05527ac3-bcb0-47c4-9fa4-ce9687fab713">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_f2a968a4-c911-4f5f-b52f-2df71dffa7f3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      id="F_498c6ccc-702c-4dac-9424-a171bc2e71c4">&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;7,275,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_0d68dec1-6d6a-4eda-bc69-d79c097a4674"
      decimals="0"
      id="F_95e10341-a03a-4a65-b623-549bde7d09b6"
      unitRef="U_USD">7275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>