<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_90547783-6f54-4457-9400-455a06ea0847">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_cccdd483-6322-4ed7-aa66-0e95f4c4fb82">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_5127c49d-70bc-4264-8ed9-33cee3db38c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_5fba726f-1cf7-4a15-b22d-448567910822">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_9e5c16a1-b9cb-410c-b0a1-2abe9ddbd46f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_e81099a0-8147-4600-a927-4b50c0ba7064">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_fea305b0-ac5e-4775-83fe-64bcec724b69">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_bccded07-62cc-41d1-a57f-99c2ae5f0409">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_79b94297-44f2-4313-a329-0702486d6dd1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_6482f2c9-10cb-466b-a262-f2a2334e6cc9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_90547783-6f54-4457-9400-455a06ea0847"
      id="F_18cff3be-3f25-4f37-9d1b-669255f85616">&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;14,620,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_90547783-6f54-4457-9400-455a06ea0847"
      decimals="0"
      id="F_5245df94-3f2f-4b32-9002-bc35329f4bb7"
      unitRef="U_USD">14620000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>