<?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_63e53c24-217b-4810-9b6c-722d896fe0d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_245fadcc-956c-40e6-898a-2d659f26f28e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_660d417e-f771-414b-a2c7-c053c81dee66">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_139b67b5-4577-486f-a0fa-e3d9f0f2d58e">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_04028b0e-99e8-4f2f-a103-07049f959ea5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_6df53e49-f3c5-4b66-abb9-6dbfd997b5b8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_dbcc2880-d01a-438a-8bbf-907cc6c05eeb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_f4555a3f-e107-4026-a448-8870649aefe0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_2f50acb0-287b-4ea1-a9dc-7f8ee8333cc0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_a138e47c-fdbc-4284-bb92-8624f28298fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_63e53c24-217b-4810-9b6c-722d896fe0d5"
      id="F_76d5c408-af86-4303-b8ed-c5d6c5abaf39">&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;4,285,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_63e53c24-217b-4810-9b6c-722d896fe0d5"
      decimals="-3"
      id="F_4c27764c-1025-47d2-9375-c5feb9693c8c"
      unitRef="U_USD">4285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
