<?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_6ea098a8-fd9f-41f1-b503-217d7546246f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_0f25ae18-4222-43f6-af4a-3f78bcfee46e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_8cd2e35c-d17d-4161-a815-68021ab45039">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_2d0876ed-a02c-4979-9351-3832e976b362">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_050f05a7-ab8f-41fd-80c6-d44f4d49b565">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_5d19793c-bb0e-4624-8b11-9fe4652788c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_3d46f93f-a3f6-47c1-b915-cd6d70ad4975">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_fba76f4a-70d8-42d2-80cc-ec7cfca5aa1d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_774ee9a4-196e-4703-ad68-b49f816da4be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_39d58330-67ba-4310-8513-ce3a1e4230c9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6ea098a8-fd9f-41f1-b503-217d7546246f"
      id="F_a6367f2f-bafd-4bea-807c-fe52da2c2af3">&lt;p style="tab-size:26.66px;font-size:12pt;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;31,391,830&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_6ea098a8-fd9f-41f1-b503-217d7546246f"
      decimals="0"
      id="F_2468b8e8-b296-4462-829e-a782cf673640"
      unitRef="U_USD">31391830</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
