<?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_a692af7b-22db-49ad-98cc-5124f6d11e31">
        <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>
    <ffd:FormTp
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_bb8e706a-52be-4771-813b-9b6cf63d1032">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_f148c8cc-77ae-4122-b967-773474c6bd17">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_62c57da8-7ff4-4ae3-8678-be39d7bb8760">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_25490840-9e3b-4c6f-ba01-3ec2b99a51ff">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_bb54ca01-b9d8-48c1-8708-325afbeeaa62">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_c03802dc-30eb-4b95-a687-e6db428c7df7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_6b6b0735-4d87-4439-8d27-5e79fbda0e73">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_eadfca83-1166-4a0e-8ebe-be8e6f0fc8eb">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_687424cf-a9b2-40ed-a76f-43dd56b94628">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a692af7b-22db-49ad-98cc-5124f6d11e31"
      id="F_5ee2b913-3d80-41c4-b069-22381a284ec9">&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;702,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_a692af7b-22db-49ad-98cc-5124f6d11e31"
      decimals="0"
      id="F_ef9ecf30-00f1-4f37-a94f-87d8aeebbdcc"
      unitRef="U_USD">702000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
