<?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_eae4aeee-8980-4fdd-b556-071115cf07fe">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_dceb4491-64e8-4e76-b597-fbee3e71cc31">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_a3ea34d0-654b-475a-be28-4328fd7bed17">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_4db4b0d6-8568-4d6b-beeb-bc75d67765d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_9b389e5b-ac5b-4751-8400-2a35494fa415">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_c3459937-a014-41c1-821d-97eb47839f64">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_d2198aac-c843-4e14-8f80-68511e8e1766">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_22c7ce28-a7c0-4261-926a-3e6a557ca2cf">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_0ae31bb7-a39f-434f-9f51-e82670808fc9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_e4c3b33d-a710-45a8-b795-f9e1ac04dc6c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eae4aeee-8980-4fdd-b556-071115cf07fe"
      id="F_1b3c5173-b867-4f66-9bed-f9dc695512ff">&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;21,566,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_eae4aeee-8980-4fdd-b556-071115cf07fe"
      decimals="-3"
      id="F_754e04e1-2a8b-4809-9083-40a11d89fcd4"
      unitRef="U_USD">21566000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
