<?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_a16e6048-7f57-4221-96b7-a2e612b3a4a6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_3ba4617e-b5e0-4de9-bf02-0557f221ae90">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_b85709b3-79b2-4667-9df0-b895f1e2417d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_edf3b724-a3d4-4307-91b6-6bfca0b392eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_2f9794d6-d249-4ae5-84da-9a48c02a31d7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_19c8e761-bf98-4050-a1fb-677de09471c4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_1c559dfc-7949-4821-ad8e-12108d3fa249">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_d2e54158-5447-4b80-b29d-50b9372f46e1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_6dea8a80-c1c9-481f-b0f6-38b8a3c0c745">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_56b10f60-5a58-40f9-9c56-2d91c620ffd7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      id="F_936af66e-083b-4428-85b6-5fa85d638fe3">&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;8,732,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_a16e6048-7f57-4221-96b7-a2e612b3a4a6"
      decimals="-3"
      id="F_b2034a02-044b-4433-977f-771502eaf65e"
      unitRef="U_USD">8732000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
