<?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_4febeab6-1c59-4fb3-945c-eaf715a79904">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_ab5f75a8-2c8f-4695-86af-5f00506b6f7f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_b4e97d5a-0214-400e-95ea-97845f8d5f63">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_9159d065-d1e0-434a-886b-e921d769a8ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_7b2e817d-d057-4ba2-9471-9e1322254bb1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_20a4978a-2484-4c3d-8904-0ffe546e6d6a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_2a4c10f4-c516-44fd-9e93-59166828051a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_3cf70d4c-1151-4edc-96ff-ec0b66995580">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_5f530b81-5194-4bac-bea5-2421bd96d4da">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_a8b3e583-b1b4-488e-957f-a5f3b27d0e3f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4febeab6-1c59-4fb3-945c-eaf715a79904"
      id="F_5c0398d2-95b6-4f63-878f-b56390031006">&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;595,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_4febeab6-1c59-4fb3-945c-eaf715a79904"
      decimals="0"
      id="F_689bfa26-943f-4731-85d1-5ee13ff52359"
      unitRef="U_USD">595000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
