<?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_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_8f06f4a5-7adb-4da3-8a34-2eecece54720">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_8097b5cc-89a5-4d4a-b48d-9ec572821790">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_55050bee-92e2-46de-9ef0-e5680802f234">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_39520c79-6e22-451b-bcff-385f2c1023ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_975fcd12-904c-4188-a553-49d9fda50b5c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_deb4e3b0-b47e-4c1e-978d-269fb3c80df0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_f4a437dd-e0fc-4a91-962d-43a9200b48a3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_c61ddafd-7b06-42d1-b342-c2fa1742300e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_b762cbf2-11fd-4a20-bfbe-3cf4644b1080">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      id="F_1fa7fd75-ea3d-4688-a7fe-814874329028">&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,478,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_ac8996d4-8a65-4933-bbe2-8fa58eeb5e2d"
      decimals="-3"
      id="F_a50ac7f1-5974-4ef3-a6f7-49d19c1e0032"
      unitRef="U_USD">1478000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
