<?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_63687576-c156-4d9f-b63d-920e03184618">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_9e6e3c30-ab50-429b-8253-81bca6f924cf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_cc7a802f-e03b-40ff-81cf-b595f07d7816">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_61459c84-bd56-4214-aa72-80dc3671ce0d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_b52800a1-deed-496c-a74d-50b8d3692cda">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_ab55cf23-d8b4-4fa7-b95b-4f6140b867f0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_0993cb01-98a7-43c6-800e-314199a9e260">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_c3f896a5-6b7c-49d0-bb7c-6fb9dd250179">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_3092b2e0-1ece-4e32-a366-12adbeabff3b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_c2175aae-ead8-485a-8ddf-762bf438eb4f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_63687576-c156-4d9f-b63d-920e03184618"
      id="F_a16728d8-afb2-4c8c-ba19-097099177335">&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;485,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_63687576-c156-4d9f-b63d-920e03184618"
      decimals="-3"
      id="F_661e02b0-1f31-40de-a614-6d8cdba2b28c"
      unitRef="U_USD">485000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
