<?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_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_b01ae25d-7906-410d-a1eb-9ff13434d9bd">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_72a4300e-9a01-4206-8430-7408c665e8f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_1c0092ed-95f1-4226-b5f0-16572023aa89">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_2db9547f-3a05-4557-8b1a-5667131f8d77">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_15a77b2e-ad47-49a8-88be-bd065739f98b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_4c71715f-07ee-461c-bdf6-e99b1aff8d41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_66ca7924-ed7d-44db-9e2c-195a32841e17">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_9a8cb093-efb6-45ce-8c30-00875816e59d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_c801843e-fe44-4203-9dff-bfc81d648ebb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      id="F_f41e3ca2-4c39-4989-9683-a406da9b5120">&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;2,535,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_8c0bd6f4-e7f7-4349-8969-b1bcb58fab37"
      decimals="-3"
      id="F_baf86006-f7cb-4614-8322-8cd661f4f6c8"
      unitRef="U_USD">2535000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
