<?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_f67a0e59-5fbe-409b-9f53-d09d95b9f260">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_f4159e15-cacb-4fee-8234-8ac0b47bf247">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_2e475d06-8f9b-4092-9e4c-6565d5089807">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_ad4f784d-04f0-436d-acfa-925df8ffdea0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_0d2b1336-1622-4fcd-818f-99536dc672b7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_6ebdf77a-c5c4-44ae-a63b-db0e8959921b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_d2eed0d7-20f3-49ef-9088-dfa4e4f5da24">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_8f25a85d-39c0-4e36-88fd-214827a4a17c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_e605e121-00ea-4b40-9f63-0db71aa390f0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_b9f91124-e290-4f10-8d30-e279afabc822">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      id="F_db25ad58-7ad2-4be7-8019-362d5795ef5d">&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,473,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_f67a0e59-5fbe-409b-9f53-d09d95b9f260"
      decimals="-3"
      id="F_55de8f2d-6a07-427c-a29b-ab46c1580c36"
      unitRef="U_USD">1473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
