<?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_b61849f0-afc2-4f28-9f7b-3c54d33b2b51">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_2524c37e-8dea-4ce4-9a60-4aa44bf27809">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_181a42ca-924f-4d66-930e-f9c980ae65d0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_4b5d213f-a7a4-4747-a678-2aaf556b3bdd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_4a5b2f53-27ad-47d7-ac9e-26ece366359d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_3562379a-2e47-4cb9-8aef-c207f7fabff7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_d73871d4-3446-47c5-b0b4-87c99dd3c65c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_5e60a6dd-02e8-4a42-aa41-b54a082dda52">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_ac8e2b33-728d-435c-91b1-80fddfec29e3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_3cda60d4-cb53-48be-8d6d-ae3fc95c4a4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      id="F_210a2d99-b290-4619-a189-8cbf4bf3abfa">&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;816,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_b61849f0-afc2-4f28-9f7b-3c54d33b2b51"
      decimals="-3"
      id="F_d8d89b3e-57b4-44a9-9a3e-80514be1699e"
      unitRef="U_USD">816000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
