<?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_b8049a9e-6e06-42f8-9dd7-4b7ab2371126">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_dee874bf-5306-4937-9290-2be498717f77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_34e269cc-1549-412b-9a05-85ab5edbb0f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_f43ef5b5-0742-4000-8622-17249460478c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_020c8421-82fe-413e-a1f0-6f080278f4e6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_8f13c1c3-d523-4ceb-b772-d9661fa93202">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_3ef40ae2-602e-4e50-af2c-4ebdffbefd8c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_e041a479-6e5e-4627-b892-668af9caadc3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_48963901-0e1e-461a-b558-5ef2149ead3b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_fc8ca0fa-7556-430a-bc1f-52857bcad463">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      id="F_2e7906e4-e475-433f-bc0f-a6469c745d0d">&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;1,278,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_b8049a9e-6e06-42f8-9dd7-4b7ab2371126"
      decimals="0"
      id="F_3ecc0ace-3dd4-4a97-815c-75fefa9560ed"
      unitRef="U_USD">1278000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
