<?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_34f3c94b-1da2-48cb-81c5-4a35a3726306">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_8d63d9d4-ea88-405d-9a9d-d2d21ea4148a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_aa0260b7-1e9a-4393-9b61-9ec18ec50773">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_914d3095-6420-42f4-af38-67a071fd9db6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_96121e76-a5ad-4fa8-a219-055f1c132266">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_d7eeb285-c729-429c-938a-a9a90144f348">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_8804f07e-53ad-4594-a714-b483f3d172b2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_f5d5dfd9-bd61-4f49-a593-7fc78b717143">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_52e479df-af9c-4f51-98ea-4a67c454ac74">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_96683729-c2dc-48ff-89f7-0676c045644c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      id="F_ad8e87a7-300e-4987-b435-f6c4faafcb61">&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;61,561,910&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_34f3c94b-1da2-48cb-81c5-4a35a3726306"
      decimals="0"
      id="F_f6450efa-d26f-4f02-b734-8986170b1a84"
      unitRef="U_USD">61561910</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
