<?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_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_ae40ce91-f9e2-4f8f-ae48-7326c4ce3a7e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_18c8e5c5-8091-42dd-97d0-7f31b7908a18">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_6695e912-c66f-477a-a214-45e1d742661e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_f7cda9db-8f86-4952-af0c-7350dc06d99b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_dbda133b-9d4d-4ca4-8c58-01b8e2e87a98">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_d3af9ccf-d2d5-46b3-a3f1-4952be85a089">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_6fc31dac-07a6-478e-a107-ab2d7af86149">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_af891f54-41c3-4f6e-b502-1ce47de946ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_1407fbe8-7247-4946-ac52-08fd788c9398">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      id="F_d71671e1-b126-4272-9b55-9bf502a1f684">&lt;p style="tab-size:26.66px;font-size:12pt;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,959,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_8b5e13bc-4324-4c08-bf68-dcdbcdff44f6"
      decimals="-3"
      id="F_2fc211ac-d113-4eca-b521-110862fa69b2"
      unitRef="U_USD">1959000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
