<?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_a910d81f-3bfc-4857-b41a-6a742f1a3e06">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_73b3a9d0-7035-457b-bc79-3e7a6a273fd0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_971f2af2-a7b8-4c0d-b0a7-c99fe75d37f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_3d29c868-5a26-4d26-aae2-768e0984a146">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_01ed2910-1bf9-415c-8dc0-3c0cf18f8225">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_282412b8-8b85-4cf4-a046-dcfecfb5b666">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_ac4ae16a-402b-459a-b320-a8a1d3ccf652">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_48475f6a-74af-42c4-9cba-0f4043022576">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_549aa0d3-b770-4852-8a8b-e6105255d1da">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_b9b7e6b7-5f89-4881-9b78-12770b7862c5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      id="F_5c129a91-36de-4f4b-b149-32c51995946c">&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;565,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_a910d81f-3bfc-4857-b41a-6a742f1a3e06"
      decimals="-3"
      id="F_fe8193b4-62fe-4062-ba83-92a884089616"
      unitRef="U_USD">565000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
