<?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_306d9b40-38d5-4363-86b8-fb5ba3689b78">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_a5e138bb-376c-423a-b6f9-88c4af090250">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_46ade811-b966-4274-afd9-5087852daeb9">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_391bc999-aa13-4a9d-87f6-bc9bcbe8677d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_e8a36bc0-19b9-4689-bf86-e9c1cc7b641b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_800e72a2-34f5-4274-8484-82357401ff94">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_13068b39-8dbe-4308-92b7-8209812579c4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_68c8569d-f88b-427e-b903-de19b903a67f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_58f73999-e723-4de4-bd7f-655561354e64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_9a04a80e-bcb4-4334-aa78-2251c0934f54">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      id="F_fd2ab97d-002c-4eff-9586-44bfc4bee415">&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,556,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_306d9b40-38d5-4363-86b8-fb5ba3689b78"
      decimals="-3"
      id="F_fa0c4526-3b41-4f85-844f-0752729d94bc"
      unitRef="U_USD">2556000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
