<?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_f8e8b120-48bf-4f36-9c9e-13749666deaa">
        <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:OfferingTableNa
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_4c42ceda-a2d3-4b83-9491-691273886f76">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_ff49d0c2-88bf-4558-9c62-e11dd005c5d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_9faada16-e4b5-46d9-931b-0f09ecea19e6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_18bf7b9b-625d-4756-aad4-54efea288f08">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_b8c0190f-8047-450b-8592-1b6a720c3a0a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_269ce952-8472-44b2-aeb2-2a1ee49005e6">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_c23a00ea-e79c-4f73-990e-7c7d7e87a054">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_9159da86-6754-4d0f-bad6-93f69ad33654">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_a03cb4c8-1917-43cb-a87d-1698952ea3b5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      id="F_16e11045-a55f-4116-a960-9755f103537b">&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;918,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_f8e8b120-48bf-4f36-9c9e-13749666deaa"
      decimals="-3"
      id="F_1fd70cbf-47a9-4d59-8f12-44ef6fb6e257"
      unitRef="U_USD">918000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
