<?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_574d2a8c-6b45-4789-9796-1ddbf14c2e5b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-12</startDate>
            <endDate>2025-11-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_8f411de7-59dd-4978-b3de-bbf52f95f025">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_54bf7a8d-0fb1-47e0-9fb5-3466b6e671ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_e74f25a2-5e4e-4e8e-90c0-f3df3708f440">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_6452043a-e9d1-40a4-9eb2-d34fdbc3a8fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_95a0cb5d-a491-4dae-ae9d-630a93132d70">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_b489f8d9-b0b8-412f-9790-c7597c802726">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_5f3dcfa1-d44c-4bb4-9228-37ebff5ea30d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_db65fe78-9fda-4e4f-a6fe-87c4ab054e72">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_d8e920bf-9889-4af2-87a2-b2c69088e261">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      id="F_5340718d-7989-4728-863c-c3d47247c9fd">&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_574d2a8c-6b45-4789-9796-1ddbf14c2e5b"
      decimals="0"
      id="F_ea8d1b57-551a-4ae6-9ed2-68ff7ed758a8"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
