<?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_9e72567d-d73e-449f-924d-7091efdb603b">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_03c13386-0c7e-4413-acca-76c589927ded">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_0506f80b-673b-4130-91f6-ea5514cb9f1f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_6517bb3f-147d-4980-9902-05002e372175">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_e0288f41-894d-452a-820f-268f0092eca9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_0b74846b-a943-4c8b-918a-c2d5e6d74862">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_f3b263e9-8149-4707-a8a0-43303e102bc8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_5fd962d3-ace6-48be-a6f6-b70e8d6b72e1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_ff4f8763-4d9f-461a-8a43-1c04146f4586">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_35c072a2-168f-4e74-84b0-1366124f3e18">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9e72567d-d73e-449f-924d-7091efdb603b"
      id="F_89f233e7-6e8d-4a3e-85c1-8d9cb6fae4b7">&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;853,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_9e72567d-d73e-449f-924d-7091efdb603b"
      decimals="-3"
      id="F_30607ba0-e342-473c-bd95-c6099a12028a"
      unitRef="U_USD">853000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
