<?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_50090d18-72d0-47ff-9504-0dff2c61b0ba">
        <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_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_6fd0b7a8-cb59-4060-8c07-6ca86a9165bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_e2bbe0c0-22df-4b04-869d-87d4ae63d19a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_0638df1d-0bde-4e42-be79-dc8055e59b19">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_6ee74a7d-003e-4f7d-b11d-e2afbcf35935">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_e0f4efee-f5e9-46c9-9a54-335831e1e6b3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_4aee43fa-2430-415d-bd5c-fc7c8a395464">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_4abd6717-d28e-4f68-ae6c-f41cd3014b7e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_1b6ea1f8-5df3-4ced-8963-6c14236c2285">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_cdf13e97-e62a-4cff-8d7e-2baecd91bbb5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      id="F_610553e7-6491-459e-b1b1-645fc2acaa0e">&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;600,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_50090d18-72d0-47ff-9504-0dff2c61b0ba"
      decimals="0"
      id="F_1bd9b062-dd05-418e-ac72-bcb8c26b5da3"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
