<?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_1a00e80c-b4a2-4c89-be49-f8044426a700">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_03fc9ad2-f159-461f-8937-86c63663deb0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_7bf670c9-c1ed-4feb-b9a4-b932e805cd73">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_aefe593a-f459-4e2b-851d-256d9cf83373">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_9c1d9d15-24fd-4672-b966-bde7c77eb42b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_70fcfccd-3a64-4579-8379-14e1e1f55cda">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_6290d481-ff22-4cbf-a8e1-495aec241537">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_09838b59-f2c8-463b-af4e-be502286895a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_587c8c04-10b2-42bb-8396-2eb889b6b60d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_c6806c53-56ba-4164-af8d-3f0a30614b25">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1a00e80c-b4a2-4c89-be49-f8044426a700"
      id="F_df696522-c30b-4986-b936-5eac98fa2e5e">&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,614,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_1a00e80c-b4a2-4c89-be49-f8044426a700"
      decimals="-3"
      id="F_6012d098-866d-4d6a-9ef2-ba3298c82e38"
      unitRef="U_USD">2614000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
