<?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_a6896639-e5e0-461d-9be8-ece96d07b866">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_a6f674f0-df6c-4448-a2dc-680cb6ddf51e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_6ee20173-e55c-43ec-88fc-d7b23d5d0244">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_dedbe42e-5574-4a7e-b905-245f4cb8c1c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_74c65183-bee1-4069-8838-ef9c07993833">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_33f4c56b-4dd9-4f6b-9a7b-91b491332c80">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_6fc553eb-1d99-465f-8f8c-c53a56d911ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_aa9a207b-90ab-423a-9349-e0f90304e815">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_1eb1876b-6e7b-4a33-8983-c4b4426b7ae9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_1adb2f77-b611-4624-88ac-c4f055879e71">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a6896639-e5e0-461d-9be8-ece96d07b866"
      id="F_e571652d-992d-48b5-b07d-6b295fd952ca">&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;5,765,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_a6896639-e5e0-461d-9be8-ece96d07b866"
      decimals="-3"
      id="F_aa58c416-122f-4509-a40b-2ac8a5ed1707"
      unitRef="U_USD">5765000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
