<?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_43647d52-2f82-42ae-b29f-fbc36d290317">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-25</startDate>
            <endDate>2026-03-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_6752afec-58fc-4fdd-9859-c9447127afbe">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_6267a02d-10cc-441d-b3fa-9f2495d18b15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_4062f115-3a65-4d04-906d-c7b347ab04fb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_dec8c2aa-18e8-4e56-9b54-ec49bdbed317">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_e6fba9c8-5a05-4087-ad00-8e18218e4a34">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_d2fe816c-5ac0-49a5-913b-73b0ddb46628">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_d090a5fb-d12a-4a85-b67e-1fd0503a82d9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_951acd43-e067-4630-94b5-2cfb575f8964">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_bfe46b5b-101e-4620-8138-552c2867d60b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_43647d52-2f82-42ae-b29f-fbc36d290317"
      id="F_4b2c74b0-3164-4a8e-a537-2ebde1a1ef34">&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;1,000,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_43647d52-2f82-42ae-b29f-fbc36d290317"
      decimals="0"
      id="F_5f25846e-47f8-4257-8ebf-48916b0334eb"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
