<?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_6677ff1b-48f7-4a78-ab00-123fde4026f3">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_35d330c9-fb4f-4b0d-bb3e-ec0c658f4287">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_5a05f95c-dc55-4fef-9d57-384f51b67799">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_c48fe8af-8a2d-490f-ab5c-53a5dc019092">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_5f0251be-e28d-4413-809c-14a69eb31150">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_1d7c21a3-62b5-4130-a602-d19ee5b30b57">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_d0ee14c6-2510-4a18-abd0-9cf7e045aaae">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_1f3702b2-ad12-4ca4-8375-e3d0b320eb89">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_f3a7bc9a-7ea2-49af-a599-ef4b8f692155">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_0efd742a-6c38-4df6-8625-f03e05b3dd16">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      id="F_e2d5ce3a-7b5e-4ee3-9200-9b9c132277f1">&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;55,176,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_6677ff1b-48f7-4a78-ab00-123fde4026f3"
      decimals="-3"
      id="F_237883cf-aa3f-4a7e-8826-0f4f265ff839"
      unitRef="U_USD">55176000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
