<?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_ba358eb2-003d-4538-97a6-f21229ab70d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-26</startDate>
            <endDate>2025-11-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_a0511dc1-763e-409c-983c-e7dc28507fa4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_614afdb4-3e8d-490c-b5c8-757042e2ef13">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_5f9ad6a0-7cfc-4a12-91d2-028318b5a636">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_7bff9106-c72a-47c9-98f6-5775436320e2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_122e54c2-faab-4c95-8242-44bbeb6c5a61">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_3cb5d84c-f31d-4bc1-b348-19e5359ecb24">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_f7b3eb3c-181b-435f-a2a7-5757d0cf9509">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_24c1b6ec-2971-473b-917f-3680a99e0846">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_7878c306-1512-4a26-b42a-085a6b6b8747">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ba358eb2-003d-4538-97a6-f21229ab70d6"
      id="F_35924753-7c1e-43e4-8e7e-26ddf2c21d37">&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,234,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_ba358eb2-003d-4538-97a6-f21229ab70d6"
      decimals="0"
      id="F_c18f712b-9caa-4f41-a377-a2c195f96977"
      unitRef="U_USD">2234000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
