<?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_e61a4453-c0d7-48ed-b29a-0750349b0392">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_9563f372-7212-4346-bf5e-23d1b8a446e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_1a916e65-dafb-4363-a5f1-a7381be4d532">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_bf60fd27-c58e-4a02-823d-1e753806f2b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_b23cd215-f625-449f-a197-6070ea5170a6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_37e0449d-f7e5-4439-be6b-05df3980efcf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_ed6a8b1a-73ea-4912-8a23-483f89e08291">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_e7f35f9f-a7d7-4a70-b840-d3e162969e03">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_7cf6f51a-d526-4a00-b348-3df91541d996">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_4fa34b06-69bd-40b2-a237-ad174e27abc1">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e61a4453-c0d7-48ed-b29a-0750349b0392"
      id="F_1a854acb-2cd5-4b85-9d1e-0af562b4cf50">&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;1,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_e61a4453-c0d7-48ed-b29a-0750349b0392"
      decimals="-3"
      id="F_9481e3ca-88b4-43d8-903f-475e63887f99"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
