<?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_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-24</startDate>
            <endDate>2025-10-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_fe239e23-a5f3-48f8-a1ae-8e21c0305a5c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_134f2631-6348-4486-9eac-ddbf3fd46492">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_c9b2ee56-67ed-40ba-b6e0-201aaf117af0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_b597c39e-aa95-492c-97a0-4b82e47b29ae">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_11628cb8-9365-4138-92d6-3fa4b189b0cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_232a20a2-1278-495c-a831-7f594e9ad9de">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_a50ccc4a-0827-48c8-aecb-8c874b45cfa2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_bc437144-9278-4143-a833-c9c9b4d58f6b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_0f1bd645-17c1-4d85-86e9-2d53f4a65bad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      id="F_5be4527f-205e-4fae-a57f-60be8abfebf3">&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;14,460,200&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_0ffecaf2-4de5-448a-81a0-8b93fb4e2dbd"
      decimals="0"
      id="F_3b941d0e-2768-4f43-96d3-3783f94f2209"
      unitRef="U_USD">14460200</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
