<?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_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_d0cb5d76-c7c7-47a9-9aea-092e5d7299d6">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_22a5a8df-52b7-4613-a10a-a82610b09133">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_7a0ee654-48d2-4a82-a857-378869013328">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_6e633027-3f24-4e03-8a56-64e73f4056cb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_c2671319-239b-4edd-9879-445a528251df">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_b49f510f-f4f3-4614-808b-9d3e3d131aa1">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_af10aacc-8302-4520-a33c-59e196895d7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_376eb69b-4e83-4d2b-a292-e5cdf3de8b04">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_4376f74d-0016-4c0c-831d-2f3a647105e1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      id="F_00f8ccb3-4c95-4a25-bc9c-ce61d5405dd7">&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;854,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_3535a3eb-c26d-4c23-9fe8-6a48bf02d51b"
      decimals="-3"
      id="F_529a441e-6e03-4fcd-a3b5-2bdea1cb768c"
      unitRef="U_USD">854000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
