<?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_aae7f854-cb64-4d21-b3b6-05ce5bf0979e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_669800d8-da39-44a9-9b79-37ec68ea9127">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_9e546dce-583d-4885-b89f-6ccbaf0c0990">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_853498db-9a75-4a1d-89ce-5d044bca1a5f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_412ced3c-fa05-45a8-bda9-9147ff35b1fa">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_c96a9a87-d9b9-4d08-95da-e17f3ee251ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_f401ad33-2c56-4956-9663-e9896ed0a63e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_f5ef227b-6368-44ea-98c7-28b25c4ccd83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_4f9fee62-2a83-4029-a267-23759d03f109">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_eb550c2f-adbf-4ee3-82a1-6d46c899b618">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      id="F_2f62b7fa-0e2e-42f2-a465-afbc3a367f73">&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;5,096,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_aae7f854-cb64-4d21-b3b6-05ce5bf0979e"
      decimals="-3"
      id="F_8b287dd7-e098-4bfd-8b55-7376ed47b7f1"
      unitRef="U_USD">5096000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
