<?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_1657fffe-5cb9-47dc-b31a-d8395bb8ee17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_cd55bbcd-efb0-4ba5-a269-847dde9e1d53">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_0c17460b-f0f5-48bd-97be-6e1f7e886bd6">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_7aeb5219-87ed-4e54-92c4-fca641179837">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_0062e64a-817a-4307-a21f-fc71316ecff5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_b5981c4d-06f8-4cb1-8231-dd57d6d2ce3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_182d363f-38b0-43d7-8566-8f4db5640660">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_ebbe033f-4e92-4c7f-b995-885ebdb5174d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_ec56052f-0c11-4534-81ac-af5d41ead216">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_d9a19120-13fd-4374-a4c3-b34c181f88e2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      id="F_c938aaf9-7228-490f-814b-857fc64a1f9a">&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;2,425,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_1657fffe-5cb9-47dc-b31a-d8395bb8ee17"
      decimals="0"
      id="F_2d895261-8cf4-4166-8356-66c6c91249d3"
      unitRef="U_USD">2425000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
