<?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_17a73330-a94e-45b8-98d4-04214dc7ca69">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_a8a20539-7ae1-4056-9f1c-4b04c5e2cbd7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_935055f7-065c-4210-b792-4c2095194076">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_2968a70b-4283-49be-9b7a-e49ce817d6fc">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_41bb63f2-c065-4a4d-b287-5d42607c75ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_2a3f2d51-05dc-4b7e-8d7e-36e18f4c4723">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_a53bc5c5-e9cf-442b-8e01-1d9956130f16">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_18049184-2ecf-45c0-8f3b-73488a695cf0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_0cc2b6ef-ecd6-4db7-b513-9fee2f33f21a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_b2ec9073-2e3b-41bd-afbe-c4228a6c2d28">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_17a73330-a94e-45b8-98d4-04214dc7ca69"
      id="F_54b648cb-1fbc-4ece-b6b5-125bc7c79ec9">&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_17a73330-a94e-45b8-98d4-04214dc7ca69"
      decimals="-3"
      id="F_6b023579-71ed-4168-9d08-2059dd680ed8"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
