<?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_17d6d83a-8643-422a-8990-0baada42d17c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-21</startDate>
            <endDate>2025-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_fa938191-de73-4820-a27d-b85ddf7755d4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_e3a7fcd9-a85e-46d0-a831-fca0871794fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_7e9c2ecc-b3c4-45d9-b9b7-bbf7758e142e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_7457bf32-92f5-4f0a-85da-f818d55fdf0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_2a71bd9a-f70d-4391-a90f-69f54b1bd8b6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_ba7987bd-4237-4c59-9e95-0fe6c5d94b12">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_3ba7ef8d-e8f3-4a0e-aeaa-f7461fdd5c3c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_f6d213f3-cee2-4f8c-860b-18230894dc47">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_374d216f-4532-4775-bc86-23afb609e7ec">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_17d6d83a-8643-422a-8990-0baada42d17c"
      id="F_0ed271a0-3bb8-4b9e-a602-4ee3671d54df">&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;12,792,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_17d6d83a-8643-422a-8990-0baada42d17c"
      decimals="0"
      id="F_e437e5ca-67e2-4251-ba73-d1f3b2e6c520"
      unitRef="U_USD">12792000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
