<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_940b83da-b64e-490a-aced-6fb33e069610">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_4538f8e2-4dc6-4a5a-81fd-786c17da89be">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_49c4c2ec-3cf9-4737-948e-3af504ce4611">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_01b34869-3f45-4965-be0c-8e01e7caf78f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_4cd02f4b-9516-47db-92f8-5c042a03dde0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_9d583b61-8fb0-4a87-a596-675739e430f8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_d2e6488a-87bb-482a-acf8-97ddf2dd90b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_2834cf7e-84ed-499a-ba40-ccaa7ba656e1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_aba0e41f-4b8c-4570-957e-14b550f20781">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_3c352234-7659-4507-85bf-9c74cb8f156d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_940b83da-b64e-490a-aced-6fb33e069610"
      id="F_9eaae643-be94-4468-a6ef-68b7e102d56c">&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;398,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_940b83da-b64e-490a-aced-6fb33e069610"
      decimals="0"
      id="F_028544c7-2b45-447b-96e5-f1c3ba3faa3c"
      unitRef="U_USD">398000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
