<?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_b81a34bf-97bd-4523-b108-155445c40535">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_8541cca6-b349-40c2-81dc-6d25b977041d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_25d9b077-37bf-469e-ae3d-18ebbedd55d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_4c0a05d0-5e17-4e52-a49f-c24d06830e8d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_d4c74049-040d-4519-ad43-5d697fa7449b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_3a3183f1-fc9f-4910-9533-bf359223aeab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_bc2f6560-90bd-48ff-bff9-3e94bd81912f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_c4b30f09-2a03-4c24-b0fa-b03ae1f4b77d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_0c45239d-fe17-4f08-9cd2-488dcb39da7b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_c788ecf9-0f50-4298-8fdd-d28c4420884d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b81a34bf-97bd-4523-b108-155445c40535"
      id="F_0e9c6364-1c15-418e-ad63-5ed7b0099b5f">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,280,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_b81a34bf-97bd-4523-b108-155445c40535"
      decimals="-3"
      id="F_f50e4ef2-cbeb-48d2-8a7e-4c91652eabbb"
      unitRef="U_USD">3280000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
