<?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_7298417a-0038-4b3d-ad4e-7eab0b210862">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-18</startDate>
            <endDate>2025-11-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_9357ccf6-13a1-4855-99c1-deaeb5bae076">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_9696b32b-a83e-47e1-865d-a18e4050d051">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_87396af0-7795-4a53-b185-ebbc186b9edd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_3a8659a8-eb66-48ae-bcb2-750e5d0f1424">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_05bf8a32-49fa-4223-8bd1-e12b35741021">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_7294788e-93ca-4c4c-8586-cc2737a4014f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_34ca796a-e9b6-4702-9c7d-1903ed341fc3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_5a5e14d1-2ab6-400b-89e5-f508f3eebb11">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_a7c30cbd-4554-4ce5-9bbb-65a9ae7679cf">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7298417a-0038-4b3d-ad4e-7eab0b210862"
      id="F_861450bb-aff9-4a44-8790-68dd6f50a67d">&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;545,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_7298417a-0038-4b3d-ad4e-7eab0b210862"
      decimals="0"
      id="F_c3f0a112-3136-4976-80f8-80c1c2db4da5"
      unitRef="U_USD">545000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
