<?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_789f3ec2-76ec-40ea-972e-c301c159839f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_31f90bbf-a2e4-40ae-9a09-8e2befd1ce11">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_26a00bfc-b2ff-4837-b90a-414336c25a62">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_3782259c-67c1-48a9-8047-bb2374852d83">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_0d80b7df-c30f-4aa3-b283-b31b5dfa3fee">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_f8a62430-4273-439f-b36b-8ae5047614c4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_7f1e0428-1ca8-48dd-98b6-adf8a3f72566">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_1026106d-9095-4393-9563-4c6bcb2cd61c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_249aa48d-04d9-41cb-83b2-9db416ed4763">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_1b17e68c-f1ca-467d-b312-ad00cc8d3279">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_789f3ec2-76ec-40ea-972e-c301c159839f"
      id="F_126e02ee-0965-40ad-b08b-7a7e0a74ed85">&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;2,000,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_789f3ec2-76ec-40ea-972e-c301c159839f"
      decimals="-6"
      id="F_7bc4823e-9a62-4399-b328-d6cc8c55fb82"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
