<?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_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_c56975f9-f725-4710-a1e1-6fbe564ee80d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_3aef7dbb-5f27-43f5-b703-c45185689eaa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_d0f99639-264f-4e6d-857a-7f3b2bef9ac2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_d2398085-8724-4a82-ac4b-4b3fbbdbd693">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_25223fdb-a74c-4480-b39f-78655d0fc365">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_f9b6917d-9fd6-43ce-b8ff-e160cfd4cb81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_bac91c20-5ca3-45ba-b832-78bbd37de749">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_54177d34-5b85-4f36-88e4-a6cbc05a3731">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_b409b17c-53d6-49f5-845a-6d11a85e400a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      id="F_bc48424c-5722-4959-9f24-1de1d7baae0d">&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,000,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_6b27f3b6-0aee-4cfd-a47d-f81a638dc3f2"
      decimals="-6"
      id="F_f42248ce-e707-4fb2-bdf7-51083f9e5329"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
