<?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_939683e8-63b5-496a-8a51-2789525d9216">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_7fb4b024-3e39-470f-bf55-8865a9a6dc1d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_69e4308e-a2c8-457c-a598-59e09c79e5cb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_5d8487e5-1829-4a3b-991d-60451d617ee6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_28ad0b4a-5d5d-4451-bbe3-52c7e7e77736">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_990926e9-a0ab-4d9e-b6bc-540d14a4ecb9">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_65de9b9b-e162-43d0-a5f8-a394e9a12878">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_e452a4fb-d88c-4a21-ba13-cdf6327bb716">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_57bd9829-640c-45e6-967a-6b9628fb6f9e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_99930ef1-6185-439e-a1e3-aa33a8ac05af">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_939683e8-63b5-496a-8a51-2789525d9216"
      id="F_05acb187-7409-4703-81d6-99b057c78b60">&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;21,822,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_939683e8-63b5-496a-8a51-2789525d9216"
      decimals="-3"
      id="F_80bc36c7-f9dd-4e0e-8d9b-b3d568e7db18"
      unitRef="U_USD">21822000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
