<?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_201302cc-66b1-4b67-86cb-b172c3637b2a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_1baffee3-2128-4d04-bc73-ab42dec955f9">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_a1eb202f-88b0-4ade-b91d-6881ec23787c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_7e420094-aab9-4f6c-8ccb-fcdc1529e9cd">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_05b8c726-8610-41b1-8124-4f03b54576c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_375e2fb8-38fc-44ea-9dec-223b2f54a8ce">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_e5bcb008-1633-4a91-83d3-17b0b38f1663">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_b45bc05a-de9a-4d25-ab6f-d07e8376b9b8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_0569b548-7353-4bec-8c26-5a52ef104e04">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_cb13f6ae-02fc-4b4f-8092-79c3fe678dd2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_201302cc-66b1-4b67-86cb-b172c3637b2a"
      id="F_6d572bb5-0f69-4272-ad90-5b62263e48cb">&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,720,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_201302cc-66b1-4b67-86cb-b172c3637b2a"
      decimals="-3"
      id="F_81553be8-1460-4374-a7f7-f8e8fd871f3c"
      unitRef="U_USD">5720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
