<?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_41e5e2ab-b4ce-4fdd-8470-20518888f35c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-29</startDate>
            <endDate>2025-12-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_362a5779-8f68-45e9-9a5a-0847af8d8e8e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_0a31f366-a236-40c8-92b1-dc2c27b18ae3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_d25fc35c-b9ee-43d9-bde8-cd1f756eff21">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_bf7d8bb8-7d67-4f6a-a217-53cb1660e63a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_19eae16c-65b2-4bdd-a317-49d994bd6e86">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_b04bb8e8-152d-4359-9504-f0113b7b54a3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_c5a95ce1-eeb5-4708-a371-004ede798de2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_93029c6d-71f8-4dd7-b7d9-bad9d8e8ebd6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_f1833c5e-770f-4640-ba6e-6d4c51f437bc">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      id="F_4a52ba5f-d334-45e2-9946-d26bd484c51a">&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,032,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_41e5e2ab-b4ce-4fdd-8470-20518888f35c"
      decimals="0"
      id="F_9b68f1b9-f6cb-4818-96d7-693842a8cd25"
      unitRef="U_USD">1032000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
