<?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_eef92b24-7f73-4651-88d3-5325aad56479">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_e992de7e-14cc-44de-aabc-6755708e17ce">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_b254ecd5-f689-4c25-9655-fe9325e4c040">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_59cc3ef4-4e6a-4bea-9a83-6f0a9043a0e5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_5bb23cea-b84b-4896-a1d6-b23cab7f5dbb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_7f386904-340d-4b41-b43c-985b950e6f7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_98c01a22-e5e3-4450-adf1-73b009e115b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_f627a298-014a-4362-8cb8-f4ecf1292b91">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_69329d61-64ac-4d62-aa62-5222aad41bf1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_67369edd-bee4-4ee3-8d0a-6485b38fa12b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_eef92b24-7f73-4651-88d3-5325aad56479"
      id="F_bd36e117-7419-4d3b-9e5f-26d6cef3a07e">&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;795,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_eef92b24-7f73-4651-88d3-5325aad56479"
      decimals="0"
      id="F_e7170c6b-6fa6-4378-aee0-aa5680988132"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
