<?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_a4117462-e3bb-4411-b5ab-847f10988a37">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_941d9a32-941c-4e7f-9a26-4b28442dd7e0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_adb634e9-c565-4e60-8cb1-d073c3d8f4b8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_13953b66-99a0-4eeb-b430-5c2b991cbcaf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_91069d5c-bc3b-4f75-b3cb-5f8f4d1c33ca">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_074b157f-cc2f-45d1-9b7d-4d863078582e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_b8dd12a3-fd38-4097-8f02-690dd6842a93">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_08bc6fef-9830-472f-8215-79cd45fe1306">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_9db6307b-4780-4dc8-9cd4-990047632897">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_bb503b6f-98c2-45a8-b692-b32a4f406690">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a4117462-e3bb-4411-b5ab-847f10988a37"
      id="F_4cd079be-6234-480e-8617-c1dac4ef0a43">&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;9,567,450&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_a4117462-e3bb-4411-b5ab-847f10988a37"
      decimals="0"
      id="F_ec10a9a2-9369-46f0-8c59-7e750f70fac6"
      unitRef="U_USD">9567450</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
