<?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_ec7fb778-b09e-4823-b8f7-394f9f0ac48e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_e8219a26-3011-449d-98e4-53f24b6a9c3c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_4decb82e-8ed1-4ef7-84b5-73246f8a4baa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_86436e9c-32d3-4c09-86cd-6da5f5661294">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_7a54940b-d644-4ddf-9703-9abe4a392070">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_4acbd84d-5a1b-4879-b2b3-e691b4b0a6b3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_3bfb9c17-6b71-4e10-b36f-ac0abda9a85c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_3c1fa750-c6f6-4868-9be0-d56426e8bbc2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_d07a7a80-ed35-45a8-806f-14bb9eecacd1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_8b7378e7-01f9-4121-a9ae-b719ac0c1d2c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      id="F_39bba88d-67a7-4d52-a2cf-4aa725327431">&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;1,196,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_ec7fb778-b09e-4823-b8f7-394f9f0ac48e"
      decimals="-3"
      id="F_132a0eea-29e8-45da-83d4-0dd6a9dd5642"
      unitRef="U_USD">1196000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
