<?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_bc5a027f-ab62-4f8a-9774-9d36c4b0265f">
        <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:FormTp
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_4a708ec7-124a-4a19-bce0-a272d1d75de7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_f0efc9be-ed89-485b-8ec6-c79991f572b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_e366b949-f1a3-400d-9190-7b15686769c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_dd0cc143-f8f9-4ae7-a131-1b0ec6bb0dbe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_d3dbd226-5727-44be-8515-e5659294369c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_ff28e480-f491-4d65-9cab-ae67794ab291">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_f3f16b77-1907-4fa6-ad20-240aa00e32e7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_b9a2d3c8-1727-42f8-9ff5-4f0e9e6ebe3c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_b2c6c0f8-89c4-4882-b85b-d526451d5a2d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      id="F_a2a68859-6d8e-4b65-b7d4-77f982a9cb08">&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;50,000,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_bc5a027f-ab62-4f8a-9774-9d36c4b0265f"
      decimals="-6"
      id="F_7d7b2a2f-199f-4dd3-b881-bd66342fc951"
      unitRef="U_USD">50000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
