<?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_e5ac290f-6492-40a3-ba36-33fab7003a9d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_a705cd07-2ed1-4fc0-9b30-179ab49e165e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_fb489496-c082-42d3-976f-5feaffbf8717">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_b3f78151-9390-4f4c-81fe-f6fca12ac4f9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_75bd20ec-dc5f-4509-a529-d4d31137ad9c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_c13fedf9-d685-4be1-82c9-19e25e08b838">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_969beffc-720f-42dc-bc85-d6a6a934f268">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_ea8bdb49-c395-4091-8376-67cd38e08179">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_f0f43aac-49b6-4b8a-a17b-e5f72dedf8ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_47fe7d2c-f95d-4810-8536-9d961edda9eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      id="F_64d56649-e4e0-4aae-a858-941ebf49cd1c">&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;3,888,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_e5ac290f-6492-40a3-ba36-33fab7003a9d"
      decimals="-3"
      id="F_89353cda-a712-4a35-9fa8-dfbfcb6ffc1c"
      unitRef="U_USD">3888000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
