<?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_a85d8522-a247-4c06-aa23-8b5a31edfcc9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_7093b121-eef1-4d01-9bd5-0caf33ae604b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_fd4ed4b6-a323-4fd0-89be-44ee213d43d3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_b255ab99-5aee-4c11-92e2-ae136e961641">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_e11ed85f-3a1f-4ecc-958f-b33d45f50119">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_b45a4cd9-1380-4dd8-b4cb-d636ef1ca555">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_59d73864-4520-45bb-8fb8-0de0051eea38">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_b88867fb-6c90-4960-a99f-cb4e504f9796">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_d95e8154-5c80-417b-a4cf-f99aa6d11953">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_81203a03-bb7f-45ba-8d4b-f428fc13c9b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      id="F_9861abde-e698-4b72-a036-45068882f752">&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;500,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_a85d8522-a247-4c06-aa23-8b5a31edfcc9"
      decimals="-3"
      id="F_4cfa1a79-a59f-4c8f-8145-2d39f759a6a6"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
