<?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_6cd5f99e-63ae-40f2-b41c-93205b6b89c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_c0588262-87af-413a-8135-1001781abad8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_af12f8ac-2d0d-4b55-bb2c-200484c8e92f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_77e2e270-adb0-47a7-aeb7-05cadf2fa2fb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_2c8bdc1c-4e60-4858-a0c9-04f35b9bfd7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_8057905f-270e-436b-83d2-fe231c160f91">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_1e628037-6ae4-4a22-989f-fe2906ef2874">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_0f6ab8df-6b28-40a9-9ef9-59760ec3fe1c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_78f62e2e-b08a-4263-a1c4-c49bbe6f5094">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_e78efbf1-0bc9-4d3d-ae60-242d72df9ada">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      id="F_7db78fa9-e6ed-4cc0-958c-9a58a721c246">&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;597,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_6cd5f99e-63ae-40f2-b41c-93205b6b89c9"
      decimals="-3"
      id="F_a8ddb260-9366-4916-bf4a-39bd0894f176"
      unitRef="U_USD">597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
