<?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_0d4b0c88-aa7f-436c-87a6-db0a5b498e69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_4c5e59ab-dc93-4fae-b17c-486e061456d1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_fb17e5ad-c8a0-4fa3-a824-a9e83174c4f5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_1a6b4c1d-bfc4-471b-9df8-585e07947b9f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_1b647427-d4c9-428d-87d5-f8803b45fedf">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_6538dd39-334d-4e30-863c-d46d88bea1b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_4943f7f1-3642-44e5-96a5-028ea32c4b69">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_754b206c-7118-4ec4-ba06-67aac31a7c9e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_2e1227c4-f997-43a4-8392-1212ec1a8310">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_6962a33a-a0a0-4e11-93b7-7372131526f7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      id="F_6410adee-8d50-4538-9800-1252046735d3">&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;8,032,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_0d4b0c88-aa7f-436c-87a6-db0a5b498e69"
      decimals="-3"
      id="F_7ec46304-3116-450e-bb0b-a84fa644b77c"
      unitRef="U_USD">8032000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
