<?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_581dd4ea-c797-47d2-bd2e-bfcb942a9b57">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_5dd84e3a-4473-4d6b-b7c9-dce96e2f60ba">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_1afe63a5-02c6-459f-b81f-a4bb67071e0a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_6cf6eeb4-3432-4264-ad1e-21ca2c586525">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_136b16d1-0845-465c-bf5f-eee15efcd1fb">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_17856827-eb46-4a45-95c0-42c1f15e8a6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_0efd3c7b-4eb9-43cf-bda8-06a58e97c175">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_4086ecc0-3000-4d1a-8915-9e011d2adaa7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_5350674b-b365-45f0-9074-cecb8fd7a0d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_87b02c48-d5d7-4f8d-b744-67ec964c9c8d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      id="F_44cac209-8ac1-4d26-82df-1e5daca93a63">&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;1,000,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_581dd4ea-c797-47d2-bd2e-bfcb942a9b57"
      decimals="-6"
      id="F_ad091e57-a857-4b55-862b-5227ec654e80"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
