<?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_5000e564-670f-4b6b-8559-184cf2ba7137">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_aad81b36-9095-4312-be20-51700ec78a68">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_cf40c1d0-affb-4ec6-93df-fa5b4cd68c8b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_d36ba952-1c1e-4904-9d58-cb419ac30748">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_ae824f71-cb09-4233-82d9-71f6ab37687c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_71c52430-763a-4bef-a5f4-8c31ba271a41">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_59f94599-2a88-4427-9e1d-98a8da198d47">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_6ea2c927-25ae-452e-a87d-7dddf94355f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_3378f403-7bae-4b53-8f09-eb2f19ba2fd5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_559fc807-1a8d-4a9e-a3ee-aa8572e43a5f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5000e564-670f-4b6b-8559-184cf2ba7137"
      id="F_971d3c85-e66b-40c2-b05a-7fd32b8828cc">&lt;p style="tab-size:26.66px;font-size:12pt;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;7,810,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_5000e564-670f-4b6b-8559-184cf2ba7137"
      decimals="-3"
      id="F_ed4b2a69-8c95-4900-8025-26dba1b9c4c5"
      unitRef="U_USD">7810000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
