<?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_a722e442-44e2-49d6-bf42-7673ebc78819">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_422d097e-d486-41a5-bc68-784f25b0c095">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_634d8db9-7e9f-4b3f-b333-820e6ed78ac4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_fba50c86-1b80-4fff-9cb3-eedeb6c7dbf4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_df196f8e-325a-4350-9135-7702531ee74f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_27870b44-d5e6-440b-93f7-6a8043b03d67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_68b86545-35c5-4a0d-8011-07d5dce37a0c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_0c602cdb-270d-49e9-9ec8-f5ea097ba98c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_af7ca293-bc9d-48c7-bc6c-025f32c32d18">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_9657308b-e609-4f53-b6f4-dd54353225a1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a722e442-44e2-49d6-bf42-7673ebc78819"
      id="F_58de4fa9-2bb6-4162-aec7-7f1c9aff31e8">&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;500,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_a722e442-44e2-49d6-bf42-7673ebc78819"
      decimals="-3"
      id="F_1980af24-a722-4ec6-806b-3cd994460a2c"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
