<?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_7d46be7f-8412-4048-bbd8-07117a61f31b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_dc2f4add-e246-40f3-9343-7bf31259a5f6">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_7c37e20c-170b-49e4-b9d1-db41f5e65651">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_3f48f3d3-5820-4277-b472-b2a08256cb10">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_84f5d141-34d6-4d1d-a6f7-a216a3c35141">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_5f9a46c7-210b-47d3-91d1-9e1d4da671c2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_ba77c59d-2538-4966-8294-e71e7cabb388">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_6a396384-2e0a-4910-9299-303a3df717ad">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_257fdfbc-4666-467b-815c-36b910942e26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_ce84d24f-98e3-45f8-ace3-ef752507eacf">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7d46be7f-8412-4048-bbd8-07117a61f31b"
      id="F_cd73346b-baf3-41c4-9947-79a24a9b08c6">&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;6,243,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_7d46be7f-8412-4048-bbd8-07117a61f31b"
      decimals="-3"
      id="F_7a064276-6f45-4367-beed-1e4a75871822"
      unitRef="U_USD">6243000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
