<?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_85e27cc2-6c7c-4351-af0c-c9990c296fef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_153ea56f-1ff3-4387-b2fb-213d495f28e9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_cd7efda7-e90e-476a-a948-1c2c5fa1d7b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_840d2fb1-0ad0-46cb-a8da-ce1e87613ca5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_20a4f802-d640-40e1-8c38-60d37d2c344e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_6ea1b137-9db7-4856-a034-5621e7a62626">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_bb8a5739-e55a-43ae-981f-388857a69524">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_d1071742-5ba4-48a3-96a4-7da2c70c27a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_0f205d25-b2f1-4d3c-aec8-50c89aef89c0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_a98fe3ee-5824-4207-9280-69d4a555b495">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      id="F_77ba8e8f-c54f-4c72-9c0e-870b2ed0d9d3">&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;9,647,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_85e27cc2-6c7c-4351-af0c-c9990c296fef"
      decimals="-3"
      id="F_b6f0035f-bc11-45c9-9b3f-423bfb23d297"
      unitRef="U_USD">9647000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
