<?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_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_6536caa7-9744-4912-a0db-336bfe6fc632">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_bcc25049-0275-4edd-8da9-2106f460bf7e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_5dc64f99-bc51-4996-b207-1fd2c6a3eeba">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_fee52451-b99f-463a-9351-474ee916251b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_f44566ae-9a02-4bad-8690-4518172731f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_03c112a7-da02-4434-8e52-745e49fe4830">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_45008d12-9a64-4eb7-97c3-4fc4acb68ae9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_cf44855d-f74d-4c16-81f1-f6ff88e06ad4">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_6074eb0e-d529-412b-a479-7da64a704dd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      id="F_524060fa-c9e8-4fa0-bf31-1bfa44e3ad95">&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;2,374,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_8c4a2bb0-bac7-433b-b69d-6609fb0a0a51"
      decimals="-3"
      id="F_9b853b39-7a69-4ae1-bbd5-38465a1ecd2f"
      unitRef="U_USD">2374000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
