<?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_19b89744-5d91-4dde-b8b4-68d8ae10db92">
        <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:SubmissnTp
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_6d26b3a5-e97a-48fe-a1c6-907fce432724">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_64893e44-96ac-41b0-8e78-a84157745bfe">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_4230f23b-f8bc-4cbc-b45c-eafad3db8d9c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_de71ed43-69e1-4a35-8834-1bf2cdb8c129">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_6644bbaa-795f-4ea8-b796-043121359975">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_5149194b-1f37-472d-bf6c-34f9d4b5a5f7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_fb34cd54-78b8-4cf7-821d-3c03a6a77757">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_2742d31c-7450-414b-8a91-8ecbf0a2b3f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_2646d591-fb65-4455-b50f-7e07ef41eca3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      id="F_3475d113-959d-471b-bb09-8366ea003fa2">&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;1,300,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_19b89744-5d91-4dde-b8b4-68d8ae10db92"
      decimals="0"
      id="F_19d7b544-4111-4878-8a9f-b31ee47cad9b"
      unitRef="U_USD">1300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
