<?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_75738667-de9b-466e-8a69-61e5e7a8e91b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_95e8061b-3d5c-4a74-b5ad-92ad7bc4cc64">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_1a88e0e9-d55e-4872-aab7-e7710115af3d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_46181c5e-e2c4-4725-8aea-716eb3583f78">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_e857264e-5ea0-4d33-b11d-5ee3e304b899">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_94e1152c-2d7d-469b-b723-a5c1d81e3ae9">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_37a17976-a51d-47a7-b805-c9b783dd8940">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_d33e477b-e5cf-4a33-973d-b9790c47ec11">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_72d995bf-1f11-4127-90c3-6a50c8a32bcc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_211ef87b-1340-4db9-8e77-cbdb3b927f19">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_75738667-de9b-466e-8a69-61e5e7a8e91b"
      id="F_e2c0193d-d7ab-4299-8d29-5e032111c376">&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;535,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_75738667-de9b-466e-8a69-61e5e7a8e91b"
      decimals="-3"
      id="F_535b1cf0-c29a-49a4-a81a-9a6794dec942"
      unitRef="U_USD">535000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
