<?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_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_3681b1ee-2217-4ee7-b75f-45e7eafb5a62">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_99b25b2b-9e0d-4a7f-ba8d-c41ff8ace713">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_80540a8e-c49d-4247-b2bc-2d2ba68a9927">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_8e8eaa94-953c-4a15-9d30-6fa1ed624328">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_4d0ddb80-2f58-4ca7-b621-a08add629729">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_18853069-de82-4f08-a47f-aa9e33ec1315">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_378eda51-8fe8-4d47-bdca-d041f27edb06">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_c6bf283e-cbdb-43ef-a500-1ec9782794e3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_fe0b07f5-81f9-4ed0-bd47-607139cfd2df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      id="F_1c77b377-32eb-4863-9b70-eaab5a13754b">&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;996,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_0a4bd139-e6d2-4e5e-85ad-cc5bcf464cfc"
      decimals="-3"
      id="F_234f659c-44e1-411b-84bf-b7ef51e8536b"
      unitRef="U_USD">996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
