<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_169fdf01-d108-4eac-a766-f555528f5c28">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_7a86fcfa-1d0a-4bb5-9698-dea4c4847245">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_56a383d3-702e-464a-bc68-ad406a498e8d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_7865c329-abb5-4ef6-a672-527fe36dcc85">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_2e641ee3-f00c-4395-b66b-6e6b4013d9bc">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_6ee3fab1-9323-4437-84eb-7d7d96572171">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_b2429129-4d04-4b2b-989b-5abd787e5b49">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_0ebc1bee-ce3f-4104-88ac-5c35a692e4e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_a60131f8-aee1-4be8-941f-b590a9df37dc">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_e586144d-781a-4679-b170-d3985bf483e9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_169fdf01-d108-4eac-a766-f555528f5c28"
      id="F_9a340b25-b05e-40b4-8a01-58bcdeaff2d2">&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;9,000,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_169fdf01-d108-4eac-a766-f555528f5c28"
      decimals="0"
      id="F_12538c49-dd1f-41f0-8ff2-40bfe4121d26"
      unitRef="U_USD">9000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
