<?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_74aa3e36-ae40-4397-b731-c7bd62e169e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_c727aac4-2d20-4583-922d-1e7a4dd2e2f2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_4ad578aa-c8a6-46a5-b4cb-85ec895ea02d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_446b7f50-aa25-4971-b523-e29b7c8185b2">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_7f698f8f-8f7f-4000-9fdf-352123003af0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_e86905e9-2d46-4d47-ac7c-8a7c965de685">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_8ea0f11a-94bd-4e40-bc92-03d29ae229d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_aa448b99-75ae-47ce-a5cb-87957b1d531a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_136e4a59-d850-49c1-8936-b759955de8a2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_101f89ae-ca26-4a83-971d-acc1f73116b9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      id="F_d353eac3-8168-41f5-9473-0acce30c47cc">&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,718,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_74aa3e36-ae40-4397-b731-c7bd62e169e5"
      decimals="-3"
      id="F_41f0e12f-f1e2-4985-84be-90b28c852856"
      unitRef="U_USD">2718000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
