<?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_9c530bbd-e845-4a67-86fd-daa2bde10300">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_7bc30f8f-a465-401d-8030-336a8b64a662">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_05db93f9-fac1-4085-95d9-29de5fcf026f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_4a5e6d3f-b52f-498e-a428-3982eaa86f5c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_962d36a0-ab44-4534-9368-5b851d39d6e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_09b3d436-85ce-4a29-b711-f2c1f525804d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_0d152c67-e998-44ad-977f-471a1f04d3c3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_133445fc-cbdb-434c-8245-69db447bc1f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_6224b5e3-7ba4-4a2f-89f2-1b8fd489acb5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_b9d57cea-b4bd-40fa-baae-c8df2939c8b5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9c530bbd-e845-4a67-86fd-daa2bde10300"
      id="F_0d9de291-b018-4369-a5de-4459e45e4df8">&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;622,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_9c530bbd-e845-4a67-86fd-daa2bde10300"
      decimals="-3"
      id="F_9be940c5-6da2-4343-917c-e7f7b7bea8b3"
      unitRef="U_USD">622000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
