<?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_28d7e213-d3d0-4577-a57e-690e61f86009">
        <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:EntityCentralIndexKey
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_ededbec6-c07f-4755-9bc4-fa6456ee8225">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_e4c16518-fdee-4c3c-9e9a-a4a61866bed5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_5c406c09-d83d-4f34-a548-d5076ce097d0">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_91a12ced-8f20-4718-8b5c-f12619d852e3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_41bbde61-0593-4a90-8cf2-a9633ca8ce0a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_780aa9f1-abd3-44bf-bf62-5f59130ff1a1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_b5796cc9-9a4b-4ae2-a521-800f58af6915">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_6a1755a3-603a-422d-abe8-b62864eaa0f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_5ef0358e-03ad-4d8d-84e1-0c8ff9a3d814">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_28d7e213-d3d0-4577-a57e-690e61f86009"
      id="F_add5ab84-029f-434d-91cc-b6325c4e32e4">&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;2,500,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_28d7e213-d3d0-4577-a57e-690e61f86009"
      decimals="-3"
      id="F_5d74dd6b-da05-4fd6-b065-fb37d64b1faa"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
