<?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_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-26</startDate>
            <endDate>2026-01-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_c740cf2f-3096-4fde-91d3-88260e0c5948">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_9da5daf7-3b26-47b5-a218-a3dafad9aeb6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_5aaaaae1-ba78-492d-9d47-14d2775d21f1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_037c75ab-2883-4055-a2a1-bf45dbfcbc01">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_3077b1ce-8c63-4a74-b2a9-f6ae9cfa83ba">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_8c827a2e-fbe6-444f-904d-668264125c2a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_9a75f499-5954-452b-bc2b-7fda1c02e830">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_05609177-8d86-42d7-9179-ed3ea5d9190f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_8939ab30-590a-4c90-bd3e-d76129886b6f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      id="F_511c7de9-331a-4ba6-850a-7e8592fbc365">&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;25,000,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_1dc9a87d-2e06-40fe-bc38-d89f5b5df0c0"
      decimals="0"
      id="F_4dff87ce-a910-49f5-8362-3e7df13fd761"
      unitRef="U_USD">25000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
