<?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_c0ef5a44-c16a-4d5e-8356-f68696a46370">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_1da981ab-a02e-42bc-bf7b-f66386501e37">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_d902219e-e9a1-46c7-ba09-e08716abb98a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_c1138e4c-5977-41e4-8345-f0c80a2ae983">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_d1d66788-0680-4343-bf13-3b51ba62d97f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_236fd67a-84eb-480a-a040-1a0951f62472">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_24693e52-60bd-4fe1-849f-8c1baedad432">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_07a403b5-3f98-40a6-9bf3-5be750f972ca">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_4e45aac3-3e61-4490-88bc-ab44875edf60">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_65677f07-a2bb-4bcc-a64e-e9a54ab58e45">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      id="F_9959cc9e-bf24-4dfa-8032-dca7a39b47d0">&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,090,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_c0ef5a44-c16a-4d5e-8356-f68696a46370"
      decimals="-3"
      id="F_72840f8d-837a-4da9-a832-ee54146457f1"
      unitRef="U_USD">1090000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
