<?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_d0603ebc-fe2f-4028-9a4e-ae8e637b165a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_f4ed2763-7f50-469d-a802-c9f316948828">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_bdb2cc11-f1c3-4727-9193-61be5a6dca69">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_8ed1cf9d-501b-4ba1-8708-0c57e893ff60">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_caa3715b-6ad2-4e55-84fa-8bf6821f8661">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_d5e247c2-a788-479e-9c26-e2cf4f5f1e46">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_19a9de37-5061-4aa9-9511-8379fb61501f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_9c0acfc4-3d9d-4aa9-9c19-03b7e59871c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_ff5aff5a-6faf-4ace-8c19-079bd2578fe8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_9e3e25dd-b784-4e91-ac13-565b646382b5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      id="F_8ee57ccf-9e88-424c-a0ed-28c8138373e6">&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,103,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_d0603ebc-fe2f-4028-9a4e-ae8e637b165a"
      decimals="-3"
      id="F_6559307b-d52d-4829-821a-f9016a80436f"
      unitRef="U_USD">1103000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
