<?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_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_1be65bc0-5a82-4a7d-aaf8-3013be3a58af">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_1926483b-0780-4f6e-94c8-72796b809d56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_d1173793-1255-43a9-b535-e61e1a5c4c9c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_acb0b163-6d9c-4cd8-96fc-47fba2dd2622">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_eccef63b-9cf4-47b1-b9aa-0ba1c8e56587">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_9cae68f6-8833-4708-bd1c-2d74620ff20e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_b6142136-0ce3-4eb1-aa9c-90e35fbc291f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_938b8000-174f-451b-a3d6-8b5d347cdb37">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_0898035e-b972-43a6-9836-34bc57eae8ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      id="F_e86c8f15-4f1e-45b0-ad19-8b3c75b0e8d8">&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;801,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_64b2e0ca-b487-47fc-9c48-bae2c18dc1ba"
      decimals="0"
      id="F_a30eadf8-cdc5-4a54-932a-41d5b4e228dc"
      unitRef="U_USD">801000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
