<?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_c868acb5-3659-4edb-9eca-30ad8333a06f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_560d6de6-ffce-4a19-802d-527520cb6bef">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_399e5787-7f34-419f-b9a1-e5884d6b514b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_4168847e-2bee-4371-9ed8-da34e9d8d682">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_62946a2c-0063-44ed-9d3a-7df691358f07">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_d144ebc7-ce4f-4308-8cab-9d152eeb85d7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_8cea33fa-f453-496e-9a28-f8ec978159da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_3292f2f4-6b29-400c-be9d-b29bd281fa50">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_7b6823a6-0f5b-438f-b9be-c19d3ae078da">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_43763ec6-3c15-4d89-8ffe-80e3d28f5406">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c868acb5-3659-4edb-9eca-30ad8333a06f"
      id="F_2cfb7035-1889-4644-ad05-8d599553dba1">&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;1,352,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_c868acb5-3659-4edb-9eca-30ad8333a06f"
      decimals="-3"
      id="F_88f4a322-bceb-4fac-9204-3655694fe3fc"
      unitRef="U_USD">1352000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
