<?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_de3280de-78ef-42de-b9cc-26cb0764e250">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_03f34243-4f41-4d60-9f68-bb14bfca97dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_7ac8f508-d2f1-4ad7-aff3-f5cd21050c8f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_7d66077d-75d8-4008-83f3-6815dc830d41">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_91c2bcad-6d87-400d-a0d9-e3679168bd31">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_9df39674-3048-479e-b3f0-b4ec354a1595">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_743a4e5a-81c9-4c3f-a836-a9a48a9ed6a7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_162805e5-c954-47b1-9a57-c0f92ae1f8d7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_c7e89b9e-5da5-46a4-921f-a2167733701e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_fd691652-ece2-49f6-ac8b-800cbdf73ea5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_de3280de-78ef-42de-b9cc-26cb0764e250"
      id="F_85cf9865-d191-4045-b765-4776cfcb026e">&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;175,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_de3280de-78ef-42de-b9cc-26cb0764e250"
      decimals="-3"
      id="F_dcf93254-a1d6-4f40-a3d5-d94cfb155a1b"
      unitRef="U_USD">175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
