<?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_8628f497-2111-4355-aae5-e6f93697d0b6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_c249f57f-1d96-48c5-978a-ddc219a53e03">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_cfab50b7-3cff-4ad3-83b6-8b148c0e2b81">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_eed3b334-da43-483b-8f93-afedaa5739c3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_ebca61c3-1570-42ae-ac03-69b73f400ba6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_e79a45c7-2f2e-44a4-b12b-dbfc45d5df33">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_9a92ca3a-f224-42cd-811f-c5e3bfa288b0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_2c00d009-0e4d-4fa8-80ef-92702f780bcd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_fc11cccf-521f-4bbf-9ea0-a92ac7682f5c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_b405511e-47af-4000-ac71-21f2ab5b9101">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8628f497-2111-4355-aae5-e6f93697d0b6"
      id="F_326c1db6-f7bd-4be4-b356-7bc9fe1de520">&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;605,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_8628f497-2111-4355-aae5-e6f93697d0b6"
      decimals="-3"
      id="F_1201f9d4-3951-4b73-be52-2ed62d3ab86c"
      unitRef="U_USD">605000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
