<?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_eab5859b-a2f2-44a9-9244-4d39a39c3563">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_749b981a-25a8-48ec-b57d-0950e2b73961">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_84f49c86-3099-4e67-baf8-a9b73ad8327e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_a09aec92-65a8-4603-9e3e-cfbddcf03634">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_d6d98919-2440-405b-a5e4-1215481717d3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_be200bad-59b1-4f86-82d2-6c0bf26d2f8d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_3fd63080-d519-4c73-bb9a-c2a31f781837">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_afddaa2e-c7d5-485d-8840-31bec4171bdd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_03a250c5-eafa-4606-a4b5-fc7e64306539">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_2b59678d-26d4-4639-be08-8c49e0431411">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      id="F_5814465f-68f2-4111-99d6-e83cffc1fe90">&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;253,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_eab5859b-a2f2-44a9-9244-4d39a39c3563"
      decimals="-3"
      id="F_7bfdda12-a68c-420f-9e02-b85402c654ef"
      unitRef="U_USD">253000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
