<?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_f59cf154-3225-4aa7-8b6f-12c84867c579">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_5244cd73-e677-4edd-902f-450f50a39519">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_1b65c093-d5ea-4fad-bee4-a750463f4db0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_149a6d4a-ed76-42a6-bef4-638402ffd311">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_be48cb04-3a14-4341-b6d3-e1ca98fa2fc2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_321d47e4-0de4-4db1-ae35-d622c4eb4aa9">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_56bdec38-82b7-47b4-8d54-980b827add06">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_ec96c472-d439-455b-8edb-87839f810324">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_1c746be7-2369-4f71-818a-6f1f6dd5f6bc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_9001934f-1e46-44d2-b9e0-9944f56791de">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f59cf154-3225-4aa7-8b6f-12c84867c579"
      id="F_615b02e8-cb1c-4bd1-8259-400f914e7b05">&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,000,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_f59cf154-3225-4aa7-8b6f-12c84867c579"
      decimals="-6"
      id="F_a1bee042-7b6c-4eb0-b3e4-69ff37416500"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
