<?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_f7a89e36-7eda-40c1-959f-707f8bc21418">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-06-10</startDate>
            <endDate>2025-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_e72bc986-62bd-4f8c-9a81-0dcf51eb0f8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_1aadec88-621b-45da-818f-591398f46019">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_35c08533-d308-47aa-aa64-605779f9d5dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_059ca3bc-2996-425c-bb8a-00309c942cad">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_a8356cb6-a2aa-422f-bca7-02ee6d3f769a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_895f35ad-ba90-4fbd-9356-b0e0cc2fbde5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7a89e36-7eda-40c1-959f-707f8bc21418"
      id="F_d79d6760-0ff2-4ee5-bcbf-d02cdb3961b8">&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;753,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_f7a89e36-7eda-40c1-959f-707f8bc21418"
      decimals="0"
      id="F_2be12f60-edcf-4ed0-b74d-76331dcff22d"
      unitRef="U_USD">753000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
