<?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_2a9e5fad-0088-4f44-aa01-c2142543de85">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_2c6e708a-7a77-4d10-a4f9-65a6e147b4ee">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_520606b5-21c1-470a-a1bf-db733935513f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_921a8a35-ad5b-400a-b76b-7f7ed26615a6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_847170c3-a77a-40a7-92be-0b1cbfe8ed02">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_a59ece33-b819-4968-a1ba-0933b60f76d7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_a86cad53-f3ab-4d94-a25c-a10f5e770922">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_cf51d162-093a-4f0a-a48c-506d0ef3355e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_b6975b6c-49c9-4923-840f-db4f29eb56c2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_07f633f7-821d-469b-81c9-512abfe529e5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2a9e5fad-0088-4f44-aa01-c2142543de85"
      id="F_a9812603-712e-4fb0-a827-82962934e519">&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,295,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_2a9e5fad-0088-4f44-aa01-c2142543de85"
      decimals="-3"
      id="F_f875269d-0976-4efd-a19e-73569392ff3f"
      unitRef="U_USD">1295000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
