<?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_164c95b9-6258-44f9-84cb-f2747b86c603">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-28</startDate>
            <endDate>2026-01-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_20badc12-3c99-4e7f-ab07-dd120d7a50dc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_2f02bdc2-93e6-4cbf-8ae6-b94037333387">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_36ffe832-030a-40f4-ab3a-8ac34d0897ed">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_f5794373-e0a9-413e-9ab2-264038b5eecc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_f410e313-f880-42f0-84ae-854de8f7507a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_23b9c569-458d-4338-886f-df7bdd59eaa5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_c27f6383-3bf5-459f-bdbf-7aa25e6bdb8c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_41d8898b-d474-4e9d-9b03-05d5a87bd963">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_63d39eda-f811-4cca-beba-500f0a7897e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_164c95b9-6258-44f9-84cb-f2747b86c603"
      id="F_fdd25920-cbba-4548-bbd2-870afb0de010">&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;3,134,800&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_164c95b9-6258-44f9-84cb-f2747b86c603"
      decimals="0"
      id="F_75b4b629-9550-4af2-9ce3-8337fc48fbb2"
      unitRef="U_USD">3134800</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
