<?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_8e0402da-e694-43c5-9e74-adc7fc746f68">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_6b4eb737-380f-4296-93ff-2b184c2d1c52">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_14b5eb5b-ccb8-46a1-87ec-a561fda1e5e3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_07ac95ad-d315-4612-8264-67b37b1eb77a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_1590ff3a-1a2b-4ca7-bc6f-1131bd23170d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_0284aa32-8580-434f-97cb-b14e2ccbdaf1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_37afa37a-ea1e-4e68-9e4e-21d33141cc0f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_9b1a2bda-8b3d-4250-8f61-471cabcb9d21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_ebec8381-831f-4161-9d47-5ce6a911c871">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_3ec758d2-e3da-48ba-b878-92ebff689c91">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8e0402da-e694-43c5-9e74-adc7fc746f68"
      id="F_53050549-289b-4bef-96b5-495b067bba8a">&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,007,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_8e0402da-e694-43c5-9e74-adc7fc746f68"
      decimals="-3"
      id="F_bf38dc92-47cc-4181-a5e4-26121eb1bd10"
      unitRef="U_USD">1007000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
