<?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_b84677c5-4eb7-45ab-8909-9a364868a0fd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_2be2f2a0-bc07-4a07-a5d6-4788227eda44">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_2c8670d0-691c-426a-9237-9dffd45e2239">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_b3b56af7-a53c-4411-8a9a-dce8d417a6c2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_1ee51395-3e1c-4125-afdb-e1ff08b9f108">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_70d9175c-31bd-4ada-8520-c76390c1d673">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_58a51633-698c-4f5b-bc12-a2d4034c820a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_44c237ac-02d8-4138-8343-f44da146359e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_738252fc-ddea-400b-a527-20d9f58ade33">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_a886f8b3-a047-4eee-b80c-a4e94bff796f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      id="F_fbdf5bcf-5542-49f1-a82d-b7d6f83c99ae">&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;6,527,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_b84677c5-4eb7-45ab-8909-9a364868a0fd"
      decimals="-3"
      id="F_774de8a6-5b55-4b75-a85a-3056b035a701"
      unitRef="U_USD">6527000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
