<?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_2f4c1214-5b25-4766-99f7-82838094fddc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_3b801d32-b3f8-42a9-96de-ef2def0b9552">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_ee0ab9d9-831a-4268-8985-63f539918c68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_45816808-dfe2-4658-abd7-4306a574badc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_bca431e4-417a-4db1-9ef6-b3e3ff1a56c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_d965575e-5b29-4e2a-b2eb-3108394b3235">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_612f93db-242d-456c-a40f-6419dffdf154">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_45dd7b14-da95-4674-b5db-449ba324d300">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_4b455102-ed5c-4b24-abe4-755c481d73bb">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_7e527f71-6aea-4413-9224-33e7789c45a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2f4c1214-5b25-4766-99f7-82838094fddc"
      id="F_bca290a6-3c74-4cfb-90d6-506dad09a926">&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;250,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_2f4c1214-5b25-4766-99f7-82838094fddc"
      decimals="-3"
      id="F_567713ba-a818-4709-afb8-2713ff66b2f6"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
