<?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_c2b3c9dc-51de-4d54-b656-da30986c699f">
        <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:FormTp
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_a3219f61-5e09-4ad4-a16e-22841ee6f304">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_d8d55c70-6aaa-4eaf-a913-4ef665853e30">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_e4b66f08-a97e-4ced-8a76-2538db001619">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_fad6fe2d-c7a2-4ef6-bc2e-8838d52aa51f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_84244b2d-7e5e-43dc-a280-1b008e07eda0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_78ebf623-4e1d-47bf-a133-8a966bbe6054">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_17a61f07-4b2e-4df3-81e4-078d2af9c91b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_45eba3ff-84dc-44d3-949d-07cff5e3eee0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_e946efc1-0fb8-4436-a8be-9e4e544989af">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c2b3c9dc-51de-4d54-b656-da30986c699f"
      id="F_5c860327-1da9-4c83-9b29-c556b04f3645">&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;712,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_c2b3c9dc-51de-4d54-b656-da30986c699f"
      decimals="-3"
      id="F_d05e2644-66f2-4509-9adc-06c6d0f1f4d9"
      unitRef="U_USD">712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
