<?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_61085109-a00a-42ad-9a38-acd140bfffc7">
        <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>
    <ffd:FormTp
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_f2b8cbc2-7705-4588-acbb-cf7561273562">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_4913049c-8f44-4057-a54c-11adad3c12ef">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_ca2a6306-b7d4-4d2e-be07-673138ad696d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_9ad6ef4a-5d2b-46eb-a429-c78a8c269f8b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_2b81093f-bcfc-434a-ae3f-c78101550212">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_13238e80-ec98-4368-a465-5bd37478d92a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_a1b87315-ed99-4103-a9f6-a3307be933cc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_1d775f8b-11dd-40dc-aaf8-97ea639eb8df">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_db6e4dd7-c1e7-4cf7-a365-202cc381aefa">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_61085109-a00a-42ad-9a38-acd140bfffc7"
      id="F_a22ee496-c985-4e6b-8346-8a34ca1cd937">&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,460,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_61085109-a00a-42ad-9a38-acd140bfffc7"
      decimals="0"
      id="F_8d93128e-2230-4ed6-bcda-efebd8fe290f"
      unitRef="U_USD">1460000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
