<?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_f3a5acc3-0504-4556-8c47-dec895faecf1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_75a7a9c8-18b4-40a5-b1d1-b2f603222b0b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_aed03ff7-049b-4cae-9b60-d1697bf712e8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_7dcd52c4-5385-4e97-ac7e-739a846c044a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_b356cfbe-665d-49c1-a383-48081bfcafc8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_38198b79-a776-4917-9d8a-3081fe70238f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_a74b5135-1dcb-4524-8ca1-92b5eaf9a64e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_032e5086-6471-4588-a210-6b5f5df9ab36">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_7d12cf11-3591-469d-a50c-0e22e2c36ee5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_88370ca7-68e0-4788-b972-485132defd78">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f3a5acc3-0504-4556-8c47-dec895faecf1"
      id="F_48ef3f4e-3947-4aa0-97a7-511fa1fad5d2">&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;1,116,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_f3a5acc3-0504-4556-8c47-dec895faecf1"
      decimals="-3"
      id="F_c39ca3bd-2f9f-4b96-82df-daac656b0fe0"
      unitRef="U_USD">1116000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
