<?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_28b4e151-f94c-42e2-8376-d8924c65b451">
        <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:EntityCentralIndexKey
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_4beace77-85d1-404b-ac2a-3686e8ca13f5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_639ce90b-2ed5-48c5-b1a1-863258f13d0f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_2971942f-c8bc-4edf-af1b-2510abc5cab4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_3c672f92-d588-48a3-965e-1d6ca142d6ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_a6856e40-fb1f-4115-90c4-1e6b14b55e36">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_ac945135-3551-4322-906f-13ea4a21833f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_b340b421-7484-47c9-aea6-bdc27c4f740e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_a0d155d5-035c-4e84-9f51-ed61c91f7c77">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_9426b171-3476-4a25-bada-0ab71f183202">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_28b4e151-f94c-42e2-8376-d8924c65b451"
      id="F_fa3570f2-dfbb-4e57-b35d-0f7344a57cec">&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;13,500,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_28b4e151-f94c-42e2-8376-d8924c65b451"
      decimals="0"
      id="F_2d9f5a08-0198-45a8-a2b9-e770ec5f67df"
      unitRef="U_USD">13500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
