<?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_0d56dddc-9faf-4430-907b-7224340e442d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_d722f1b2-8107-47ff-98db-7ff458a2ccc1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_d1c0121d-ac5b-46aa-9e3f-73032bacbc0b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_a38c4177-8447-4489-9c4a-f73c0ad1f89f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_8e1b6b56-1418-470d-acad-4d19a0a25318">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_dcf65323-f461-4f29-b604-4f32559edb1f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_42612e02-802b-4e0d-9fc2-f15fda7457e6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_ceb65615-1a6b-48e4-a0e3-68dc0adea2b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_b20caead-fa01-46c7-aadf-5882057c11dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_80f5d193-302f-47e6-aada-6dc220a3991d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0d56dddc-9faf-4430-907b-7224340e442d"
      id="F_c6208a23-f1bb-487f-97d4-53fcf3e094f2">&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,776,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_0d56dddc-9faf-4430-907b-7224340e442d"
      decimals="-3"
      id="F_b496a546-11c3-4f29-b2da-86885b36201e"
      unitRef="U_USD">1776000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
