<?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_64066b3e-0ef9-4241-b3c7-c405ee337f6e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_fc8824c0-edb0-4547-a3a9-9ae86fc976e6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_066cfaf9-731f-4a72-8f14-42df2b8be4a2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_01daf580-7540-48cf-ac0c-9ac5f78a19f6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_93345ea3-bc9a-4dec-9ad8-6ad7f694fa47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_d1ed2054-5b7a-44b2-973e-9a56ce53d171">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_df78f3e5-a8ac-4851-aee4-cb1bb2e30941">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_e3aa245a-77ae-4955-a9bf-e64ce1ae3456">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_4951cf96-e447-4475-8ec8-8e2379f14d4a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_abd5e2a2-089c-4975-bebb-037c02f7aa40">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      id="F_f005eaef-4095-4fee-9338-1199272f5f29">&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;26,185,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_64066b3e-0ef9-4241-b3c7-c405ee337f6e"
      decimals="-3"
      id="F_a5723e6c-121e-4d4a-b5be-9d030ebf6a10"
      unitRef="U_USD">26185000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
