<?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_40e6b498-2933-42dd-aad3-001e65d73bda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_414df407-208d-4175-aec7-726769a73301">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_4f8924d6-fc2d-4a84-92d6-8383a3a1cd2a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_bea04953-12bc-4f6d-931a-0afcc33ec3be">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_9fa38428-c833-4025-b4c7-a08f3f5a4edd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_1a876a30-4a48-42de-9182-c336e012349f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_5a1e936f-485a-4bd8-b89f-480eb47bf5ee">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_de526747-0af3-461c-aed1-e21dd5291325">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_5ba773f3-d34d-4db8-918d-f0c71619420c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_b753a49a-5639-4d1f-8a62-56909028d8e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_40e6b498-2933-42dd-aad3-001e65d73bda"
      id="F_7722803e-1dd8-476a-8056-6e387116feeb">&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,815,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_40e6b498-2933-42dd-aad3-001e65d73bda"
      decimals="-3"
      id="F_40685382-30f9-48a2-a78d-6d081c0210e5"
      unitRef="U_USD">2815000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
