<?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_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_0ee1f70d-7556-49dc-a09e-92a7ddf090d0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_666109f8-de2f-4601-8a39-2dfbb1982737">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_ec2b8a02-9b9c-4014-a2f5-4cef341071a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_a158fdc5-d9ac-4a11-9901-831679a81305">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_164a1b1e-74f1-4a73-bb97-11c25deb65af">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_663fd4d6-d8c6-4054-9eb4-0f8d91f626e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_7e66dd1e-151b-4dc0-b0b5-e02a49fc35a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_dc569d15-855c-4445-bd14-c5eba2e5f7af">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_9e558944-e4db-4b0f-950a-4af1ea441f8e">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      id="F_1079e607-0230-4222-b812-10a51380befa">&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;720,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_3a1db8ab-ce4c-4b80-b3d8-93cd7f34ebf4"
      decimals="-3"
      id="F_3e7b2a67-1b5a-4bd2-b670-c4330ed0ebdc"
      unitRef="U_USD">720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
