<?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_ecd4f565-82e1-414b-a99f-8c428288b0c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_2768b14d-1ecb-48f3-be7c-b63b6b3149c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_397f9d35-fd26-448c-8d52-ae00107043d3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_122deb7b-fd9c-4ed3-abe5-17181972e23c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_a97105c9-84ee-4a4b-bbc3-fa90c230a62e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_bb417d0d-e18f-46bc-b5e5-3225b502ab01">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_c9532c68-4633-4d54-afed-a2c640139299">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_ef8f9ab9-9e29-45cc-878f-44a66b357b7f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_2b4fc045-e23c-4a9d-ae95-b59a74ed8def">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_6d70e76e-fb49-4aa1-b624-b20ef3f840b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      id="F_6b50ec53-3c58-4634-ad66-0388764b22e6">&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;250,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_ecd4f565-82e1-414b-a99f-8c428288b0c5"
      decimals="-3"
      id="F_672940f5-79aa-46f0-809e-7e30b9cb770e"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
