<?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_54c20ece-d037-41d1-9f68-b2f2d12f3e4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_dd00ec37-0d7b-4c62-94da-ac3aec8762a7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_34bb417f-afde-422d-b35f-895210a15d8f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_cc8043f3-c69b-4afa-934b-b967b52ad57e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_62ca2aaf-ad39-46b0-b1b7-da7c9228dc51">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_0f4ad898-e014-4d4d-b87f-68504a8e8668">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_7e906f07-ab30-4a2a-a3b7-84167c3ebf9f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_8ae25ab0-31fd-427c-8463-962dfa5c59b0">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_8f3cd989-201d-44e0-a7c8-6beda28d0f50">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_5b4c551c-7bab-421d-a560-8cdb12eb0c58">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      id="F_b288eae1-b1cf-4581-a202-4df59d0ede87">&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,769,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_54c20ece-d037-41d1-9f68-b2f2d12f3e4e"
      decimals="0"
      id="F_948d1edc-9b20-4d77-a96e-6d618de1347b"
      unitRef="U_USD">1769000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
