<?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_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_2396b075-aea5-4631-a182-8fb5e6930b27">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_55cda018-7d10-469b-a39a-d640b8e41dcf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_2daaec4b-5a79-4859-a1a0-6009c7760058">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_645d766d-5a35-47af-a1a5-47d82cb60bb9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_ff414953-d687-4048-aa03-5eb685650217">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_2075246c-91cd-4145-8d2f-917a0f65c554">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_607a02bf-8217-4c75-92b9-9b1d03539fb0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_3eacd8c3-524e-483c-80b1-baefec0eda03">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_f4b9f006-0da4-4ec3-b449-b820c7af98db">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      id="F_03a74395-3d3b-4c7d-acfa-ae6735fcd939">&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;1,357,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_b02f03ca-ee7b-4c82-9c07-a5ceb299b84a"
      decimals="-3"
      id="F_3fcca328-b386-4781-8d6e-2f201c98c0c0"
      unitRef="U_USD">1357000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
