<?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_a2e752fd-f9d6-4f07-bf42-b243af4f189f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_0729b1f2-4c9d-4f32-b3af-7e9f25ba8fcd">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_aeba34f5-d817-43c2-99c3-afeaa454507f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_90643122-6ce8-43fb-b31c-fbe4c0629394">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_c924c839-c65d-438d-bd81-0e1f04f8981f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_7949a7fd-ae53-4940-b9a2-bacb2d37e74a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_e67c08bd-d32c-4229-90a8-aba404ecb6ea">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_a6d10f81-225c-404c-ab5d-70c626ab42fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_1d54c3a7-e934-445c-8eb0-e7a29dcc6004">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_e437c044-cfaf-4fb0-8661-1c735b5950cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      id="F_985df358-3fda-41e9-95bf-ca91a2b40332">&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,275,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_a2e752fd-f9d6-4f07-bf42-b243af4f189f"
      decimals="-3"
      id="F_be4cfa22-61f8-4b6f-9f51-017e8b121f64"
      unitRef="U_USD">2275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
