<?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_a12d49a2-7725-48f2-83da-b049cf19e215">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_c8d3776c-6199-473a-950e-dc84ae56d910">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_635fc235-b262-4de3-9642-47cd9633787f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_8e55c4f2-f65b-4e38-a2df-83f2fc871d24">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_f5eaab7d-1bbe-41b0-bd61-c169fba52739">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_5908457f-054a-44d1-aec7-38140c311ab8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_9279f20f-df2f-44e1-983b-e3051de096ac">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_176feb78-1ea9-4864-9cf8-1551ef5c0627">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_ecb9d5bb-5884-406a-bc64-fc62ff2b56f0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_5b91ff99-3949-41de-bb51-52fa65f78b51">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a12d49a2-7725-48f2-83da-b049cf19e215"
      id="F_946b4f68-3e55-4496-8dcd-fb3b03f08a91">&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,518,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_a12d49a2-7725-48f2-83da-b049cf19e215"
      decimals="-3"
      id="F_a7885acc-ca60-4b08-8389-4dd285a7c3b4"
      unitRef="U_USD">1518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
