<?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_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-19</startDate>
            <endDate>2025-09-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_d65ac70d-9a99-4882-b279-0e0cd05c65d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_9e1deedf-ef15-47bf-99c4-264551b42244">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_adca32f9-4717-4cdc-b579-76a533a67779">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_9732435f-7247-4681-a374-fa4575c0a51f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_881cfed9-651a-413c-8a2e-5c744256d4bf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_4cbd0548-f39e-446d-aa50-7c0c69539f5c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_73e6198c-34b5-426a-a58e-90b558de76a9">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_17f92c03-6fd2-4ccf-96cd-8c408b9e4078">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_9d352611-0588-453b-923f-0abb1876470d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      id="F_d48e088b-ff69-4137-a8eb-2188b754e435">&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,000,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_453020bc-12a8-4d8b-b51b-e15aa6a2ce9b"
      decimals="0"
      id="F_760ffd5f-9340-4382-b25d-3324aadab3ab"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
