<?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_2d1b29e8-4f8b-4584-bbea-78942cd19da4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_b9b3c3a4-bfa5-4b30-bab3-49e1be95ef60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_4377b13e-96cb-4862-9a09-e73baf13c8b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_b785a00f-e33b-4027-aac6-abfb552f1fde">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_0697b6df-0e12-43de-9a56-dd135a3dac29">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_e7a8a138-372a-4123-8be2-453b57fa6f54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_9ef1c207-8afe-4ec5-bfae-0bff287dc4ae">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_7d2be322-d139-4365-90b2-a3d90ea353d5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_e1168bbf-1eb8-4f87-87c6-6758d679783f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_ea9c1bce-28c6-4ed5-a07d-76576fffed41">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      id="F_1fe3eb86-9baf-470c-bf83-6fe9b93d4f5a">&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;4,095,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_2d1b29e8-4f8b-4584-bbea-78942cd19da4"
      decimals="-3"
      id="F_2c48c2e6-61fd-443f-bc05-78db202d18ad"
      unitRef="U_USD">4095000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
