<?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_b2215ada-26b5-40f7-8159-2a46bda05c50">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-19</startDate>
            <endDate>2025-11-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_cd272346-fbc0-4343-b3fc-68361da0bfab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_d03ada4d-6d81-4f58-b5f3-6106043fc9cf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_2ce8c89b-2a6e-4825-b398-b79fb3bf0249">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_9eb6a529-b9a6-42ec-a9fc-ebeef72768ce">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_7ea85cce-eb03-42a6-b0ce-cc69b97b2804">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_2daf02db-f2c8-4524-8e99-a0c4078cc1d0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_578fa85f-06d6-4d01-9ba5-af3ce16c9d97">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_f2513104-7183-4544-b71a-4c61cb811c80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_03684bce-7fd1-4597-8cd2-8fe915350a48">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b2215ada-26b5-40f7-8159-2a46bda05c50"
      id="F_c022b48a-19b5-46c8-a7b8-c0e4a76590ed">&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;1,274,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_b2215ada-26b5-40f7-8159-2a46bda05c50"
      decimals="0"
      id="F_14749d0d-2ac8-4682-8ff6-eae19bbeffcc"
      unitRef="U_USD">1274000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
