<?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_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_b64c7638-f3dd-41c1-990d-2dce0926a4c2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_de8d3d5a-f127-4171-ab1f-900d6acab330">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_9e3b0414-f79b-42e9-8622-8bedb94797e8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_c36024f2-a95c-4c51-8ade-5819461fd74e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_ad34b120-1b34-42a1-9660-2e6ac8d616ba">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_0ea4117b-eb6e-4aa2-8976-24891ae6ac6e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_ab720a2d-9c6a-4550-847a-88cf15910dc8">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_63f4d9e1-11ac-4118-926f-d768fe44cf3a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_fa718e74-0fba-4247-8816-f6de06296d9b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      id="F_586b7cc5-1f93-4c93-9b6e-75c88c23e328">&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;275,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_03e5fbbc-7e1f-46fb-a3a4-87a0e937ea7f"
      decimals="-3"
      id="F_3120a0e0-40ca-4489-a179-85c3653f4ae7"
      unitRef="U_USD">275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
