<?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_95d08510-218e-4caa-a490-173d3d0b7249">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_8774cc07-fdf1-4684-9306-6f7365e8b0a5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_203045bb-822e-434e-b779-932566df72a7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_6515c3d1-7893-4fb7-a5f6-f61827316c91">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_bbb46f84-ad29-477f-a399-fc27e798a7fa">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_ed7e7b7f-5ad3-40e0-a935-f374fa934f25">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_ae6cb446-eac5-4cc0-9a0e-8f09e43f0a2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_eaf60ac6-5cea-47e8-9d6f-43e0e564d636">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_0e50dddb-24bc-4fd0-aa6c-0d84ea132c2b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_bfddea77-c712-4af7-8e5b-14fe9ad6c1fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_95d08510-218e-4caa-a490-173d3d0b7249"
      id="F_6da10b00-0ba0-4c27-96fb-2dc94560db7c">&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;2,182,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_95d08510-218e-4caa-a490-173d3d0b7249"
      decimals="-3"
      id="F_7ee4ce98-6c09-4c60-a245-aafc4d2bdbfe"
      unitRef="U_USD">2182000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
