<?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_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_4cba126b-5807-4e93-8f93-76a5726ec021">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_4b684bcb-d6d0-407d-af77-d535baa97aca">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_ad2cae1d-979b-4fca-9145-6501490735fc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_544c8d10-195e-4afa-900b-97383a75d82e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_bb0f42e1-ab47-4603-805c-08152d847cae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_b2d73705-436d-41bf-adae-36061d760712">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_a13c8f82-6ec3-4d83-b4eb-e32e0e82452c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_4cd68415-4330-455f-85d2-a200ed7d4c41">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_c378af96-cc8b-40f8-9fab-eb0d622883fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      id="F_f6f0ba5b-4ee0-4b95-9690-e857a6212723">&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;1,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_fc55fea4-d8fc-4995-9ac4-ee2fe840f50f"
      decimals="-3"
      id="F_325767ed-fd59-40bb-ae02-fc5f748387f4"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
