<?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_3f22e8e9-a735-4b5e-b103-be574fd2a2a5">
        <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>
    <ffd:RegnFileNb
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_09b5354f-7fde-479e-8635-f1a07e0b1931">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_cca3090f-c7c8-4954-bb8e-650b91af11aa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_8c694829-725c-4b32-99b8-b9f165f2cf7d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_e1ed96e6-e70c-4ff1-a4b0-de24d21eb1b1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_fe93fd0f-1f9b-4010-9658-077ae3376fb9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_c871aebe-caeb-44df-9bc4-11340bd195ef">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_745f53fa-3da7-4392-abe9-d73662ef8d02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_135fde4f-21d0-47a5-9d36-ba7ac2f5ef76">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_99c8aeff-d39c-4f40-be3a-160871ce312d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      id="F_9f36a5f7-24b5-45e8-9992-a5070daccea0">&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,912,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_3f22e8e9-a735-4b5e-b103-be574fd2a2a5"
      decimals="-3"
      id="F_55fa60ac-8924-4657-a77e-c75d02548e95"
      unitRef="U_USD">5912000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
