<?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_01a3b4dc-32e1-4946-8f41-e147dfff0085">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_1e7267c1-6b2e-44f3-942c-bf115182247f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_b0a381d2-153d-4a31-affc-df168b48bb23">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_b61c9220-da37-4711-aaa9-ccee92e6d576">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_055534f3-9d23-44b7-9c01-6d351edba8f3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_02ae3b60-371a-4c63-82ba-d2810279e197">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_36197477-60c6-474e-96d6-9a903bfea896">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_315e6350-bb36-4809-a9b7-d8fe8ff195b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_575cf184-c27d-4692-b8a7-89771c6fb92d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_d4c90549-ee7c-4e9d-b5d5-a78ce9db1bf0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      id="F_42b89166-0162-4102-a23b-16b8fca30e7a">&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,292,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_01a3b4dc-32e1-4946-8f41-e147dfff0085"
      decimals="0"
      id="F_3d64d32f-62e3-45d2-bd0f-2c4edc091c6c"
      unitRef="U_USD">1292000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
