<?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_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_4dced746-9460-42d4-99aa-76f36afdd59b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_c80d706c-fdf8-4eb7-91b8-451a2b3cd589">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_f7e66b41-76be-476e-99bb-03e480008d18">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_08844aea-8682-40c2-b51c-7c35477da26d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_c7d686ed-1ddd-4e84-9bb2-27fd82acecdc">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_007208d3-43f8-4dfa-9749-8e825726911b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_498663e0-0cac-489e-afd0-806f780a4a9c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_944e4879-d393-4c5d-b62a-0a75d2a0b01f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_4f55ffb6-b00d-4d08-8f27-b0f536f8bc2b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      id="F_011e7539-e793-4c74-9fa0-51160ec1db43">&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;105,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_9736c4ab-0c31-4208-b2c2-000ca3e9e0b2"
      decimals="-3"
      id="F_d4666ae9-95fe-4542-81f5-754ffb5d7aa5"
      unitRef="U_USD">105000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
