<?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_a4887b66-1aa9-46e5-8b99-8d8157a9363b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_d46fefe9-b4aa-4711-9633-b4d642e48408">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_626dc2e3-a161-4541-acc1-2e45e5d2d035">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_ea347661-19b6-4988-baf1-2a296ec5411f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_6ec5c9a9-0a7b-491e-8474-3b8243a96d35">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_17d8a65d-afa3-4139-84f1-f0ff691dbb18">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_07b32b20-49c4-4e29-94a6-3cd9e80f7533">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_6c909af9-fdf5-4593-aff1-59946a933627">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_2135065f-dfb2-4a6b-b448-13895469ba29">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_77934314-835e-47dd-8a87-f4196006ed07">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      id="F_c713b74c-b4a5-41d1-8a90-c51820c9e3ed">&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;4,716,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_a4887b66-1aa9-46e5-8b99-8d8157a9363b"
      decimals="-3"
      id="F_1df50fe2-3986-46ea-85c4-cb7c3af169be"
      unitRef="U_USD">4716000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
