<?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_0c0af75f-7387-4a6d-90e7-f95ccb52a117">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_bf8fea02-bc52-48f0-96b4-0de23c754ca3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_c436b6aa-d6b5-406f-be68-04a28a4c4278">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_859b0d3c-25cf-446a-a250-37664e24d28b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_a538ac01-091f-4e1a-88dd-e7bececb1590">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_90a730a9-7923-4217-901f-98665cf73c04">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_2a5814ef-1b7b-4470-bb4e-1229996fc7f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_f87b25db-a4e2-42d0-8ec8-fe495af48b52">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_225cac0c-defe-4b0a-b934-788a396b1fdf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_cc28f7e8-0bf6-432c-b322-d9fa67dae0f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      id="F_f4bb3823-24bf-41f2-998c-1b8e1d80b465">&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;217,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_0c0af75f-7387-4a6d-90e7-f95ccb52a117"
      decimals="-3"
      id="F_70485ef6-a46a-40fd-98ec-e40bac49aa2b"
      unitRef="U_USD">217000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
