<?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_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_094b21ee-9037-4bae-bf1d-b6c9b5494228">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_c8ef7287-25d4-4c11-a687-d825d20e5353">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_47e8312f-634f-4c0b-b93b-eeb2754405c7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_b9bc9ec5-ecc3-4424-9f18-86193ce2ecb1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_14d8da48-a099-4e26-a086-fa8405c5d434">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_81531c2c-6e1b-4931-aa31-9c8fd7f9a6c7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_f5de9768-6219-4f19-9209-1477c23c7aae">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_baf569d5-bf5a-4d6d-b4bc-2d421349f02f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_b127169a-2434-4872-9a50-be5608a02b03">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      id="F_dcb3abf0-c613-4cc2-ae9d-14d360b895c1">&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;600,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_2b6f01cb-2731-421a-a79e-2bf1aa2dcc2c"
      decimals="-3"
      id="F_8e3e8e5f-e4e8-4311-8558-f129c2f07c39"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
