<?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_34918e1b-018d-4a13-9a00-10c431188a4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_757d8df0-bf51-418a-bd02-4550bb924c24">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_ba27e31d-2687-4424-bd41-cd10db9cbe1f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_88d5e99f-d8cb-489a-bddc-e46a33dd9d96">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_f8f35be7-6c20-4c73-998d-a5e06f411856">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_82fd7a72-7185-4ed4-9129-40f2072ffa0a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_5affe7e9-ddcb-4e5b-888e-df3251b85a14">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_37ef254e-4f4a-425a-ac90-2d124f725612">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_58781100-2566-4956-9468-25bf9196e23f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_4269ffd5-1f51-441c-b4ee-f2dbcfdefdec">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_34918e1b-018d-4a13-9a00-10c431188a4d"
      id="F_db0b55df-9c50-4ee1-bd22-487db27b6e8e">&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;3,424,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_34918e1b-018d-4a13-9a00-10c431188a4d"
      decimals="-3"
      id="F_62661608-90a0-433b-ae5f-c506c48fd039"
      unitRef="U_USD">3424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
