<?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_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_5ef81943-9616-4041-9e7a-067a3e05b15f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_1e9c69d7-22fc-45de-8dbc-65c0763abd53">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_f853aad2-0664-4f16-8303-36e556bed6b8">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_379f327c-32f0-469d-a545-211299911e3b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_7575ec71-8ba9-4b22-b672-890aa6f5db39">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_792814a8-5a35-4aab-bfb9-61f132145f80">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_4ade1be4-443c-4bcb-9fc7-ad960a99b8c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_9583ec69-196f-40ef-a531-e333fb93d2ac">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_ac621107-f5a8-4f89-8afe-05499063fc91">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      id="F_759114c0-9407-46d7-94f3-ba1de52c2d17">&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;2,981,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_7af5ed22-53cc-4afb-bf5d-3d08eb75bfb8"
      decimals="-3"
      id="F_7cf50b54-ca83-46dc-9946-00e504032917"
      unitRef="U_USD">2981000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
