<?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_0ce6ba7b-5632-4f87-99d5-8135c8aa720c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_aff14cc8-899d-4521-8cfd-1c83ccc6e2d4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_806dc220-e11d-4527-861c-f002c4ceba62">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_8bc41a22-7b9f-4f58-ad89-94ae11276b16">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_9efc7058-715a-4a30-a3f7-0f51798e1a7c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_7b746d08-692c-4354-89ac-0a47dc6fe725">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_415d49b6-2995-43d4-ac85-ef81dcdc13eb">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_b610e64c-ca1e-4304-b2f7-232490036138">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_32327e78-6dc5-43a7-ba43-d35dd0e1c15c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_1fd0e087-004c-4c3f-b294-7ecf3ee76676">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      id="F_244fd486-99fa-47a3-8d0a-a6881dbdadfa">&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,129,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_0ce6ba7b-5632-4f87-99d5-8135c8aa720c"
      decimals="-3"
      id="F_d6b42a9b-570d-4c35-998f-786e0f890c7f"
      unitRef="U_USD">1129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
