<?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_0485c4f4-3009-48e5-bd2d-06c7e1dcc854">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_203993b1-1b5f-4cd5-9fa4-ff663e63c5ef">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_79d3b730-2f5a-4c7c-a1f7-a92bd5c950aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_375b3eb3-1330-4129-bf70-a1a3b9a7e471">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_964eeeaf-a72c-40e8-85f3-100d89665f6f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_fabf663d-01c5-4f6d-b2ba-fe715053c242">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_e164cadc-10f8-44a8-8fe3-12f704b32d43">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_2b6b00af-19d5-434d-beb2-fc6989948564">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_83e99202-1fd8-4aed-9f22-b2c576cd9369">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_4e68f999-006e-4015-8f0c-39b6a270c10d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      id="F_92d790f3-dc23-4d83-8be5-c7d343dc4a1d">&lt;p style="tab-size:26.66px;font-size:12pt;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;11,174,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_0485c4f4-3009-48e5-bd2d-06c7e1dcc854"
      decimals="-3"
      id="F_b60a9405-ab53-461e-b249-a194b24ae003"
      unitRef="U_USD">11174000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
