<?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_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c">
        <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:RegnFileNb
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_67ea2c7b-8ee3-498c-b695-a2dfe67f0f5a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_36075721-86f6-4542-949f-efc5f3d6a6c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_6da42b2c-cd95-4b49-90b5-84554fc9b050">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_d087d532-8663-476e-bf69-fb0ff6282a5f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_d140c41c-ac5b-4c7b-802a-8b72d1201512">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_f0571351-50c0-48ae-b26b-13427525a9a7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_dcb408fc-a0e5-4099-8636-f57643a49342">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_f588944b-cc72-4ba1-a3cc-e9d03fa89a5d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_a2e203d1-718f-49ee-96de-2f3821c85bdf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      id="F_b4762f3d-e75f-416b-929a-0d72efca361c">&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,110,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_e2b56cf2-0779-4ed6-bb1b-250ccf3c6f3c"
      decimals="-3"
      id="F_65f9fb64-500b-48e8-b721-1f7be6cdc9e3"
      unitRef="U_USD">1110000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
