<?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_e1df7990-becb-44b7-aa98-196015ec67bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_6a6c05aa-be06-46cc-869c-d8f2e1b410aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_69ed5320-c9fe-48af-b3b0-1d918a018d5c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_8d843f87-f68e-48c8-87ff-64a0ac4bd08e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_07b5310d-5973-41c4-b131-1604353257da">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_18a23350-e9a9-47ee-b792-c3ccede808e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_348935cf-054e-4bbf-b30b-cb4ec89dcb96">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_79c5a87c-c9d9-4b1b-9028-14ca45c2732c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_2b21cf18-abeb-4913-bc4b-42a1acfe6e81">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_66e57e70-92c1-489b-b54d-ec8a07053cff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e1df7990-becb-44b7-aa98-196015ec67bc"
      id="F_a8023b7d-a9eb-4b90-94ca-2873f9b42ff3">&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;4,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_e1df7990-becb-44b7-aa98-196015ec67bc"
      decimals="0"
      id="F_1447372e-36be-441b-bd89-92645fb1eaff"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
