<?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_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_b3aa8ae0-5f2f-4860-9444-456a6738fd38">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_f5c77bbd-5889-4561-aeb1-8449db4a7dd3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_b13ab97e-f45a-4afe-aeef-f2acc8588e45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_b97bc885-3bb0-4e9e-97d5-1a3b3ed8b7ee">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_433868b7-f9fc-4167-9b52-fd4398f7e92a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_6960be3f-d801-435a-9e99-dc7c4772eb58">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_76fb26eb-b90b-4d95-abf1-8cf2b9a645e8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_2ce508cf-12eb-4a58-a71e-724923f05040">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_b7c1f5ed-bef3-47ad-b657-5bfce9170123">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      id="F_f0c022aa-1f97-4d55-8c73-c6db2dd0603d">&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;736,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_bcd7ec39-fd96-4ff6-80f7-1a5388c775d6"
      decimals="-3"
      id="F_1832f560-388b-48eb-8570-13b62f8486fd"
      unitRef="U_USD">736000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
