<?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_6c7de330-ef2c-4938-a825-bf7693e67fe7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_b60073b9-9338-4cb1-add3-2e8a86aa4c8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_8391b570-aaf7-4c19-bab4-15d67a3e0cdf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_630a4d87-c653-4651-8eed-75d7f8ff706f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_b3d63159-c6cc-42d4-b2da-524c5b7c3edf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_e25e003e-6a5b-47e3-80de-45811cdde070">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_671141b4-3361-4d02-a2e4-fb6bfe630247">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_2f5a83d4-c0c8-480d-8635-9973b68920ca">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_f5f33b95-732d-4d8f-ac4a-326013ae12a8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_ca1c5deb-781f-44f1-be4c-f1520a7d802c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      id="F_dacb2b44-290d-40f6-a961-67e0960956ed">&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;750,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_6c7de330-ef2c-4938-a825-bf7693e67fe7"
      decimals="-3"
      id="F_09b2d11c-b5ac-47a7-b438-81f87c2d7749"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
