<?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_9b668b27-f6cf-45e6-973c-23ed2f84979c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-04</startDate>
            <endDate>2026-06-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_43a03d3f-d9fb-4813-a2aa-3a980c076883">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_61769060-41a0-40f4-b534-7caeda2d3006">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_055190c5-95d6-4c9c-8e19-a1460603c2bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_9a228b00-536c-4171-8eec-f745b6f6e54d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_29ce513b-499a-44b9-aa4f-2e5a1264909b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_ca14ba44-7bfc-4935-9ecd-655a9e832f82">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_893b3ea2-5005-43c9-bccd-1230f07cb4c1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_9371973b-c38b-4785-b7fa-aa6240c31010">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_a20fc8da-cec3-4c63-96ed-d8073f568fa4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      id="F_98e1e357-380e-466d-9fda-972704a577e3">&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;9,668,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_9b668b27-f6cf-45e6-973c-23ed2f84979c"
      decimals="-3"
      id="F_b1a35082-9d60-4213-a2c7-3889db84a3e8"
      unitRef="U_USD">9668000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
