<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_59ce3e66-62a6-4d61-8581-edfe34a5d726">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_aa11408b-c932-40a8-a897-b97a9cda66b5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_993d4d0e-8653-4aa3-bbff-3b147b1adb83">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_48e93477-3c43-4668-a330-910203d4e2ff">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_be03df3c-b4c9-4839-b1f0-40e86bbc297f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_49b587ce-5e10-42df-96d8-500365bd5ca4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_cf4c214e-16d3-440c-bd57-c466e33beb67">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_3b7d15c8-eb2b-4ed2-85c6-2a52a18ca559">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_796f13ff-ddf3-46e3-a672-ead0e32ba5e7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_2dfbfb73-3e73-4f17-bf90-0db59ded0309">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      id="F_d0a14b1c-7526-4e44-b6e6-5cc24aa0c231">&lt;p style="tab-size:26.66px;font-size:12pt;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,859,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_59ce3e66-62a6-4d61-8581-edfe34a5d726"
      decimals="-3"
      id="F_b633c87a-2318-4f97-bdf8-821828428dde"
      unitRef="U_USD">3859000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
