<?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_4b81a282-6d07-449a-9e49-7f3a9b39dda5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_366f0a9c-3ab7-4121-9e0d-e543871742b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_612eb8b5-8285-480a-bc5b-a30c1fe11dd1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_e860a7fa-97d0-446b-81b7-92883c0f51b1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_8c08f7a8-122b-4534-9a9a-c8813e8feec1">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_2c77b27d-0bf2-4720-a6af-cfedcda47294">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_3b18dd55-e090-486d-8996-1a5a1ea32cdc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_c31772fa-b77f-47ef-8bbe-9f52db4fdf52">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_b8c37175-4ac7-47b7-adce-bd3a84e77c44">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_9853a94f-4481-4e2c-b7ee-13a5323b9a5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      id="F_e3cff780-7686-4904-a001-3b3b37cd7c01">&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;302,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_4b81a282-6d07-449a-9e49-7f3a9b39dda5"
      decimals="-3"
      id="F_e3cb859d-658c-4712-b4e6-170ca17f75c3"
      unitRef="U_USD">302000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
