<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_a0ffde20-94a3-403c-9c59-8a449eca53ee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_3c2fd8e8-d51b-4038-a493-e14ec528e5d6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_bb2e8b27-38c0-4423-a960-9fa322982aad">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_8fa5a8fc-fced-41c6-b9a9-f141a2a1ee2d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_37a7eb03-79a2-44bc-aab6-264e0f1ebf23">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_ac0008c0-4913-4a6d-bf64-0aa4b870bd62">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_6f6a95e0-5354-4258-87e5-7bdc6cb0c5d3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_562636aa-6219-4374-a024-3b1c93734ead">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_a0696b99-63e6-4e27-aa22-53aecf1d26a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_dbb22086-ca44-4787-9e46-01aa46d0e4a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      id="F_782b1da3-ccc4-4921-88e3-8ddc5d58b44f">&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;400,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_a0ffde20-94a3-403c-9c59-8a449eca53ee"
      decimals="0"
      id="F_45b523f9-015d-478c-9d95-2f8a7f4bc87a"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
