<?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_18141760-a095-44c5-bd81-d91b599c1ee6">
        <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:SubmissnTp
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_d62b7741-4ae9-4cd6-bf51-9b981f2023c4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_a6c108c4-4e06-4f4d-830f-8125c9855953">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_150c38fe-ba4d-42da-a5c1-02bf9efa75af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_7023973a-a1f3-4d56-9684-8265bcec29f6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_e83ebda9-9d54-4275-ba0c-5ebf2ad36b70">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_8e44af66-720d-49aa-ae42-33cccf1e621d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_dea1e8e9-cb06-4c65-9e41-b58714948367">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_b02830ed-fb37-41e2-8ded-34eb882253e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_45f7afca-2eeb-4c48-9252-8dfe666e1aae">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_18141760-a095-44c5-bd81-d91b599c1ee6"
      id="F_d075ee1a-cb2a-4d73-a88e-3d1653b8e0b7">&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,203,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_18141760-a095-44c5-bd81-d91b599c1ee6"
      decimals="-3"
      id="F_18d84aa2-a0fa-4cc1-93dc-8399df82c5b4"
      unitRef="U_USD">1203000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
