<?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_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_68ab2117-9711-485e-bb20-0ab33f0042a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_5d820bb2-d49e-403f-9765-bc80f464b569">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_daf0c145-c0af-4f8a-adfd-ea33c05c535f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_113a1227-9690-49d2-b799-e7ef3b38a147">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_d38d2595-0f18-492c-a8f5-b9b572518953">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_a52f79a4-7e46-40bc-9684-2d975fffc0f5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_d6a6a2e5-1697-4d46-a18a-5e4011fbfe9e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_801ed684-b756-44b3-9933-b05538c2e860">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_d816c0e6-95f5-49be-8c59-67c3e86f67c5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      id="F_1691c28a-d94d-4b9b-bff5-83432ca69c2b">&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;646,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_3ab28b71-f0b1-4a30-a5ab-26ac782c8dd3"
      decimals="-3"
      id="F_1d0a9c1f-63a3-4bfb-a050-e56bf9e15010"
      unitRef="U_USD">646000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
