<?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_dc87aef3-19d8-437b-8559-a55fc4ccc01f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_6d75520f-2a9c-4426-97cf-c515f65b2c9f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_3753a162-5416-4b04-b220-2e06ce228be3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_bfdf62e3-e295-4bc1-9b36-bcdf526dcb7c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_817a4166-0d36-4f99-bf0d-966873840ed6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_b39068e3-8fed-4d78-bc0d-7b10cbac8426">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_3e6d21b0-0d67-4d6c-a088-7d2fd84b84d0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_5b75498a-d0ee-4a76-8cde-4650a54a8654">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_d9f1978e-3069-46dc-986d-2947d7921be6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_7161bd76-bec2-4cc2-bdec-44bc172f39f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      id="F_6917042a-0051-4989-80ce-3e31edb51100">&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,118,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_dc87aef3-19d8-437b-8559-a55fc4ccc01f"
      decimals="-3"
      id="F_9541824e-66cc-452a-9194-e29a562c56ef"
      unitRef="U_USD">1118000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
