<?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_58129e4a-a6b6-42f8-ad8f-078b803283f4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_392c41e7-7f2a-4f4c-944a-7f63771bfe56">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_9c49ddce-9554-46f5-8638-e66ce8d6fc02">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_52441a2e-c483-4edb-8beb-fd1933bb716b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_5abdfa69-a750-4a9e-8365-176c8b2d5ef3">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_c6db762d-9aad-4fb0-98f1-c9bfab9ac9d7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_9bd4a9d4-3d99-4861-9b39-0cb28ce0d77f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_7fae5aa9-18db-4952-a4d9-a6696e98a7ac">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_7e07206f-7a5e-4593-a509-8d4fcd63978a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_b67682ff-da3c-444d-8e7a-55043cc15050">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      id="F_023a76e4-bedd-46c4-b94a-3ee5b74b35ad">&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,089,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_58129e4a-a6b6-42f8-ad8f-078b803283f4"
      decimals="-3"
      id="F_05906ae6-7514-4b03-8288-0f6d310a49ed"
      unitRef="U_USD">1089000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
