<?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_5f823c42-45a5-4677-97b9-3092452fd47c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-23</startDate>
            <endDate>2026-07-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_20293795-5c9a-4c56-9b94-67fe31bb5d39">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_5ffcbeb9-2114-44f5-99fc-7381de32fe25">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_23d0b830-4816-47bf-ab60-c85fd0df4d10">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_f1bdf5ca-dcbc-4170-80a1-397b43ec91f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_8e913770-084e-4546-b541-df82f49d5d3a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_2753056e-0c54-4cfc-a73e-6f1cc6b2f663">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_05fad8f0-5dff-461e-879a-c32c32ccaa7b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_378837fa-edb8-47bb-a491-a29730a7d2e8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_67ca25f7-6b84-4045-b277-2150194289ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5f823c42-45a5-4677-97b9-3092452fd47c"
      id="F_0819bda3-0d7f-44f3-88be-b5cc67efd811">&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;8,299,890&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_5f823c42-45a5-4677-97b9-3092452fd47c"
      decimals="0"
      id="F_0cc74ef1-856f-4a1d-8d49-4fdbafeb1cc6"
      unitRef="U_USD">8299890</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
