<?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_e49ab5ec-75b0-41ec-af74-acc15fd9a03c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_fe277c21-5abb-4a0d-8db2-cada7da96d04">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_763cf8e4-d1f0-4b18-9573-6d0827ae628f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_680264b1-5f1c-4d4a-8714-dfd3b97c75af">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_2d0cb1e0-b97a-42e1-ad03-73c3fbc29315">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_f62b9fcb-2586-48d8-8c4e-759023ab38f1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_f207f15a-0ed4-48fe-b9c2-13ef393602bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_ca073557-0b9c-480f-9fd7-4a9cf154cb6c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_fbf6792a-09f9-45b1-852d-c4330c17dbf5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_83bd0a2f-0643-4892-8134-24a8b70671b8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      id="F_475a0dad-7327-4b17-9d69-2abff161e0ce">&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;20,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_e49ab5ec-75b0-41ec-af74-acc15fd9a03c"
      decimals="-3"
      id="F_89d6cf62-63de-441b-82b2-fe8ff16a5fca"
      unitRef="U_USD">20000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
