<?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_6af133b3-6d9e-4778-b4e9-b83e3c9a185e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-05</startDate>
            <endDate>2025-11-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_9a4f0abb-2814-46d6-9003-34c27e5f0a8f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_8101b879-0287-4273-a331-0e081ce742d6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_c541283a-f5aa-48c1-b699-7d04c640cf1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_14714ea3-d8af-4823-88d0-20053250703e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_a83cbe22-121a-4a3e-b45c-9b3835ef4602">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_8a232c6b-1031-45ea-ac34-f517ca5115e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_7cb8314b-2253-4769-bebd-2720f298e57d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_dae79079-46b3-4f5c-8325-1f16c7cbf023">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_588c5cf5-75f2-438b-b0d6-9e0cade0b97b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      id="F_cd2cab8d-719a-42a0-b996-b38d97261dbd">&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;832,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_6af133b3-6d9e-4778-b4e9-b83e3c9a185e"
      decimals="0"
      id="F_d7229259-c7a9-4cb8-afcc-c19e4fa762ba"
      unitRef="U_USD">832000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
