<?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_37bfec17-bb3a-45c6-a07e-8fe10534a1f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_401956f0-7c4d-48f7-b8b9-3ecb55bfc380">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_e6b33488-c65f-4ad4-9087-d31f281360c5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_1c02b373-d940-4ef9-8f73-eb89c67e7925">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_3a18340a-bff7-4224-b4b2-3f55b45f627b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_5af65a80-b0fe-44a0-9aa1-0ae425c25356">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_3c36b5e6-203d-4638-b94c-4e53b2c42616">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_9ff070ec-e2c1-4e41-b51c-a7d84aedd5bc">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_d9e06c73-02d4-4d29-a811-0de51dec4d9f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_f90bcbc9-23ea-4c41-85a7-7bf967bda52b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      id="F_66733eb8-2179-4a27-9083-a4cf740003e1">&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;3,289,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_37bfec17-bb3a-45c6-a07e-8fe10534a1f8"
      decimals="-3"
      id="F_f784865c-1341-4c9b-99a1-b17d5267e843"
      unitRef="U_USD">3289000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
