<?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_9760d6fa-f54f-4534-ae76-065cf975f0b3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_1da82321-e45f-4775-aba2-1e2a078e9cc0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_3b83ae79-9b96-471e-b112-83b05f00efc0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_a3122781-baba-4577-9005-642084eeed7b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_69263cd1-d729-486b-aaae-99854f295b8f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_ab5ce4a1-2011-4829-9220-e8a1bc326e35">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_3d4d3fcd-22ab-4b18-bafd-a82344d415a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_61cb4d68-223b-46a1-8cc4-dd9c21f041ad">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_09285ba0-42ca-49c4-b99f-b98913e65af1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_eafd4a58-59b0-4fbe-aefa-7b66c80455d2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      id="F_8d29859b-0138-48dc-83e8-c6391aa34b02">&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;5,271,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_9760d6fa-f54f-4534-ae76-065cf975f0b3"
      decimals="-3"
      id="F_4176f519-1af7-428a-89f1-282345ce7c45"
      unitRef="U_USD">5271000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
