<?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_343841e2-bee3-4c99-8274-c69a3c78f9b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_ca8b4473-c964-418d-bfc8-9fc19fbb215a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_14753455-1444-427f-b41c-70c2a2474c6b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_aa2f1e65-c3cd-43e1-81cf-41b9e98858e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_13f66f39-aece-4095-9f88-28488de6f08e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_a06a8e20-4123-4443-a0eb-e7023f9a9a84">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_12076306-1b31-403c-8a2c-d27398f475de">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_8aad0984-0660-44da-8d52-7422be9fff57">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_bc1bdce7-f205-4e04-9ae6-76f272ddeeab">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_2e00dcc9-12a7-41c4-ab9e-6f9569210025">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      id="F_16b62a1d-546f-4add-b587-733373528959">&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,573,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_343841e2-bee3-4c99-8274-c69a3c78f9b5"
      decimals="-3"
      id="F_8906d0bf-88ea-4597-8bf5-6c9372e9cf30"
      unitRef="U_USD">2573000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
