<?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_d3f69347-b41a-4f3b-a2d7-2363ed258f7c">
        <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>
    <ffd:FormTp
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_d200ab43-55cb-4176-a3b7-ca765ae00212">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_4d9cf5f4-90d4-4f5d-9c52-4a30b316e05e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_c2074aa5-d1b4-460c-930d-7b335ffae5af">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_9577a40b-84bf-4d5f-a1f5-6401dcff185d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_d026f2c2-b40d-4f2b-8c96-e9d08d5f62eb">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_4ad98eff-2427-4c38-9a2c-d3f696b70bad">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_15023b9c-045a-4032-a169-063b37fdf67b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_f52fece8-8cac-4b7c-9146-b95299266d64">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_e9507864-091e-48d3-9b1e-0a399ba1c73d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      id="F_af1a268f-493f-40b3-96ba-44451a2490b6">&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;7,591,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_d3f69347-b41a-4f3b-a2d7-2363ed258f7c"
      decimals="-3"
      id="F_12b088b8-741d-4cf0-a28f-4db4709467cd"
      unitRef="U_USD">7591000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
