<?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_9dbdc32f-d3e2-493a-a77b-63cd31f88432">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-30</startDate>
            <endDate>2026-01-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_078d39e9-df46-407a-88eb-b4a8087b75a3">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_87a7a199-725c-48af-8705-8ce0bd76d5fa">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_b2a04ab5-5ed2-4fba-acda-94dfb3e566ea">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_3381d142-d56c-4b07-9f57-fb63c1a35a76">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_e3e06059-d88d-4e83-a766-7a0f542451ed">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_bd106f4f-4818-408c-bf31-1336b631d472">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_edfc5956-02a2-48a7-8452-5add58c558d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_49fdf83d-2163-4d4e-b89a-4317f789be3d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_4480bf54-6ab0-439e-8d4f-65bb021263f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      id="F_48526132-9713-4c1d-b0bc-faa6970bf608">&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,500,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_9dbdc32f-d3e2-493a-a77b-63cd31f88432"
      decimals="0"
      id="F_06ce9758-d95e-491f-b838-5f37d8d47f40"
      unitRef="U_USD">3500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
