<?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_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_1c63cb2a-5bf5-4003-8949-9e106e58bc36">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_d9c80bae-37f6-4b4f-8490-51fb970a96ad">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_2fb03e17-7a9f-46d1-9acf-1932abb21874">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_81de77d8-0bac-467d-9419-0a1b295bbd70">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_6bae4816-a7b7-4ee5-a084-7d98d07e0acc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_20b09261-f78f-452c-8b2c-35941585b819">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_5897df09-6468-46ff-ac96-94b99918e46e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_cfb29026-4b65-42ee-ac89-32d030011268">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_769f00eb-57bf-46d7-94a9-21f5d66ebf92">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      id="F_a531131d-4f01-4d68-acdf-cf5603c0221d">&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,657,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_0903fcd7-f3a6-42c3-9ae7-8e9a276ee8f6"
      decimals="-3"
      id="F_a77af1ed-aee5-4779-bd3a-b455894ffac3"
      unitRef="U_USD">5657000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
