<?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_706731cf-0fa7-493c-b043-0609090fc0f7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_5ef5aaa9-de4d-4f42-9db2-a807cfb3e059">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_12fed991-5e4f-4361-b6af-7671da1e50a1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_7b1faa52-ea99-45a3-981b-a7718a7d6be8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_ebaf4424-6768-4cc5-95a7-7645c20df2b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_3c05538c-0c01-4589-b436-1197bcfe1eb5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_ef062eac-313b-4b53-8f3d-74efed487aee">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_fcd00667-ad60-4ae3-9cf8-0f5aae39f0cb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_cb064dfb-f8b7-4efa-ad9c-38bc6af324ae">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_b4403cba-f186-42aa-8b21-a843786dd40a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_706731cf-0fa7-493c-b043-0609090fc0f7"
      id="F_61c0e7e6-0fc9-4838-b362-0d088eb98fca">&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;4,690,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_706731cf-0fa7-493c-b043-0609090fc0f7"
      decimals="-3"
      id="F_d1c92426-7987-4020-9d64-a844d0b24a9f"
      unitRef="U_USD">4690000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
