<?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_622c4797-b5f7-4b0a-88ee-a86bcbdffed4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_4d9c1fd2-6d65-49b9-94f1-0913d90a38bc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_c19e4f64-c09e-46d8-b0f8-3bd2962b291c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_62ca869d-751f-48e9-8844-28e5a9de9c35">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_9dafa012-723c-4116-aa61-5d6180c6d2f2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_dbd4e432-c14b-4c07-86f0-488b0b4030d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_479031ea-eef0-42c4-ae58-0608ae0e7752">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_4012a3b6-25d9-40ce-a049-83be2710555f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_b9b40fd7-e142-44e8-a638-1ddd7f4fbadf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_51b50db5-ce31-4800-acea-d74912382b85">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      id="F_d52e327a-ec1f-49b6-9363-ebfaebd2fa79">&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;3,395,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_622c4797-b5f7-4b0a-88ee-a86bcbdffed4"
      decimals="-3"
      id="F_2cc852e5-2f5e-473a-8cef-f4b00d299928"
      unitRef="U_USD">3395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
