<?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_78e3b939-c16d-411c-8d7b-5e56372c1ed8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_9fcf4543-8d55-4864-ab52-504e877004bd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_9d0aaeb6-13b1-4f1d-825c-e406208b3ecc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_0dd51233-8b0f-4e4a-b901-7dd2bef6a4dc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_a6aefcbe-8d05-43d3-af7e-18b22d2635f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_c8ad9e48-01b6-4059-9f77-fa5626837693">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_3bf2209d-f884-4019-94bc-b25e145a7d02">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_981ec800-be38-4493-9627-7157634e9dad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_d135f612-2109-4da5-8f98-c2ac31626b76">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_d6fe65dc-7d98-4955-ba17-285022725ed6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      id="F_9dd85bc6-e837-4250-a9d7-a78778ddf9d9">&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;6,530,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_78e3b939-c16d-411c-8d7b-5e56372c1ed8"
      decimals="-3"
      id="F_05a5902e-5d0c-433f-a4e7-bc3e08d199c9"
      unitRef="U_USD">6530000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
