<?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_a09be522-db38-43ce-804f-c8ce901efba2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_24b3f7bc-2f24-48bf-8177-04a845bf1507">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_85ec1e8e-0917-4b7b-8349-687fe1527e80">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_9aa3d65c-3042-443e-bf46-abfa0280bcef">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_8cfef620-fd2b-4217-b87e-9ec88a0029b1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_bb9b959b-d404-4180-8af6-71139b39d510">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_9c0dbec7-74cf-47f2-a91e-6aa7f166b98d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_f06b58be-acad-403f-9ee5-cc5eafde7cc8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_8be09a37-f40d-413c-bf60-17fbcc16f50b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_f905d0c0-e02e-47ce-b01d-82712ad9d945">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a09be522-db38-43ce-804f-c8ce901efba2"
      id="F_200e13d7-08df-42c0-b438-ec5975ef62fa">&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;14,064,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_a09be522-db38-43ce-804f-c8ce901efba2"
      decimals="-3"
      id="F_114247eb-7879-4d53-b316-a0042e0d3607"
      unitRef="U_USD">14064000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
