<?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_75fe133b-da24-4fe2-8989-127c526f59a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_a31d38e2-421f-4072-ab9e-7c18fa5e4a37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_378be344-1155-4c45-b1ff-bb77ad4058e7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_af4fe39f-1207-4de8-ab8c-b97fa411fdd0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_d117d50b-3b98-4b5d-a0c2-ce017989edce">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_e1c98a48-7b3e-48eb-8e7f-1051602465f9">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_aa3c4d03-42d1-4219-8cfa-80f1d6330a6d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_b650f665-4d88-4eb1-bd2c-df34710b44e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_9da44834-0484-46ab-9362-e70b09f8370b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_1f22f768-5d6b-4a6f-8319-7b03ae51b86b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_75fe133b-da24-4fe2-8989-127c526f59a4"
      id="F_cac1fafc-b352-49a8-90f1-aa7f96c554e5">&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;25,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_75fe133b-da24-4fe2-8989-127c526f59a4"
      decimals="-6"
      id="F_a2bf403d-b26c-4599-a6ba-668cf136afc6"
      unitRef="U_USD">25000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
