<?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_e7670337-82a3-416b-8d07-70327a3c863e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_f7d40ee0-a422-428c-b51f-c27f620d31f2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_1c1c0879-1966-4fd4-a7d3-96462b08fc75">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_e1df193c-ba35-4f5b-9d14-18b5546e8a0c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_514e26ce-a923-45ac-bbb2-2b63881ed08a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_a96a941e-8150-4d6f-a6b4-b3b7a08640ac">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_ef551a76-0ac5-477c-9c36-8f137c18bc26">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_080d37bf-409f-4969-bbc6-221853bf7116">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_7f1f09b9-1ac0-41e7-ae09-8e192a34433e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_f5308cfe-6aab-4241-84b1-4487974c781a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e7670337-82a3-416b-8d07-70327a3c863e"
      id="F_b1109917-3096-4665-b20b-7b13f05266dd">&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;2,883,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_e7670337-82a3-416b-8d07-70327a3c863e"
      decimals="-3"
      id="F_5e8f5c0a-acdb-4a6d-affd-6cbd67c3732a"
      unitRef="U_USD">2883000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
