<?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_811055df-0a8d-46b5-8d41-ab2a9fb63034">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_7ec905e0-b08f-4069-9937-abac3834189c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_8170d597-f49d-4dd3-876b-de72842a6d75">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_bbc179b3-93d6-4988-ae69-8f166328477a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_ca8d90f6-fcf6-4e0f-957d-9ad70976f586">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_5d552cb8-6e0c-4b7e-a903-a6515d3daa50">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_c890193d-ee66-4556-b7b3-f3164c3cd34a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_2456eb21-07e4-49a9-8005-b93550717530">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_3229e204-4314-4600-a6c0-b06aa759ede7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_d6a45d4a-ab4d-48d1-8251-2769c15cf22e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      id="F_180ae8c6-3fd0-4653-a9b0-7b931a4b5503">&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;813,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_811055df-0a8d-46b5-8d41-ab2a9fb63034"
      decimals="-3"
      id="F_da437a2e-dc86-4b51-92cf-6215ec8d3345"
      unitRef="U_USD">813000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
