<?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_b5a6786a-0f0c-4082-88ea-628014d4c477">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_af7fb0f8-3f43-4ff0-8457-d9214eb49182">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_6362c878-784d-4c95-966e-20a3ba9bb89c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_fe487a9d-62e3-40d4-9753-737df72f32af">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_68b1eb4c-10c5-4261-9c26-37ee26c2d741">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_2f5161bb-73d8-4046-8448-b0dd673640e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_bef73449-be61-4212-b8a6-f0e29f3b5652">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_3f26562b-e4f2-4e2b-8269-b8eb0e71a997">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_2b305fc2-bf97-4116-86d1-adf9cbbc0df2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_1ede5ada-288e-4ef0-a60b-27fb7a57b8b9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b5a6786a-0f0c-4082-88ea-628014d4c477"
      id="F_9c262d43-b32c-4213-ae69-309b0130f8da">&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;12,000,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_b5a6786a-0f0c-4082-88ea-628014d4c477"
      decimals="-6"
      id="F_90378255-b77c-4211-939f-e2f1ca3b83a7"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
