<?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_218e4a16-4580-452b-bf6c-99ab52d42053">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_1400ed63-fa59-4042-9ba9-a89d5b22aa7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_026e672c-5c9e-4bea-a643-b1ca55aa7d7c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_59195703-9ee8-4d16-9444-dd8318166b86">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_3bf7e356-a948-49e8-8b8c-7339a163eef2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_d7d9e28d-5b42-413c-9e12-4e72a7271e53">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_a36d49c0-3990-4c2c-84b8-1eb2698b72a0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_86f33767-a87c-4cef-9b4b-569e6343df9e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_c7b71b91-87ca-4431-8978-a4070b0e4332">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_0cda7189-dbc4-41b0-9cac-2b7fd87ad91c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_218e4a16-4580-452b-bf6c-99ab52d42053"
      id="F_6ac07d31-d688-498a-a3d3-f5ff2ec22694">&lt;p style="font-size:10pt;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;450,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_218e4a16-4580-452b-bf6c-99ab52d42053"
      decimals="-3"
      id="F_9266b8f4-0b56-4f28-a70a-7807dd6c9e8c"
      unitRef="U_USD">450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
